sergioramos / remark-prism

Syntax highlighter for markdown code blocks using Prism
95 stars 21 forks source link

Highlight-keywords plugin #306

Open nathnhughes opened 2 years ago

nathnhughes commented 2 years ago

Would be great to be able to use the highlight-keywords plugin for more granular styling.

Got it working locally by playing around with the source code. It seems all that needs to be done is to add 'highlight-keywords' to the PLUGINS array:

https://github.com/sergioramos/remark-prism/blob/49f1f86d50f376c647214c02cf972ce05b0fc756/src/highlight.js#L11-L21

Happy to submit a PR that resolves this; believe it also relates to #260 👍

stephencweiss commented 2 years ago

@nathnhughes - let's get a PR added!

nathnhughes commented 2 years ago

@stephencweiss on it, see #345 👍