Constructors
constructor
- new Paragraph(text, __namedParameters?): Paragraph
Parameters
- text: string
- __namedParameters: {
outlineLevel?: number;
} = {}Optional
outlineLevel?: number
Properties
Optional
outlineLevel
outlineLevel?: number
Methods
Static
from
- from(node, styles): Paragraph
Parameters
- node: ChildNode
- styles: CheerioAPI
Static
getOutlineLevel
- getOutlineLevel(node, styles): undefined | number
Parameters
- node: Element
- styles: CheerioAPI
Returns undefined | number
Static
getOutlineLevelFromNode
- getOutlineLevelFromNode(style): undefined | number
Parameters
- style: undefined | AnyNode
Returns undefined | number
Static
getParaStyle
- getParaStyle(pPr, styles): undefined | AnyNode
Parameters
- pPr: Element
- styles: CheerioAPI
Returns undefined | AnyNode
Static
isParagraph
- isParagraph(node): boolean
Returns boolean