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

Markdown mode: should empty lines (with spaces) escape block lists? #2595

Closed
kevinushey opened this issue Jul 13, 2015 · 2 comments
Closed

Comments

@kevinushey
Copy link
Contributor

For example, in the following two screenshots, the header state is disallowed because the tokenizer interprets the indentation as a continuation of a block:

screen shot 2015-07-13 at 10 43 17 am

screen shot 2015-07-13 at 10 43 22 am

Should a list-block be escaped when there is only whitespace?

"listblock" : [ { // Lists only escape on completely blank lines.
token : "empty_line",
regex : "^$",
next : "start"
}, { // list

@nightwing
Copy link
Member

I think it should be escaped when the indentation is equal to the indentation of the starting line.
Currently markdown mode has many similar issues and it's syntax is hard to parse with the tokenizer ace uses.
I wonder if we could use something like https://github.com/markdown-it/markdown-it to make markdown highlighting better

@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