Skip to content

Commit

Permalink
fix: 修复代码块内嵌套缩进时出现占位字符的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Feb 27, 2022
1 parent 74b100b commit 999581e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/hooks/CodeBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ export default class CodeBlock extends ParagraphBase {
if (cacheCode && cacheCode !== '') {
return this.getCacheWithSpace(this.pushCache(cacheCode, sign, lines), match);
}
$code = this.$recoverCodeInIndent($code);
$code = $code.replace(/~D/g, '$');
$code = $code.replace(/~T/g, '~');

Expand Down

0 comments on commit 999581e

Please sign in to comment.