Skip to content

Commit

Permalink
Fix marked@1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Sep 2, 2020
1 parent ab1e041 commit 6f8f52e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -121,7 +121,7 @@ https://github.com/jxson/front-matter
[npm-image]: https://img.shields.io/npm/v/mmp-build?style=flat-square
[lic-image]: https://img.shields.io/npm/l/mmp-build?style=flat-square

[size-image]: https://img.shields.io/github/languages/code-size/next-theme/mmp-build?style=flat-square
[size-image]: https://img.shields.io/github/languages/code-size/stevenjoezhang/mmp-build?style=flat-square
[dm-image]: https://img.shields.io/npm/dm/mmp-build?style=flat-square
[dt-image]: https://img.shields.io/npm/dt/mmp-build?style=flat-square

Expand Down
2 changes: 1 addition & 1 deletion lib/generator/marked.js
Expand Up @@ -3,7 +3,7 @@ const marked = require("marked");
class Lexer extends marked.Lexer {
constructor() {
super(...arguments);
this.tokenizer.rules.inline.em = /^\*((?:\*\*|[^*])+?)\*(?!\*)/;
this.tokenizer.rules.inline.em.start = /^(?:(\*(?=[punctuation]))|\*)(?![*\s])/;
}

static lex(src, options) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,6 +29,6 @@
"hexo-front-matter": "^2.0.0",
"hexo-pangu": "^0.2.0",
"highlight.js": "^10.0.0",
"marked": "^1.0.0"
"marked": "1.1.1"
}
}

0 comments on commit 6f8f52e

Please sign in to comment.