View Single Post
Old 03-01-2012, 07:36 AM   #2
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Calibre is correct in doing this since Markdown formatting syntax is not processed within block-level HTML tags, such as DIV. This is part of the Markdown specification. See http://daringfireball.net/projects/markdown/syntax#html

If you are converting to ePub then you could use calibre's Tweak ePub function to explode the ePub and add your required <div> tags. In this case you do not need to specify these <div> tags in the markdown, just use the normal image syntax.

I'm note sure why your second syntax doesn't work. Do you have an images folder relative to your markdown text file?

An alternative option would be to use Textile instead of Markdown as it has more tag and style capabilities. See http://textile.thresholdstate.com/

Last edited by Agama; 03-01-2012 at 07:45 AM.
Agama is offline   Reply With Quote