Callouts in code


#1

Hi,

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 :slight_smile:

Thanks!


#2

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.


#3

Thanks for the pointer! I will check it out.