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

导入 Markdown 时支持 [alt](<url> "title") 语法 #7348

Closed
2 tasks done
iamqiz opened this issue Feb 12, 2023 · 4 comments
Closed
2 tasks done

导入 Markdown 时支持 [alt](<url> "title") 语法 #7348

iamqiz opened this issue Feb 12, 2023 · 4 comments
Assignees
Milestone

Comments

@iamqiz
Copy link
Contributor

iamqiz commented Feb 12, 2023

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

该问题是否能够在默认主题(daylight/midnight)下重现? Can the issue be reproduced with the default theme (daylight/midnight)?

  • 我能够在默认主题下重现该问题
    I was able to reproduce the issue with the default theme

描述问题 Describe the problem

从wolai导出的markdown含有下面这样的语法

[jb idea 版本发布时间](<jb idea 版本发布时间/jb idea 版本发布时间.md> "jb idea 版本发布时间")

[科学](科学/科学.md "科学")

在typora里打开正常,

导入到思源之后 变成这样:
Snipaste_2023-02-12_12-20-08

第一个超链接没有识别,
把尖括号删掉就正常了,
是markdown标准不允许url用尖括号包围, 还是思源不支持?

另外 超链接的url还会被编码
Snipaste_2023-02-12_12-22-05
本来的"科学/科学.md" 变成了下面这样:

%E7%A7%91%E5%AD%A6/%E7%A7%91%E5%AD%A6.md

期待的结果 Expected result

`

截屏或者录屏演示 Screenshot or screen recording presentation

No response

版本环境 Version environment

`

日志文件 Log file

`

更多信息 More information

No response

@88250
Copy link
Member

88250 commented Feb 12, 2023

Markdown 中有 <url> 语法的,但是思源不支持。

@88250 88250 closed this as completed Feb 12, 2023
@iamqiz
Copy link
Contributor Author

iamqiz commented Feb 12, 2023

markdown支持 [text](<www.baidu.com> "xx") 这种url带尖括号的吗?

github评论支持这种, text
Snipaste_2023-02-12_16-26-42

我试了导入markdown文件

# 的飒飒323
[科学是](<www.baidu.com> "科学1")
[科学是大](<www.jd.com> "科学12132")
[科学是大3243](<www.jd.com>)
[双方都](www.xx.com "刚发的")

结果如下,
Snipaste_2023-02-12_16-20-46

最后两种行, 前两个不行
Snipaste_2023-02-12_16-22-00
Snipaste_2023-02-12_16-22-13

感觉需要改进一下

@88250 88250 self-assigned this Feb 12, 2023
@88250 88250 added the Bug label Feb 12, 2023
@88250 88250 changed the title markdown中超链接的url支持用尖括号<>包围吗? 导入 Markdown 时支持 [alt](<url> "title") 语法 Feb 12, 2023
@88250 88250 added Enhancement and removed Bug labels Feb 12, 2023
@88250 88250 added this to the 2.7.5 milestone Feb 12, 2023
@88250
Copy link
Member

88250 commented Feb 12, 2023

是有点问题,下个版本改进,谢谢。

@iamqiz
Copy link
Contributor Author

iamqiz commented Feb 12, 2023

https://spec.commonmark.org/0.30/#links
查了一下,确认markdown是支持这种语法的

Snipaste_2023-02-12_19-35-38

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

2 participants