Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting support? #864

Open
utkumaden opened this issue Jan 16, 2024 · 1 comment
Open

Syntax highlighting support? #864

utkumaden opened this issue Jan 16, 2024 · 1 comment

Comments

@utkumaden
Copy link

utkumaden commented Jan 16, 2024

Although the text processor seems to attach a language-xxx class to markdown code blocks, it seems there is no support for rendering code blocks with syntax highlighting. Would it be possible to introduce this feature and maybe make it somehow configurable, perhaps with a few example grammars included in the repository?

I took a brief look at the code, an perhaps a callback function that can modify what is being output would suffice.

Edit: I realize the end code block function is protected, which will work for me for the time, but it would be pretty good to have this be built into the library by default.

@dregad
Copy link

dregad commented Mar 25, 2024

Just plug https://prismjs.com and you're done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants