MkHtmlBlock
PyMdown-based Html block. Can be used to show raw content.¶
Example: Regular¶
| Name | Children | Inherits | 
|---|---|---|
| MkBlock mknodes.basenodes.mkblock PyMdown-based block.  | 
graph TD
  94396149143232["mkhtmlblock.MkHtmlBlock"]
  94396150949728["mkblock.MkBlock"]
  94396150332256["mkcontainer.MkContainer"]
  94396150626816["mknode.MkNode"]
  94396150902384["node.Node"]
  140181802719712["builtins.object"]
  94396150949728 --> 94396149143232
  94396150332256 --> 94396150949728
  94396150626816 --> 94396150332256
  94396150902384 --> 94396150626816
  140181802719712 --> 94396150902384
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkhtmlblock/metadata.toml
[metadata]
icon = "octicon:code-16"
name = "MkHtmlBlock"
[requirements.extension."pymdownx.blocks.html"]
[examples.regular]
title = "Regular"
jinja = """
{{ "Different types." | MkHtmlBlock("div") }}
"""
[output.markdown]
template = """
{{ node.fence_boundary }} html{% if node.argument %}{{ node.argument | add(prefix=' | ')}}{% endif %}
{{ node.attributes_block }}
{{ node.content_block }}{{ node.fence_boundary }}
"""