imzbf / md-editor-v3

Markdown editor for vue3, developed in jsx and typescript, dark theme、beautify content by prettier、render articles directly、paste or clip the picture and upload it...
https://imzbf.github.io/md-editor-v3
MIT License
1.63k stars 156 forks source link

为什么类似于a.is,这样的字符串会被渲染成<a>标签呀?如图 #579

Closed HDP2017 closed 4 months ago

HDP2017 commented 4 months ago

Describe the issue

image image

Procedure version

vue3项目,4.16.7

Reproduction link

No response

HDP2017 commented 4 months ago

是域名结尾的都这样?比如a.com?如果我只想符合超链接的md语法才渲染成超链接,字符串不去自动匹配这些,有没有配置项呀

imzbf commented 4 months ago

可以,参考:https://imzbf.github.io/md-editor-v3/zh-CN/docs#%F0%9F%8D%A4%20markdownItConfig

mdit.set({
  linkify: false
})
HDP2017 commented 4 months ago

问题解决了,谢谢谢谢

HDP2017 commented 4 months ago

不过我还有一个类似的问题,文本里面的1. 2.之类的也会被默认渲染成列表,这个有啥配置项修改不

imzbf commented 4 months ago

这个是标准的有序列表语法,不能改变