Skip to content

midgy python language flagsยค

flags provide control over the markdown to python translation. flags control the rendering of: * front matter * doctests * indented code * code fences * docstring


indented code can be ignored

+++
py.include_indented_code = false
+++
    ignored
locals().update(__import__("midgy").front_matter.load("""+++
py.include_indented_code = false
+++"""))
"""    ignored""";

markdown code can be ignored

+++
py.include_markdown = false
+++
ignored
locals().update(__import__("midgy").front_matter.load("""+++
py.include_markdown = false
+++"""))
# ignored

front matter code can be ignored

+++
py.include_front_matter = false
+++
# +++
# py.include_front_matter = false
# +++