Skip to content

Commit

Permalink
fix: markdown代码特殊标记
Browse files Browse the repository at this point in the history
  • Loading branch information
kongjing committed Jun 9, 2023
1 parent 237df66 commit 02c5405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/doc/config/utils/markdown-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function getImportCodes(codes: string, path: string, demoDir?: string) {

function createPreContainer(str) {
str = str.replace(
/(```[\w-]*\n[\s\S]*?\n```)/gm,
/(```[\s\w-]*\n[\s\S]*?\n```)/gm,
'\n<div class="code-box-max">\n<div class="copy-code-btn"></div>\n\n$1\n\n</div>\n',
)

Expand Down

0 comments on commit 02c5405

Please # to comment.