The NodeProcessor
class is responsible for processing and transforming HTML nodes in MarkBind. It takes in raw HTML or Markdown content, processes various MarkBind-specific elements, and returns the transformed HTML output. It plays a central role in rendering pages by handling:
The main method for NodeProcessor is the process
function, which parses the Markdown or HTML content and processes each node in the DOM.
Recall that:
Content Processing Flow: Nunjucks -> Markdown -> HTML
Nunjucks largely processed in variableProcessor.
Markdown and HTML largely processed in nodeProcessor.