-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch @docusaurus/theme-common as temp workaround
- Loading branch information
Showing
4 changed files
with
169 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
module.exports = { | ||
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | ||
presets: [ | ||
require.resolve('@docusaurus/core/lib/babel/preset') | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/@docusaurus/theme-common/lib/utils/codeBlockUtils.js b/node_modules/@docusaurus/theme-common/lib/utils/codeBlockUtils.js | ||
index 711d1bf..dfc7c88 100644 | ||
--- a/node_modules/@docusaurus/theme-common/lib/utils/codeBlockUtils.js | ||
+++ b/node_modules/@docusaurus/theme-common/lib/utils/codeBlockUtils.js | ||
@@ -6,7 +6,7 @@ | ||
*/ | ||
import rangeParser from 'parse-numeric-range'; | ||
const codeBlockTitleRegex = /title=(?<quote>["'])(?<title>.*?)\1/; | ||
-const highlightLinesRangeRegex = /{(?<range>[\d,-]+)}/; | ||
+const highlightLinesRangeRegex = /\{(?<range>[\d,-]+)\}/; | ||
const commentTypes = ['js', 'jsBlock', 'jsx', 'python', 'html']; | ||
// Supported types of highlight comments | ||
const commentPatterns = { |
Oops, something went wrong.