Open bennycode opened 3 years ago
After debugging further I noticed that this error also happens with simple code like this:
console.log('Hello, World!');
I have the assumption that highlight.js kicks in too late when files are included with "hexo-include-markdown".
Because codeblocks are not working with "hexo-include-markdown", I created my own plugin which supports it:
I am using hexo-include-markdown v1.0.2 & hexo v5.4.0 and I noticed that code blocks behave differently. When writing them directly in my main Markdown file, the code line numbers render fine but if I use the Markdown include they are distorted.
Here is an example to test:
include.md
Try to use it in index.md with:
Plugin version(
npm ls --depth 0
)Screenshot