Closed TimonPeng closed 3 months ago
git clone -b master https://github.com/TimonPeng/hexo.git
cd hexo
npm install
npm test
can you add some tests?
can you add some tests?
Added, it's looks good to you?
prismjs's mark parameter type is string, so move the array loop to highlightjs file.
https://prismjs.com/plugins/line-highlight/
data-line="1,2-3"
What does it do?
Support additional options for Backtick Code Block.
Screenshots
Before:
After:
Source markdown:
Pull request tasks
Issue #4830
Syntax of Backtick Code Block is:
I was going to simply use split spaces to extract it, but the problem is... If do it with this way, then won't be able to use spaces in the title and link text, which is barely ok, but not what I want.
It also would be chaos to matching with regex too, although I did write:
In the end I decided to use the same code logic as the Code Block Plugin(lib/plugins/tag/code.js), which is simpler and easier to synchronise updates and maintain.