isunjn/serene

Feature request: Code block with filename

Closed this issue · 1 comments

Commonmark doesn't have these yet. I think they can be implemented as shortcodes (like callouts?):

{% code(toml, name="config.toml" %}
[section]
value = "foo"
{% end %}

// or...

{% code(lang=toml, name="config.toml" %}
[section]
value = "foo"
{% end %}

isunjn commented

It's a feature nice to have, but I don't have a strong will to implement it myself. If you really need this, you can try to implement it yourself or wait for other people's pr.