-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
L2 - annoyingSimilar to L1 - broken but there is a known workaround available for the issueSimilar to L1 - broken but there is a known workaround available for the issue
Description
Describe the bug
When there is whitespace in the info string of a fenced code block, like so:
```html foo
...the block is not parsed as a code block. It appears to be rendered as a paragraph:
<p>```html foo</p>To Reproduce
Steps to reproduce the behavior:
- Add a whitespace character in the info string of a fenced code block.
- Render with the default renderer.
Expected behavior
When there is whitespace in the info string, GFM appears to use the first word as the language and ignore the rest. (As demonstrated here) I would expect Marked to do the same by default and pass the entire info string to a custom renderer.
Thank you! 👋
styfle
Metadata
Metadata
Assignees
Labels
L2 - annoyingSimilar to L1 - broken but there is a known workaround available for the issueSimilar to L1 - broken but there is a known workaround available for the issue