pietroppeter / nimib

nimib 🐳 - nim 👑 driven ⛵ publishing ✍
https://pietroppeter.github.io/nimib/
MIT License
175 stars 10 forks source link

Adding support for highlighting different languages #225

Open beef331 opened 6 months ago

beef331 commented 6 months ago

Presently nimib takes in all code blocks and quotes Henry Ford "You can have all the code you want as long as it's Nim". NbBlock should have a language field to set the rendering inside Md and HTML, allowing nimib to be more flexible for projects like libnimib or nimib.py.

pietroppeter commented 6 months ago

In general I think this is a good idea. Another thing to keep in mind for the planned future refactoring of blocks on which I should write more (or maybe just code).