rawMd

rawMd, function

def const pure rawMd(source: text): markdown

Converts source to a markdown value without escaping Markdown control characters.

Examples

source = "# Restock now"
safe = """\{source}"""
rich = """\{rawMd(source)}"""

show markdown "Escaped text" with safe
show markdown "Raw Markdown" with rich

The first tile displays # Restock now as plain text because direct text interpolation is escaped. The second tile renders it as a level-one heading.

Remarks

rawMd is a const function. Markdown syntax in source is interpreted when the result is rendered. Use escapeMd when the source must be displayed without formatting.

See also

User Contributed Notes
0 notes + add a note