![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Unexpected output from Markdown conversion to ePub
I am testing conversion of guitar tab music, (formatted as Markdown plain-text), to ePub and getting some odd results. Guitar tab lines start with a vertical-bar, "|", character and for some reason this seems to be triggering <table> tags in the output. I have re-checked the Markdown specification and there is no support for tables so I'm not sure what's going on here. It's definitely the "|" characters because changing them to "!" converts as expected.
Source (sample), output ePub and conversion log attached. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC the calibre markdown engine includes a plugin for tables. Since tables are something many books have
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Interesting. Is there a syntax definition for them somewhere? I can then make use of them and also make sure I don't fall foul of accidental triggering.
For the current situation I shoud be able to make use of <pre> tags to 'hide' the vertical bars from Markdown processing. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Thanks, that makes sense now. Does calibre implement the whole of PHP Markdown Extra or just table support?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,963
Karma: 27109050
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just a few extensions, I cant recall which ones exactly.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
markdown & blockquote: conversion fails | felixv | Conversion | 2 | 08-13-2012 02:31 AM |
TXT to EPUB conversion hangs, no debug output generated | TheRealRalph | Conversion | 1 | 01-21-2012 08:18 AM |
Markdown conversion: line spacing & lists | Snorkledorf | Conversion | 16 | 11-09-2011 06:51 AM |
Markdown / Blockquote conversion giving unexpected results | Agama | Conversion | 23 | 02-23-2011 11:16 AM |
Unexpected conversion | jusmee | Calibre | 4 | 11-05-2009 10:30 AM |