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

Indented code within lists is incorrectly syntax highlighted #1390

Closed
gjtorikian opened this issue Apr 23, 2013 · 3 comments
Closed

Indented code within lists is incorrectly syntax highlighted #1390

gjtorikian opened this issue Apr 23, 2013 · 3 comments

Comments

@gjtorikian
Copy link
Contributor

When you have a list:

* One
* Two

Code blocks within lists must be indented eight spaces, not the usually four. Ace incorrectly syntax highlights the code at four spaces, even though no Markdown renderer turns it into a <pre> at all.

@gjtorikian
Copy link
Contributor Author

For further reading see the official Markdown syntax: http://daringfireball.net/projects/markdown/syntax

To put a code block within a list item, the code block needs to be indented twice — 8 spaces or two tabs:

@nightwing
Copy link
Member

also lists are terminated after empty line

@github-actions
Copy link

github-actions bot commented May 9, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

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

No branches or pull requests

2 participants