I was wondering if anyone has figured out a way to include callouts in code segments in Hugo. These are supported in AsciiDoc but not in Markdown. I think it should be possible to implement something using a shortcode, but I thought I’d ask before I start coding
This feature exists in mmark, a fork of the BlackFriday Markdown renderer with a focus on creating engineering documents, and recent versions of Hugo support that. Simply rename your .md file to .mmark and it should work. However, Mmark hasn’t been kept up-to-date with BlackFriday and doesn’t support some things like latex-style dashes, smart quotes, or fractions.
Funny that I am trying to figure some way of integrating Org mode coderef in ox-hugo exported Markdown, find out what that’s called in non-Org lingo (“callouts”), and I end up here .