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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2014, 03:05 PM   #1
maf_jclark
Junior Member
maf_jclark began at the beginning.
 
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
maf_jclark is offline   Reply With Quote
Old 01-17-2014, 04:23 PM   #2
maf_jclark
Junior Member
maf_jclark began at the beginning.
 
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,
}
That didn't work...
maf_jclark is offline   Reply With Quote
Advert
Old 01-17-2014, 11:20 PM   #3
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,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
kovidgoyal is offline   Reply With Quote
Reply

Tags
convert, markdown, toc creation

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 05:27 PM.


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