html - In Markdown, is there a way to stop images from being wrapped with <p> tags? -


i'm using jekyll , posts in .md format convenience. problem generator automatically wrapping every line in paragraph tags.

line  <img>  line 

becomes

<p>line</p>  <p><img></p>  <p>line</p> 

and means images restricted width i've set paragraphs, messing styles.

any ideas can avoid this? i've tried both html syntax , markdown syntax images nothing seems work.

thanks!

i don't think so. original markdown spec says:

a paragraph 1 or more consecutive lines of text, separated 1 or more blank lines.

it might possible come nifty css fix styling issues though.

or try hack (works in pandoc):

line  <div><img></div>  line 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -