Skip to content

jetblack_markdown.latex2mathml

module jetblack_markdown.latex2mathml

Summary

A Latex to MathML markdown extension.

Description

Documentation can be written inline like this: x=b±b24ac2a.

Or in a block style:

x=b±b24ac2a

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
) -> Extension

Parameters

*args
**kwargs

Returns

Extension: The markdown extension

class Latex2MathMLExtension(Extension)

Summary

Initiate Extension and set up configs.

jetblack_markdown.latex2mathml.Latex2MathMLExtension(
*args,
**kwargs
) -> None

Parameters

*args
**kwargs

method 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
) -> None

Parameters

md: Markdown

The Markdown instance.