Closed TripleCamera closed 7 months ago
related code: https://github.com/hexojs/hexo-util/blob/1cf5b21ceeb0d2f9456f9003b9f956c43903d4ff/lib/highlight.ts#L23
https://github.com/hexojs/hexo-renderer-marked/commit/56cc5689334486fedd9a4d38e4233463d2cbdbc5 Looks like this feature was added ten years ago
Hi, how is everything going?
Cheers! :tada:
Check List
hexo version
to check)Expected behavior
Leading spaces in code blocks are not stripped.
Actual behavior
Leading spaces in code blocks are stripped.
How to reproduce?
Render the following lines:
Here is a live example on my blog.
Is the problem still there under
Safe mode
?Cannot generate pages at all under safe mode.
Your Node.js & npm version
Your Hexo and Plugin version
Your
package.json
See https://github.com/TripleCamera/triplecamera.github.io.
Your site's
_config.yml
(Optional)See https://github.com/TripleCamera/triplecamera.github.io.
Others
No response