Vanessa219 / vditor

♏ 一款浏览器端的 Markdown 编辑器,支持所见即所得(富文本)、即时渲染(类似 Typora)和分屏预览模式。An In-browser Markdown editor, support WYSIWYG (Rich Text), Instant Rendering (Typora-like) and Split View modes.
https://b3log.org/vditor
MIT License
8.25k stars 852 forks source link

Markdown粘贴过去的普通链接可否自动渲染成可以点击的超链接 #1585

Closed GuGuGee closed 5 months ago

GuGuGee commented 5 months ago

你在什么场景下需要该功能?

在Halo中使用,发现如果Markdown下粘贴过去的链接是一个普通的链接,渲染之后是普通的文本,无法实现点击跳转。

只有严格写成

[https://www.google.com/](https://www.google.com/)

这种模式,才能渲染出超链接。

image-20240320105809605

有时候文章里面的链接比较多,需要逐一来写成

[https://www.google.com/](https://www.google.com/)

这种形式,比较费劲 = =

是否考虑可以给这些链接自动渲染成可以点击的超链接?或者是给用户一个选项是否开启的功能。

其他信息

Vanessa219 commented 5 months ago

由于有些用户可能只是想显示链接文本。如果需要的话可以使用 ctrl+K

lulu2jinchi commented 5 months ago

为什么demo里的编辑器在sv模式时支持自动链接呢

Vanessa219 commented 5 months ago

那个是用了Lute 服务端的渲染