tetra-framework / tetra

Tetra - A full stack component framework for Django using Alpine.js
https://www.tetraframework.com
MIT License
569 stars 19 forks source link

Mkdocs lacks nested inline highlighting support #72

Open nerdoc opened 2 months ago

nerdoc commented 2 months ago

Components with a template: django_html = """...""" string should be highlighted correctly, the inline string is a Django template. MkDocs uses pygments for highlighting, which seems good as it is precompiled.

But pygments does not support "inline" templates with Django syntax within Python code.

Maybe it needs to be written as pygments plugin, or mkdocs extension to add support for Tetra.