mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
CommonMark 0.31.2 says the optional closing sequence of #s must be preceded by spaces or tabs, but the heading tokenizer tested for a space only, so `# foo<tab>#` kept the trailing hashes as content. The shared endingSpaceChar rule stays space only because code spans need exactly that, so the heading path gets its own rule.