![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2024
Device: none
|
![]()
Calibre viewer is capable of opening markdown files, but for some reason, it doesn't generate a table of contents for them, even though it renders the headings perfectly fine.
Is it a bug, or am I missing something? ![]() |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,262
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The viewer shows whats called a "metadata" table of contents. That is a separate table of contents not part of the document. Mardown doesnt have such a concept. You can do a conversion in calibre to epub and then view the epub. The conversion will auto generate the toc from headings or whatever you configure.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2024
Device: none
|
Yeah, I'm actually doing the complete opposite - converting EPUB to MD, since EPUBs are almost always overloaded with ugly styling and it takes way too much time to make edits compared to MD. I just thought it wouldn't hurt anyone if Calibre generated a table of contents out of MD headers. Seems like an easy thing to implement.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,262
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The point of the viewer is to hew as closely to the input document as practical. It's not going ot start doing all sorts of transformations to the input document. You have conversions for that. And you dont need to edit epubs to remove styling. The conversion dialog has various features to wasily remove commonly used CSS during conversion so you can just do an EPUB to EPUB conversion.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Markdown? | sbaguz | KOReader | 5 | 12-11-2020 05:28 AM |
Calibre's viewer do not have a toc when viewing markdown files. | The_book | Calibre | 1 | 05-28-2020 04:48 AM |
Markdown Metadata | Dalcyks | Conversion | 8 | 11-16-2016 03:04 AM |
Adding TOC anchor links to Markdown/TXT output | maf_jclark | Conversion | 2 | 01-17-2014 10:20 PM |
->Txt+Markdown | Perkin | Calibre | 2 | 12-11-2010 04:04 AM |