Markdown Parser
dm.markdown_parser
Module providing the markdown parser.
processMarkdownContent(md, namespaces)
Converts markdown content.
Parses markdown content with the extensions necessary to create a segment of HTMLBook compliant xhtml.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
md
|
str
|
The markdown input. |
required |
namespaces
|
dict[str, str]
|
The namespaces defined in the klartext file |
required |
Returns:
Type | Description |
---|---|
str
|
The markdown content converted to xhtml. |
processMarkdownFile(md)
Converts a markdown file.
Parses a markdown file with the extensions necessary to create HTMLBook compliant xhtml.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
md
|
str
|
The markdown input. |
required |
Returns:
Type | Description |
---|---|
str
|
The markdown file converted to xhtml. |