How to work with remark-highlight.js?
See original GitHub issueTrying to use remark-highlight.js
:
{
mdPlugins: [
require('remark-highlight.js')
]
}
But what I got is:
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
remark-highlight.js - GitHub
Please use remark-rehype to move from remark (markdown) to rehype (HTML) and then replace remark-highlight.js with rehype-highlight .
Read more >remark-highlight.js - npm
Legacy remark plugin to highlight code blocks with highlight.js ... Start using remark-highlight.js in your project by running `npm i ...
Read more >remark-highlight.js - unified
Please use remark-rehype to move from remark (markdown) to rehype (HTML) and then replace remark-highlight.js with rehype-highlight .
Read more >How to use highlight.js
// first, find all the div.code blocks document.querySelectorAll('div.code').forEach(el => { // then highlight each hljs.highlightElement(el); });.
Read more >Markdown Syntax Highlighting with PrismJS using Unified ...
We'll explore how to use Unified, Remark, Rehype, and PrismJS to create ... I found that highlightjs has more support and examples but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey folks! tip: use
hastPlugins
with rehype-highlight (lowlight) or @mapbox/rehype-prism (refractor) instead!There are some slight differences and I’d suggest using the rehype versions above remark versions!
@trevordmiller Great helps! It helps me a lot.