I would really find it helpful if i could dump file name headings on each code snippet. I’m not sure what you are deprecating highlight.js with, but prism.js lets you have these. Example below, from here https://www.taniarascia.com/es6-syntax-and-feature-overview/.
Thank you for the suggestion.
Yeah, I understand that some people would prefer to have filename on the top of the code blocks.
BTW, the app uses CodeMirror to highlight syntax in code blocks in order to get a consistency with the editor for syntax highlightings.
You need to extend the Markdown parser and the renderer by making a plugin to get the desired result.
If you interested in making a plugin for it, I would be happy to help you.
Thanks!
I’m happy to help you make a plugin.
The app uses remark to parse and render Markdown.
remark supports robust plugin system so you can extend it for what you want.
So first you have to create a remark parser plugin which recognizes filenames for codeblocks.