fix(markdown): do not break `inlineCode` (#3230)
parent
217992fb3a
commit
49f578fb91
|
@ -22,7 +22,8 @@ const SINGLE_LINE_NODE_TYPES = [
|
|||
"heading",
|
||||
"tableCell",
|
||||
"footnoteDefinition",
|
||||
"link"
|
||||
"link",
|
||||
"inlineCode"
|
||||
];
|
||||
|
||||
const SIBLING_NODE_TYPES = ["listItem", "definition", "footnoteDefinition"];
|
||||
|
|
|
@ -1312,8 +1312,8 @@ from this behavior use \`--with-node-modules\` flag.
|
|||
|
||||
#### \`--write\`
|
||||
|
||||
This rewrites all processed files in place. This is comparable to the \`eslint
|
||||
--fix\` workflow.
|
||||
This rewrites all processed files in place. This is comparable to the
|
||||
\`eslint --fix\` workflow.
|
||||
|
||||
### ESLint
|
||||
|
||||
|
@ -1856,8 +1856,8 @@ for more details see
|
|||
|
||||
### Visual Studio Code
|
||||
|
||||
Can be installed using the extension sidebar. Search for \`Prettier - JavaScript
|
||||
formatter\`.
|
||||
Can be installed using the extension sidebar. Search for
|
||||
\`Prettier - JavaScript formatter\`.
|
||||
|
||||
Can also be installed using \`ext install prettier-vscode\`.
|
||||
|
||||
|
|
|
@ -30,6 +30,13 @@ exports[`escape.md 1`] = `
|
|||
|
||||
`;
|
||||
|
||||
exports[`long.md 1`] = `
|
||||
\`this is a long long long long long long long long long long long long long long long inline code\`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
\`this is a long long long long long long long long long long long long long long long inline code\`
|
||||
|
||||
`;
|
||||
|
||||
exports[`simple.md 1`] = `
|
||||
\`123\`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
`this is a long long long long long long long long long long long long long long long inline code`
|
Loading…
Reference in New Issue