Don't escape number signs (#) if they won't be parsed as headings #106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #105 and add related test patterns
Note: Although CommonMark 0.30 only specifies spaces, tabs, or by the end of line as the separator between the heading markers
#and the heading content, my code uses\sregex to identify spaces (like the code for escaping list item markers), so it will escape heading markers if they are followed by a Unicode space.It's stricter but has better compatibility with other Markdown editors, e.g. iA Writer parses
# 123456(withU+3000in between) as a heading.Thanks!