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

支持自动链接配置 gfmAutoLink #1422

Closed
0214ggyy opened this issue Jun 20, 2023 · 5 comments
Closed

支持自动链接配置 gfmAutoLink #1422

0214ggyy opened this issue Jun 20, 2023 · 5 comments
Assignees
Milestone

Comments

@0214ggyy
Copy link

0214ggyy commented Jun 20, 2023

文本案例

哈哈哈http://192.168.111.215:8080/哈哈哈
哈哈哈http://192.168.111.215哈哈哈12
http://192.168.111.215:3000

previewRender 模式显示

image

即使渲染SpinVditorIRDOM/分屏SpinVditorSVDOM 所见所得/SpinVditorDOM 显示

image

期望能够一致 幸苦了

@Vanessa219 Vanessa219 changed the title 链接显示 previewRender 和 即使渲染SpinVditorIRDOM/分屏SpinVditorSVDOM 所见所得/SpinVditorDOM不一致 options.preview.markdown 添加 gfmAutoLink 以支持自动链接配置 Jun 20, 2023
@Vanessa219
Copy link
Owner

需要设置 autoSpace 和准备添加的 gfmAutoLink 来使其保持一致。

@Vanessa219 Vanessa219 self-assigned this Jun 20, 2023
@Vanessa219 Vanessa219 added this to the 3.9 milestone Jun 20, 2023
@Vanessa219 Vanessa219 changed the title options.preview.markdown 添加 gfmAutoLink 以支持自动链接配置 支持自动链接配置 gfmAutoLink Jun 20, 2023
Vanessa219 added a commit that referenced this issue Jun 20, 2023
@lulu2jinchi
Copy link

亲爱的作者大大,3.9.6版本sv模式,右侧实时渲染时,配置了
preview: {
actions: [],
markdown: {
toc: true,
gfmAutoLink: true,
},
math: {
inlineDigit: true,
},
hljs: {
lineNumber: true,
},
},但是链接还是没有自动变成a标签的自动链接,getHTML()里也是没有a标签的内容,是纯文本,这是咋回事呢。直接调用previewRender是可以变自动链接的,但是有场景需要getHTML()

@Vanessa219
Copy link
Owner

@88250 在编辑器里面确实不行,看一下是什么问题

@0214ggyy
Copy link
Author

0214ggyy commented Apr 9, 2024 via email

@88250
Copy link
Collaborator

88250 commented Apr 10, 2024

Vditor 的三个模式均不支持 auto link,只有纯做渲染的时候才支持。

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

No branches or pull requests

4 participants