Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 03-19-2024, 06:32 AM   #1
disfated
Junior Member
disfated began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2024
Device: none
Exclamation Can we have TOC in markdown?

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?
disfated is offline   Reply With Quote
Old 03-19-2024, 06:45 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,019
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Old 03-19-2024, 08:38 AM   #3
disfated
Junior Member
disfated began at the beginning.
 
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.
disfated is offline   Reply With Quote
Old 03-19-2024, 11:03 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,019
Karma: 22669822
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.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:30 PM.


MobileRead.com is a privately owned, operated and funded community.