That is just some special “comment out shortcode” syntax I made up to make it possible to document the shortcodes. I assumed that it was just needed for the shortcode documentation, so I never documented that feature itself … But it’s no JS magic, it is the shortcode parser.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Hugo shortcode in Markdown code highlighting | 5 | 909 | March 4, 2022 | |
| How to comment out shortcodes in markdown | 12 | 6033 | October 27, 2018 | |
| Misunderstanding of shortcode syntax in 0.55 | 25 | 6967 | May 19, 2019 | |
| Shortcode syntax example within a code block is being executed | 3 | 921 | November 8, 2021 | |
| [Bug] New shortcodes not detected until hugo server restart | 1 | 78 | November 21, 2025 |