Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2014, 02: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, 03: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
Old 01-17-2014, 10: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: 43,954
Karma: 22669822
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 online now   Reply With Quote
Reply

Tags
convert, markdown, toc creation


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


All times are GMT -4. The time now is 10:15 AM.


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