Does DT3 support image size control in Markdown? I’ve tried various incantations with no luck. If it is supported could you provide example syntax or a link to documentation?
Thanks!
I suppose you could use custom CSS for that
Welcome @rsadek
@chrillek is correct here. The presentation of images is controlled via CSS, e.g.,…
<style type="text/css">
figure, img {
width: 90%;
height; auto;
}
</style>
And this only works in line rather than inserted into stylesheet? Is that a limitation?
It sure does work in a stylesheet. It’s a very common thing to include in a stylesheet.
I just added the img
styling to the wiki.css stylesheet, which you can see is linked via MultiMarkdown metadata. Then I dropped the image into the Markdown document et voilà!
PS: The image in the document may look smaller than expected at 90% but this is a non-standard document I was messing around with. The takeaway is the external stylesheet is indeed applying styling.
All styles work inline as well as in external stylesheets. We’re talking HTML here! The MD itself doesn’t care about styles, it’s what it is rendered as that does.
Thank you Bluefrog, I asked only because when I put that in my stylesheet it didn’t seem to work, but when I put the snippet in my markdown document with the html tags it works beautifully. I was wondering if it was a DT3 issue.
However, I had made a simple syntax error/typo, which I have now corrected and works as expected in my stylesheet. Thanks again.
See above, simple typo derailed my stylesheet which I thought might be a limitation of DT3 image handling but the limitation was my attention to detail. (INLINE not online, I was referring to putting that code in markdown document vs the stylesheet but think that Bluefrog understood the gist).
Typo (or rather the iPad trying to be clever), fixed