ravenq / markdown-it-vue

The vue lib for markdown-it.
MIT License
347 stars 68 forks source link

HTML <img> tag doesn't show properly #22

Closed enginewang closed 3 years ago

enginewang commented 4 years ago

在文本中使用img标签而不是![]()来插入图片时(因为要调整图片参数,markdown的![]()做不到),然而img标签被整体当做字符串输出了,问一下有解决方法吗?

Screen Shot 2020-03-26 at 10 24 27 AM
ravenq commented 4 years ago

具体需要哪些参数呢

enginewang commented 4 years ago

主要是图片的width,只用markdown的![]()语法无法控制图片大小

studiowebux commented 4 years ago

Hi Ravenq,

Thank you for this tool.

I am not sure if it is related to this issue, but I can display the image using this :

![Materiels](/assets/Projects/sapin-noel-illumine/materiels.jpg)

But if I want to change the width like that

![Materiels](/assets/Projects/sapin-noel-illumine/materiels.jpg =250px)

It doesn't work and instead it prints the line as text.

Do you know if there is a solution to change the image width directly in the markdown content ?

Thank you

ravenq commented 3 years ago

Duplicate of #16

fix in 3600b01178750e6af39fef260165fc148cd2082a

version: 1.1.5