agusmakmun / agusmakmun/django-markdown-editor

<img> tag does not seem to work

未关闭
#74 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
901
派生
1.3k
PR 合并指标
30 天内没有已合并 PR

描述

I have the following issue. When I add this to the editor the `` tag does not seem to work, no problems with `` and other tags.
```
++some fractal++

Embedded in MD as
`![Figure_1.png](https://i.imgur.com/rK5t5LP.png)`
the picture is ok:
![Figure_1.png](https://i.imgur.com/rK5t5LP.png)

Embedded as `<img>` tag, it does not seem to work. Included in the MD text is:
`<img width="500" src="https://i.imgur.com/rK5t5LP.png"/>`
It displays like:

<img width="500" src="https://i.imgur.com/rK5t5LP.png"/>

In the debugging inspector it renders like:
`<p><img <a="" href="http://src=&quot;https://i.imgur.com" width="500">src="https://i.imgur.com/rK5t5LP.png"/&gt;</p>`
<br>
In iframe it's ok (at least when you leave it between empty lines)
`<iframe src="https://i.imgur.com/rK5t5LP.png"`

and link also works
[Fractal](https://i.imgur.com/rK5t5LP.png)


What is wrong with the `img` tag??
```
When added to this github editor it all works fine (except `iframe`):
++some fractal++

Embedded in MD as
`![Figure_1.png](https://i.imgur.com/rK5t5LP.png)`
the picture is ok:
![Figure_1.png](https://i.imgur.com/rK5t5LP.png)

Embedded as `` tag, it does not seem to work. Included in the MD text is:
``
It displays like:

In the debugging inspector it renders like:
`

src="https://i.imgur.com/rK5t5LP.png"/>

`


In iframe it's ok (at least when you leave it between empty lines)
``

<iframe width="700" src="https://i.imgur.com/rK5t5LP.png">

and link also works
[Fractal](https://i.imgur.com/rK5t5LP.png)


What is wrong with the `img` tag??

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。