Markdown Element
fun MarkdownElement(node: ASTNode, components: MarkdownComponents, content: String, includeSpacer: Boolean = true)
Handles the rendering of a markdown element based on its ASTNode.type.
This function is responsible for determining the appropriate component to use for rendering It does handle rendering of children recursively.
Parameters
node
The ASTNode representing the markdown element.
components
The MarkdownComponents instance containing the components to use.
content
The original markdown content string.
include Spacer
Whether to include a spacer before rendering the element.