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

Drop indented code blocks #50

Open
chrisjsewell opened this issue Oct 11, 2022 · 1 comment
Open

Drop indented code blocks #50

chrisjsewell opened this issue Oct 11, 2022 · 1 comment

Comments

@chrisjsewell
Copy link
Contributor

As discussed in https://johnmacfarlane.net/beyond-markdown.html (the creator of Markdown)

  1. There should be one clear way of doing things, fenced code block are already the primary way of adding a code block
  2. explicit is better than implicit, fenced code blocks provide a much more explicit indication of the code block
  3. indented code block enforce a lot of technical limitations for the syntax/parser

As an example, you can look at https://markdown-it.github.io/ compared to https://djot.net/playground/ (a proposed successor to commonmark).
In djot it is perfectly fine to indent syntax blocks with any number of spaces, without having it become a code block

::::admonition

     :::admonition

     s

     :::

::::

This would be a breaking change from CommonMark, but one that should be possible

@mgielda
Copy link

mgielda commented Feb 24, 2023

100% support. Actually probably going towards a "subset" of CommonMark like djot in some regards (i.e. one where certain things just don't work because they're ugly/confusing) is nice. We won't miss indented code blocks. Having come from an rst background, that was the worst bit :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants