fix(markdown): do not break inlineCode (#3230)

This commit is contained in:
Ika authored and GitHub committed 2017-11-11 12:50:40 +08:00
1 parent 217992fb3a
commit 49f578fb91
4 files changed
+14 -5

No files matched your search

+2 -1
View File
@@ -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\`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+1
View File
@@ -0,0 +1 @@
`this is a long long long long long long long long long long long long long long long inline code`