MarkdownNodeParagraph
Node use to represent paragraphs.
Keep in mind that isolated break-lines
are also considered paragraphs
This node can have children nodes
Properties
body
- Type:
string
Plain text containing the content of the node
children
- Type:
NodeArray<MarkdownNode>
Array of children nodes
toHtml
- Type:
function
Convert the node to Html
text
node.toHtml() // <p>Content</p>
// if have children
node.toHtml() // <p>{...children.map(c => c.toHtml())}</p>