This commit is contained in:
amehime
2020-09-27 14:54:16 +08:00
parent 81641a1756
commit f027f5836f
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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",