`main` branch not compat with remark-highlightjs?
See original GitHub issueCurrently getting:

TypeError: Cannot read property 'highlight' of undefined
which occurs on this code:
data.hChildren = _lowlight.default.highlight(lang, node.value, {
prefix
}).value;
which is transform via babel-jest -> babel -> @babel/plugin-transform-modules-commonjs
Versions:
lowlight main (as of today: 869119be9a7f12eb5da0092800a7b4622d70499b)
remark-highlightjs: 6.0.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (5 by maintainers)
Top Results From Across the Web
highlight.js demo
(* reasoning by induction over s. Then, we have two new goals corresponding on the case analysis about s (either it is niln...
Read more >highlight.js is not working with markdown in Next.js App
Using the remark library, we converted markdown into html language and applied markdown styling. The problem is that I want to use highlight.js...
Read more >observablehq/highlight.js
The CDN for @observablehq/highlight.js. ... Build Status](https://travis-ci.org/highlightjs/highlight.js.svg?branch=master)]( ... 77, In your main script:.
Read more >How to set up syntax highlighting for Gatsby - Codepunkt
Highlighting of embedded CSS in JavaScript doesn't work. It is treated as a regular template string. The plugin does not take full advantage...
Read more >remark-highlight.js
Legacy remark plugin to highlight code blocks with highlight.js — please use `rehype-highlight` instead. Latest version: 7.0.1, ...
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 Free
Top 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

all good! at least the issue is known! 😄
We’re switching to ESM: https://github.com/unifiedjs/unified/issues/121. This post, linked to from the readme, goes into a bit more detail: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c. Specifically,
lowlight#maindoes not have a default exportlowlightonmainis waiting for the next major of highlight.js before being released, though.