jetblack_markdown.latex2mathml
module jetblack_markdown.latex2mathml
Summary
A Latex to MathML markdown extension.
Description
Documentation can be written inline like this: .
Or in a block style:
function jetblack_markdown.makeExtension
Summary
Make the extension
Description
This hook function gets picked up by the markdown processor when the extension is listed
python
output = markdown.markdown(
content, extensions=[
"admonition",
"codehilite",
"jetblack_markdown.latex2mathml",
])
print(output)
jetblack_markdown.makeExtension(
*args,
**kwargs
) -> ExtensionParameters
*args **kwargsReturns
Extension: The markdown extensionclass Latex2MathMLExtension(Extension)
Summary
Initiate Extension and set up configs.
jetblack_markdown.latex2mathml.Latex2MathMLExtension(
*args,
**kwargs
) -> NoneParameters
*args **kwargsmethod Latex2MathMLExtension.extendMarkdown
Summary
Add the various processors and patterns to the Markdown Instance.
Description
This method must be overridden by every extension.
Latex2MathMLExtension.extendMarkdown(
md: Markdown
) -> NoneParameters
md: MarkdownThe Markdown instance.