Skip to content

Fenced blocks marked with language are stripped out #1428

Open
@stevage

Description

@stevage

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).

 To use without any build process:
 
\```html 
<script src="https://unpkg.com/map-gl-utils"></script> 
\``` 
 
then 
 
\```js 
U.init(map) 
\```

Output documentation:

<p>To use without any build process:</p>
<p>then</p>
<p>With Webpack etc:</p>

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions