|05-09-2011, 11:05 AM||#1|
Join Date: Jan 2011
Markdown Issues. Any suggestions?
So I'm trying to convert files into markdown formatted txt files and I keep running into issues.
More often than not, converting directly from an ePub (with or without DRM) will hit a snag and throw this error:
Converting XHTML to Markdown formatted TXT... Python function terminated unexpectedly string index out of range (Error Code: 1) Traceback (most recent call last): File "site.py", line 103, in main File "site.py", line 85, in run_entry_point File "site-packages\calibre\ebooks\conversion\cli.py", line 282, in main File "site-packages\calibre\ebooks\conversion\plumber.py", line 1040, in run File "site-packages\calibre\ebooks\txt\output.py", line 81, in convert File "site-packages\calibre\ebooks\txt\markdownml.py", line 27, in extract_con tent File "site-packages\calibre\ebooks\txt\markdownml.py", line 52, in mlize_spine IndexError: string index out of range
Finally I tried to convert to .pdf and then to markdown. It doesn't throw an error, converts the formatting but it commonly has the ol' 'double L' bug.
If you can think of any other way for me to convert to markdown formatted txt from .epub I'd love to hear it.
|05-09-2011, 12:37 PM||#2|
Sigil & calibre developer
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
I will look into this later today, once I get home from work. Also, Markdown output does not currently support CSS. This will be be corrected in the nearish future.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Markdown HTML problem||nhopton||Conversion||10||02-10-2011 05:43 PM|
|Markdown Syntax in Comments||itimpi||Calibre||11||01-25-2011 11:28 AM|
|->Txt+Markdown||Perkin||Calibre||2||12-11-2010 04:04 AM|
|Capture intermediate html from markdown||Agama||Calibre||3||07-30-2010 11:33 AM|
|Markdown editor||user_none||Workshop||0||08-30-2009 09:25 PM|