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

能不能不要转换文本中的md格式? #2

Open
herfrain opened this issue Feb 13, 2022 · 2 comments
Open

能不能不要转换文本中的md格式? #2

herfrain opened this issue Feb 13, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@herfrain
Copy link

下面是代码块,里面是文本,但我不希望转换文本的格式

![image-20210922195056513](如何在github上搭博客/image-20210922195056513.png)

下面是图片,可以转换
image-20210922195056513

@yiyungent
Copy link
Owner

感谢反馈,从代码来看,确实存在这个问题,修复起来很麻烦,你可以先试试相关插件,看看他们有没有解决,还是和本项目一样暴力替换

PS: 个人思路:
需要 匹配 成对的 代码块标识 " ``` " ,
然后通过出入栈的方式来判断当前 图片标记是否存在于 代码块标记中,很麻烦,so 暂不修复,欢迎 PR,
其实应该说 单 ` 号内内容也会被替换,但不知道为啥我测试没有被替换

测试文章: https://moeci.com/posts/hexo-typora/?highlight=![example](postname/example.jpg)

@yiyungent yiyungent added the bug Something isn't working label Feb 14, 2022
@herfrain
Copy link
Author

herfrain commented Feb 14, 2022

好的,谢谢~

单 ` 号内内容也会被替换,但不知道为啥我测试没有被替换

这个我试了一下,如果有匹配的图片则会被替换,如果没有则不会。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants