GitbookIO / kramed

A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
MIT License
223 stars 47 forks source link

Improve heading id creation #38

Closed christopheradams closed 4 years ago

christopheradams commented 8 years ago

Fixes two problems I was having with automatic heading tag id generation.

I noticed this issue in an Arabic gitbook with a heading that begins with a question mark. The resulting markup was not valid for an EPUB.

christopheradams commented 8 years ago

Related: https://github.com/GitbookIO/gitbook/issues/888

christopheradams commented 8 years ago

I realized that this alone will not fix the problem for gitbook, since gitbook-markdown is set to headerAutoId: false