mirror of
https://github.com/amehime/hexo-renderer-multi-markdown-it.git
synced 2026-04-05 13:09:04 +08:00
fix
This commit is contained in:
@@ -175,7 +175,7 @@ prismjs:
|
||||
|
||||
Modified from [furigana-markdown-it](https://www.npmjs.com/package/furigana-markdown-it) and [markdown-it-ruby](https://www.npmjs.com/package/markdown-it-ruby)
|
||||
|
||||
eg. `{可愛い犬|か+わい・い・いぬ}`
|
||||
eg. `{可愛い犬^か+わい・い・いぬ}`
|
||||
|
||||
- markdown-it-spoiler
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ module.exports.parse = parse;
|
||||
module.exports.addTag = addTag;
|
||||
|
||||
/**
|
||||
* Parses the {body|toptext} syntax and returns
|
||||
* Parses the {body^toptext} syntax and returns
|
||||
* the body and toptext parts. These are then processed
|
||||
* in furigana.js and turned into \<ruby\> tags by
|
||||
* the {@link addTag} function.
|
||||
@@ -40,7 +40,7 @@ function parse(state) {
|
||||
break;
|
||||
}
|
||||
|
||||
} else if (state.src.charCodeAt(state.pos) === 0x7C/* | */
|
||||
} else if (state.src.charCodeAt(state.pos) === 0x5E/* ^ */
|
||||
&& state.src.charCodeAt(state.pos - 1) !== 0x5C/* \ */) {
|
||||
devPos = state.pos;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hexo-renderer-multi-markdown-it",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"description": "A Markdown parser for Hexo and auto Minify HTML, CSS, JS.",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/amehime/hexo-renderer-multi-markdown-it.git",
|
||||
|
||||
Reference in New Issue
Block a user