![]() |
#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 |
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Losing paragraph format in txt to epub with block and markdown | Tattvadarzin | Conversion | 4 | 10-25-2013 02:49 AM |
Unexpected output from Markdown conversion to ePub | Agama | Conversion | 5 | 11-25-2012 08:58 AM |
Markdown: Anchor inconsistency on Kindle & Sony | Snorkledorf | Conversion | 3 | 01-05-2012 09:06 AM |
Having trouble converting html to markdown txt | bfollowell | Conversion | 7 | 03-30-2011 11:17 AM |
->Txt+Markdown | Perkin | Calibre | 2 | 12-11-2010 04:04 AM |