mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 03:58:49 +02:00
chore(v2): upgrade dependencies (#3727)
* chore(v2): upgrade dependencies * Update loader-utils * Update MDX packages * Update Babel packages * Various updates
This commit is contained in:
parent
14a65907bd
commit
049634a927
18 changed files with 1327 additions and 599 deletions
|
@ -116,16 +116,13 @@ export default ({
|
|||
// Tested above
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
const highlightLinesRange = metastring.match(highlightLinesRangeRegex)![1];
|
||||
highlightLines = rangeParser
|
||||
.parse(highlightLinesRange)
|
||||
.filter((n) => n > 0);
|
||||
highlightLines = rangeParser(highlightLinesRange).filter((n) => n > 0);
|
||||
}
|
||||
|
||||
if (metastring && codeBlockTitleRegex.test(metastring)) {
|
||||
// Tested above
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
codeBlockTitle = metastring
|
||||
.match(codeBlockTitleRegex)![1];
|
||||
codeBlockTitle = metastring.match(codeBlockTitleRegex)![1];
|
||||
}
|
||||
|
||||
let language =
|
||||
|
@ -180,7 +177,7 @@ export default ({
|
|||
index += 1;
|
||||
}
|
||||
}
|
||||
highlightLines = rangeParser.parse(range);
|
||||
highlightLines = rangeParser(range);
|
||||
code = lines.join('\n');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue