gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

Add syntax of custom IDs for headings

Open orelby opened this issue 12 years ago • 1 comments

Lots of UTF-8 characters aren't supported in various ebooks' table of contents (or just calibre generated ebooks?) - meaning some aren't presented in the reader (or are gibberish) and all non-English (even question marks) don't link to their corresponding chapter/section.

One could just remove the automated ID generation (it should be configurable), but what about HTML-based ebooks?

Another, non contradictory approach would be to add configuration for disabling automatic ID generation in certain places (html/ebook-formats/all).

tl;dr The syntax could be like that:

Heading 1 {#heading1}
========

## Heading 2 {#heading2}

orelby avatar Jul 28 '14 11:07 orelby

+1

Mgldvd avatar Oct 17 '14 22:10 Mgldvd