-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fenced blocks marked with language are stripped out #1428
Comments
I think this is the same, issue I am having. I can't put any code blocks in with a language. They work if no language is specified but that is not ideal. I'd like the documentation to support highlighting syntax on code blocks. Maybe I am misconfiguring it. |
The issue is a combination of how highlighter.js calls hljs.highlightAuto and more critically because remark html is not configured with sanitaze: false, and clean: false |
My workaround: if you have a package.json script call "docs", then add a:
and build from _readme.md |
Input code (as a markdown file referenced from documentation.yml):
(I added
\
at the start of ``` lines to get Github Issues to leave them alone).Output documentation:
Expected: either just a regular code block, or ideally, with different syntax highlighting for js/html
Actual: those code blocks are completely missing from output.
Version 13.2.5
Running on CLI:
documentation build -f html -o docs --config documentation.yml --sort-order alpha src/index.js src/utilsGenerated.js
https://github.com/stevage/map-gl-utils/blob/master/package.json#L16
For context: I want the language markers because the same README is also published to NPM and Github.
The text was updated successfully, but these errors were encountered: