Statiq.Framework icon indicating copy to clipboard operation
Statiq.Framework copied to clipboard

Multi-language code fences in Statiq Docs

Open daveaglick opened this issue 6 years ago • 2 comments

Allow defining Markdown code fences (and/or HTML code blocks) for multiple languages and then automatically tabifying them - not sure if this should be a module (by combining adjacent code fences) or shortcode (by declaring contained code fences are part of a group)

daveaglick avatar Feb 15 '20 16:02 daveaglick

If you did it with a Shortcode, would it be feasible to implement it as a general purpose tab system so it is not limited to only code blocks?

SilentSin avatar Apr 19 '20 00:04 SilentSin

Maybe... the biggest problem is that most CSS libraries (Bootstrap, Foundation, Tailwind, etc.) don’t apply only to plain semantic HTML without classes. They all require either a certain “flavor” of markup and/or specific classes. The most portal solution would probably be to ignore any CSS framework in use and instead generate markup and CSS classes just for this.

daveaglick avatar Apr 23 '20 00:04 daveaglick