View Single Post
Old 03-01-2012, 04:09 AM   #1
Snorkledorf
Blue. Not sad...just blue
Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.Snorkledorf ought to be getting tired of karma fortunes by now.
 
Snorkledorf's Avatar
 
Posts: 218
Karma: 1267018
Join Date: Oct 2009
Location: Japan
Device: Ridibooks Paper Pro
Markdown: Direct image references?

calibre seems to ignore files directly referenced via HTML inside a Markdown file, both during initial import into the .txtz file, and then during conversion (that is, if I manually open the .txtz file, add in the missing files, and re-zip it, calibre still ignores them during conversion).

Is there a setting somewhere that'd allow me to directly reference files like this?


The reason that I'm trying to use HTML here is that I want to center and right-justify some images, but images referenced in Markdown style within <div> tags, like this...

Code:
<div style="text-align: center">
![text][myImage]
</div>

[myImage]: images/file.png
...don't work (they remain text).

So instead I'm trying to reference the image directly with HTML, like this:

Code:
<div style="text-align: center">
<img src="images/file.png" alt="text">
</div>
BBEdit and Marked (a Mac Markdown viewer app) both happily preview this useage, but calibre doesn't like it.

Any hints?

Thanks!
Snorkledorf is offline   Reply With Quote