Functions
parse_term
Parse term directive.
parse_term
def parse_term(inline: Any, m: re.Match[str], state: Any) -> tuple[str, str, str]
Parse term directive.
Parameters 3
| Name | Type | Default | Description |
|---|---|---|---|
inline |
Any |
— | |
m |
re.Match[str] |
— | |
state |
Any |
— |
Returns
tuple[str, str, str]
render_term
Render term to HTML.
render_term
def render_term(renderer: Any, text: str, definition: str) -> str
Render term to HTML.
Parameters 3
| Name | Type | Default | Description |
|---|---|---|---|
renderer |
Any |
— | |
text |
str |
— | |
definition |
str |
— |
Returns
str
term_plugin
Register term plugin with Mistune.
term_plugin
def term_plugin(md: Any) -> None
Register term plugin with Mistune.
Parameters 1
| Name | Type | Default | Description |
|---|---|---|---|
md |
Any |
— |