remarkable icon indicating copy to clipboard operation
remarkable copied to clipboard

Allow headings without space between hash and title

Open Redsandro opened this issue 7 years ago • 1 comments

#Half the markdown documents I encounter in the wild do not have a space between the hash characters and the title. E.g.: ###Title.

This is because a lot of editors don't necessarily expect a space, and render it formatted either way. StackEdit documents for example.

Now I don't know what the official rule is for Markdown, but sometimes you don't control the source document and just want to render it.

Can we make a space after the hashes optional?

My first thought was to look for a \s+ regex and change it to \s*, but the actual code is a bit too hocus pocus to me for making a PR myself.

Redsandro avatar Mar 06 '18 22:03 Redsandro

Any updates/solution? I'm working with 1000+ markdown content pages where the spacing between the header and the hash wasn't enforced.

antoniojps avatar Dec 02 '19 12:12 antoniojps