How to implement prismjs with Lektor #3478
Unanswered
javierdebug
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By any chance as someone implement prismjs with Lektor CMS to syntax highlighting code? Lektor uses Markdown for blog post content but when converting from Markdown (they called Content.lr files) to HTML, the output is not as expected.
This code:
Output like this in the website:
Checking the HTML from page source, I found:
It works if I manually add the code as prismjs documentation indicates:
Previous code, output the following in the BlogPost:
But the idea is that users adding Blog posts use plain Markdown. Any advice could be helpful.
Thank you in advanced
Beta Was this translation helpful? Give feedback.
All reactions