yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.91k stars 322 forks source link

Print to HTML without Syntax Highlighting #883

Open immortalfyre opened 3 years ago

immortalfyre commented 3 years ago

Proposal

Would it be possible to setting for Print to HTML that doesn't include Syntax Highlighting? I'd actually like to use a different syntax highlighter then HighlightJS (that I would just include in my live file), so would really love to get an HTML file without all the hljs spans.

References

yzhang-gh commented 3 years ago

There is an includeVscodeStylesheets option you can have a try.

Lemmingh commented 3 years ago

The issue is about the highlighter bound to the markdown-it instance. Here deep down into the engine:

https://github.com/yzhang-gh/vscode-markdown/blob/b0b336b54e6374addd4e15713338eaa836fd4119/src/markdownEngine.ts#L68-L80

Seems not possible to solve now. We'd better discuss it as part of v4 draft.