We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d20520 commit 448b998Copy full SHA for 448b998
src/remark-format-code.js
@@ -10,9 +10,15 @@ export default function remarkFormatCodeBlocks() {
10
const formattingWork = codeNodes
11
// skip code blocks with diff meta as they might have
12
// broken syntax due to + and - characters
13
+ // or with `onboardingOptions` as they need to have predictable line numbers
14
// or `@inject` statements as they often lead to unnecessary line breaks
15
.filter(
- node => !(node.meta?.includes('diff') || node.value?.includes('@inject packages'))
16
+ node =>
17
+ !(
18
+ node.meta?.includes('diff') ||
19
+ node.meta?.includes('onboardingOptions') ||
20
+ node.value?.includes('@inject packages')
21
+ )
22
)
23
.map(node => formatCode(node));
24
0 commit comments