Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Markdown: When paragraph starts with * it is (falsely) treated as a list #46

Closed
uliska opened this issue Apr 3, 2016 · 3 comments
Closed

Comments

@uliska
Copy link

uliska commented Apr 3, 2016

This is related to #4 but I'd say it's an issue of its own.

When a paragraph starts with a * * highlighting reflowing turns it into a list with arbitrary list items:

*Note:* This is a very long paragraph that starts with a highlighted word. But it is not a list

=>
*Note:* This is a very long paragraph that
*starts with a highlighted word. But
*it is not a list

However, this isn't even rendered as a list but as a paragraph with interspersed asterisks.

Suggestion: To be interpreted as a list there has to be whitespace after the leading asterisk.

@uliska
Copy link
Author

uliska commented Apr 3, 2016

Update: The same is true when the paragraph starts with a ** highlighting:

**Summary:**   Whenever you see an expression wrapped in parentheses you know
**that it is a list whose first element should be a procedure, which is then
**applied to all remaining list elements *(note that there is the concept of

Which causes even stranger results

@cwensel
Copy link

cwensel commented Apr 20, 2016

would be great if this line was configurable, so '*' could be excluded

linePrefix = block.match(/^\s*[\/#*-]*\s*/g)[0]

@daviwil
Copy link
Contributor

daviwil commented Sep 11, 2018

This issue was moved to atom/atom#18024

@daviwil daviwil closed this as completed Sep 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants