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

master
Ika 2017-11-11 12:50:40 +08:00 committed by GitHub
parent 217992fb3a
commit 49f578fb91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View File

@ -22,7 +22,8 @@ const SINGLE_LINE_NODE_TYPES = [
"heading", "heading",
"tableCell", "tableCell",
"footnoteDefinition", "footnoteDefinition",
"link" "link",
"inlineCode"
]; ];
const SIBLING_NODE_TYPES = ["listItem", "definition", "footnoteDefinition"]; const SIBLING_NODE_TYPES = ["listItem", "definition", "footnoteDefinition"];

View File

@ -1312,8 +1312,8 @@ from this behavior use \`--with-node-modules\` flag.
#### \`--write\` #### \`--write\`
This rewrites all processed files in place. This is comparable to the \`eslint This rewrites all processed files in place. This is comparable to the
--fix\` workflow. \`eslint --fix\` workflow.
### ESLint ### ESLint
@ -1856,8 +1856,8 @@ for more details see
### Visual Studio Code ### Visual Studio Code
Can be installed using the extension sidebar. Search for \`Prettier - JavaScript Can be installed using the extension sidebar. Search for
formatter\`. \`Prettier - JavaScript formatter\`.
Can also be installed using \`ext install prettier-vscode\`. Can also be installed using \`ext install prettier-vscode\`.

View File

@ -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`] = ` exports[`simple.md 1`] = `
\`123\` \`123\`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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`