Term Markdown

Term.TermMarkdown.parse_mdFunction
parse_md

Parse a Markdown element (Paragraph, List...) into a string.

A width keyword argument can be used to control the width of the string representation and an inline boolean argument specifies when an element (e.g. a code snippet) is in-line within a larger element (e.g. a paragraph).

source
Term.TermMarkdown.parse_mdMethod
function parse_md(ad::Markdown.Admonition; width = console_width(), kwargs...)::String

Parse adomitions and style them with colored Panel renderables.

source
Term.TermMarkdown.parse_mdMethod
function parse_md(
    qt::Markdown.BlockQuote;
    width = default_width(),
    kwargs...,
)::String

Style a BlockQuote with a line and a quotation marker.

source
Term.TermMarkdown.parse_mdMethod

function parse_md(
    code::Markdown.Code;
    width = console_width(),
    inline = false,
    kwargs...,
)::String

Parse a code snippet with syntax highlighting (for Julia code).

For non-inline code snippets the code is put in a panel with different background coloring to make it stand out.

source
Term.TermMarkdown.parse_mdMethod
parse_md(note::Markdown.Footnote; width = console_width(), inline = false)

Style a footnote differently based on if they are a renference to it or its content.

source
Term.TermMarkdown.parse_mdMethod

function parse_md(
    ltx::Markdown.LaTeX;
    inline = false,
    width = console_width(),
    kwargs...,
)::String

Parse a math element. Try to convert it to unicode characters when possible, otherwise output the latex string.

source
Term.TermMarkdown.parse_mdMethod
function parse_md(
    list::Markdown.List;
    width = console_width(),
    inline = false,
    space = "",
)::String

Parse a list and all its elements, for both numbered and unnumbered lists.

source
Term.TermMarkdown.parse_mdMethod
parse_md(text::Markdown.MD; kwargs...)::String

Parse an entier MD object by parsing its constituent elements and joining the resulting strings.

source
Term.TermMarkdown.parse_mdMethod
function parse_md(tb::Markdown.Table; width = console_width())::String

Convert a markdown Table to a Table renderable.

source
Term.TermMarkdown.parse_mdMethod
parse_md(header::Markdown.Header{l}; width = console_width(), kwargs...) where {l}

Parse Headers with different style based on the level

source