Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vditorDOM2Md 将 DOM 转换为 MD 时,<a> 中嵌套 <img> 时,整个 <a> 被过滤 #156

Closed
bluishoul opened this issue Sep 26, 2021 · 1 comment · Fixed by #157
Closed

Comments

@bluishoul
Copy link
Contributor

描述问题 Describe the problem

vditorDOM2Md 将 DOM 转换为 MD 时,<a> 中嵌套 <img> 时,整个 <a> 被过滤

<a href="https://example.com"><img src="https://example.org" alt="example" title="example"></a>

https://github.com/Vanessa219/vditor/blob/v3.8.7/src/ts/markdown/getMarkdown.ts#L7

期待的结果 Expected result

[![example](https://example.org "example")](https://example.com)

截屏或录像 Screenshot or video

输入图片说明

版本环境 Version environment

  • 版本 Version:master / dev
  • 操作系统 Operating system:
  • 浏览器(如果使用)Browser (if used):

其他信息 Other information

PR ready: dev...bluishoul:pb/fix-link-with-img

@88250
Copy link
Owner

88250 commented Sep 26, 2021

感谢,请 PR。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants