Open OpenJarvisAI opened 1 year ago
Hi @OpenJarvisAI , can you provide a sample to descripbe the url? such as
https://github.com/asjqkkkk/markdown_widget
// or
[url description](https://github.com/asjqkkkk/markdown_widget)
Just www.baidu.com
this text can not be higlighted even set url config,
but http://www.baodu.com seems can
Hi @OpenJarvisAI , base on the current sample, the two urls are performing the same.
@asjqkkkk that's weired, seems not work on my side.
this is weired.
am I ddi something wrong?
the behavior is very strange
Hi @OpenJarvisAI, could you please provider a minimal sample code with the sample data I think the parsing problem may be caused by incorrect usage or data source issues.
好的,这是几个网址:
can not parse , and above is raw data source
I know the reason, you need add space between the url and other symbol
such as this: 百度: www.baidu.com 腾讯: www.tencent.com 阿里巴巴: www.alibaba.com
no space it'll not working:
百度:www.baidu.com 腾讯:www.tencent.com 阿里巴巴:www.alibaba.com
@asjqkkkk Don't know it is standared or a bug, but if ww.baidu.com的回复恶搞。continues without a space, the whole text will detected as url. It can hard code handled in this situation?
I think it's the markdown standard, you can have a look with: https://spec.commonmark.org/0.30/#links
is there any way to make it process common usage which might url linke with normal text?
Yes, but you need to write a InlineSyntax
, such as AutolinkExtensionSyntax
@asjqkkkk any example to do it?
I mean pure url, not markdown xx url