Please check followings before submitting a new issue.
hexo version to check)Node.js & npm version
root@ubuntu:~# node -v
v12.1.0
root@ubuntu:~# npm version
{
npm: '6.9.0',
ares: '1.15.0',
brotli: '1.0.7',
cldr: '35.1',
http_parser: '2.8.0',
icu: '64.2',
llhttp: '1.1.1',
modules: '72',
napi: '4',
nghttp2: '1.38.0',
node: '12.1.0',
openssl: '1.1.1b',
tz: '2019a',
unicode: '12.1',
uv: '1.28.0',
v8: '7.4.288.21-node.16',
zlib: '1.2.11'
}
Your site _config.yml (Optional)
Your theme _config.yml (Optional)
Hexo and Plugin version(npm ls --depth 0)
root@ubuntu:~# npm ls --depth 0
/root
└── (empty)
Your package.json package.json
我不太喜欢hexo中markdown的文本渲染效果,也许我是一个另类吧。我想写一个新的文本解析器,类似markdown,但规则又不是一样。我是一个后端开发者,前端的知识不太会,麻烦告诉我需要修改hexo大概的位置,我修改这个效果需要的技能,我自己来摸索,谢谢各位大佬了。
阅读这两个库的源码就行了
https://github.com/hexojs/hexo-renderer-marked
https://github.com/markedjs/marked
解析的规则在这个文件里
https://github.com/markedjs/marked/blob/master/lib/marked.js
主要是正则表达式
If you are going to makes your own theme and want to learn something about front-end, Google Web Fundamentals will help.
If you are familiar with Hexo and already learned how to write Node.js application, you can start with Hexo's API.
感谢各位的大佬的回答,后端小弟不胜感激
Most helpful comment
If you are going to makes your own theme and want to learn something about front-end, Google Web Fundamentals will help.
If you are familiar with Hexo and already learned how to write Node.js application, you can start with Hexo's API.