Skip to content

Getting code fence language via custom plugin #159

Answered by wooorm
mturoci asked this question in Q&A
Discussion options

You must be logged in to vote

The code blocks will have a class, language-js for example. You can pick those. You don’t need to get into parsing phases.
Here’s an example: https://github.com/wooorm/starry-night#example-using-starry-night-on-the-client

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mturoci
Comment options

@wooorm
Comment options

Answer selected by mturoci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants