Closed 1976083684 closed 1 year ago
TAB缩进(4),还是会变成代码块,好烦恼,我的文章是从typora移植过来的,基本文章开头都是4个空格缩进,结果文章都变成代码块了,欸
怎么解决呢,好烦,感觉又不方便了
这个语法叫做 Indented code block
,Hexo 用的 marked 默认是启用的,改起来有点麻烦
你可以写个 batch 或者 shell 脚本把你的博客源码批量处理一下。另外,请遵守 issue 格式。
For your reference, you can use this regex to replace leading space to empty string.
^[ ]{4}
match only 4 spaces at the start of line
^[ ]{4,}
match only 4 or more spaces at the start of line
Check List
Please check followings before submitting a new issue.
hexo version
to check)Expected behavior
Actual behavior
How to reproduce?
Is the problem still there under "Safe mode"?
Environment & Settings
Node.js & npm version(
node -v && npm -v
)Your site
_config.yml
(Optional)Hexo and Plugin version(
npm ls --depth 0
)Your package.json
package.json
Others