Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:修改了hook,增加了通过的测试用例 #941

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update InlineCode.js
Cross1111 committed Oct 11, 2024
commit 8b0ae59e0a05625185a0af445051bec2933ea496
2 changes: 1 addition & 1 deletion src/core/hooks/InlineCode.js
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ export default class InlineCode extends ParagraphBase {
}

rule() {
const ret = { begin: '(`+)[ ]*', end: '[ ]?\\1', content: '([^`\\n]*(?:\\n[^`\\n]*)*)(?=\\1|$)', };
const ret = { begin: '(`+)[ ]*', end: '[ ]?\\1', content: '([^`\\n]*(?:\\n[^`\\n]*)*)(?=\\1|$)' };
ret.reg = compileRegExp(ret, 'g');
return ret;
}