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 link does not render correctly if include a backslash #139

Closed
4 tasks done
gadfly3173 opened this issue Aug 9, 2019 · 6 comments · Fixed by #162
Closed
4 tasks done

Markdown link does not render correctly if include a backslash #139

gadfly3173 opened this issue Aug 9, 2019 · 6 comments · Fixed by #162

Comments

@gadfly3173
Copy link

Check List

Please check followings before submitting a new issue.

  • I have already read Docs page & Troubleshooting page
  • I have already searched existing issues and they are not help to me
  • I examined error or warning messages and it's difficult to solve
  • Node.js is higher than 6.9

Expected behavior

显示链接

Actual behavior

无法使用markdown语法来在文章中创建链接

How to reproduce?

比如https://blog.gadfly.vip/2018/07/dual-gpu-switch/ 这里出现的两条链接分别使用了<links>[](links)的写法 但是都没有正常转换成链接

@yoshinorin
Copy link
Member

@gadfly3173
Please try to delete trailing slash of title as following.

- [https://www.bilibili.com/video/av28150115/](https://www.bilibili.com/video/av28150115/) 
+ [https://www.bilibili.com/video/av28150115](https://www.bilibili.com/video/av28150115/) 

It will work well.

3658

@gadfly3173
Copy link
Author

thanks,it can fix most of the problems.But I found that Github won't have any problem with that, I think hexo should fix this problem.

@hexojs hexojs deleted a comment from stale bot Oct 16, 2019
@yoshinorin
Copy link
Member

It seems different with markedjs default behavior.

Demo

@yoshinorin yoshinorin changed the title hexo无法显示链接 Markdown link does not render correctly if include a backslash Oct 16, 2019
@gadfly3173
Copy link
Author

It seems also can not show links like this:

Google play地址在这里:<https://play.google.com/store/apps/details?id=de.syss.MifareClassicTool>,Github项目地址在这里:<https://github.com/ikarus23/MifareClassicTool>

but it worked in mardjs demo

@yoshinorin
Copy link
Member

@gadfly3173 Thank you :)
We will investigate later.

@stevenjoezhang stevenjoezhang transferred this issue from hexojs/hexo Mar 15, 2020
@stevenjoezhang
Copy link
Member

stevenjoezhang commented Mar 15, 2020

Seems duplicate of #83

Reproduced this issue with the following configuration in hexo-renderer-marked@3.0.0

marked:
  gfm: true
  autolink: false

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

Successfully merging a pull request may close this issue.

3 participants