01-17-2014, 03:05 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2014
Device: none
|
Adding TOC anchor links to Markdown/TXT output
I'm converting an ePub book to txt/markdown - then I'm using a markdown converter to output HTML. I'm wondering how to enable links from the table of contents to the heading in the HTML file.
I see that the markdown converter uses the 'toc' extension, and the 'toc' extension allows an option for 'anchorlink' : True. See the extension's usage page for details. I'd like to know how to enable this for my ePub to markdown conversion. Is it possible without recompiling Calibre? Thanks, Jay |
01-17-2014, 04:23 PM | #2 |
Junior Member
Posts: 2
Karma: 10
Join Date: Jan 2014
Device: none
|
I also tried to put something in the toc.py config (?) file in C:\Users\username\AppData\Roaming\calibre\conversi on\toc.py
This is what I put in that file. Code:
{ 'anchorlink' : True, } |
Advert | |
|
01-17-2014, 11:20 PM | #3 |
creator of calibre
Posts: 44,526
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you want to make changes to calibre source code, you need to follow the instructions here: http://manual.calibre-ebook.com/develop.html
|
Tags |
convert, markdown, toc creation |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Losing paragraph format in txt to epub with block and markdown | Tattvadarzin | Conversion | 4 | 10-25-2013 03:49 AM |
Unexpected output from Markdown conversion to ePub | Agama | Conversion | 5 | 11-25-2012 09:58 AM |
Markdown: Anchor inconsistency on Kindle & Sony | Snorkledorf | Conversion | 3 | 01-05-2012 10:06 AM |
Having trouble converting html to markdown txt | bfollowell | Conversion | 7 | 03-30-2011 12:17 PM |
->Txt+Markdown | Perkin | Calibre | 2 | 12-11-2010 05:04 AM |