Skip to content
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

Code fenced blocks are not processed properly #1330

Closed
4 tasks done
fourdim opened this issue May 14, 2024 · 2 comments
Closed
4 tasks done

Code fenced blocks are not processed properly #1330

fourdim opened this issue May 14, 2024 · 2 comments
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on

Comments

@fourdim
Copy link

fourdim commented May 14, 2024

Initial checklist

Affected packages and versions

15.0.1

Link to runnable example

https://stackblitz.com/edit/github-dbrz8s?file=src%2Fmain.ts

Steps to reproduce

// https://spec.commonmark.org/0.31.2/#example-138

const sourceMarkdown = `
~~~ ~~~
aaa
`;

Expected behavior

Code fences (opening and closing) cannot contain internal spaces or tabs.

Actual behavior

Parsing ~~~ as language.

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels May 14, 2024
@wooorm
Copy link
Member

wooorm commented May 14, 2024

The CM example you reference is different, it uses backticks.
Backticks and tildes are different. Because backticks are resused for “inline” code as well.

https://spec.commonmark.org/dingus/?text=~~~%20~~~%0Aaaa

@wooorm wooorm closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
@wooorm wooorm added the 🤷 no/invalid This cannot be acted upon label May 14, 2024

This comment has been minimized.

@github-actions github-actions bot added 👎 phase/no Post cannot or will not be acted on and removed 🤞 phase/open Post is being triaged manually labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷 no/invalid This cannot be acted upon 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants