fix(markdown): do not print linebreaks in heading (#3343)

master
Ika 2017-11-29 19:13:38 +08:00 committed by Lucas Azzola
parent e04f22975d
commit fbbfa52517
3 changed files with 10 additions and 1 deletions

View File

@ -40,7 +40,8 @@ const INLINE_NODE_TYPES = [
const INLINE_NODE_WRAPPER_TYPES = INLINE_NODE_TYPES.concat([
"tableCell",
"paragraph"
"paragraph",
"heading"
]);
function genericPrint(path, options, print) {

View File

@ -18,6 +18,13 @@ exports[`long-heading.md 1`] = `
`;
exports[`mixed.md 1`] = `
## LaraCart - Laravel Shopping Cart Package (<a href="http://laracart.lukepolo.com/">http://laracart.lukepolo.com</a>)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## LaraCart - Laravel Shopping Cart Package (<a href="http://laracart.lukepolo.com/">http://laracart.lukepolo.com</a>)
`;
exports[`setext.md 1`] = `
h1
===

View File

@ -0,0 +1 @@
## LaraCart - Laravel Shopping Cart Package (<a href="http://laracart.lukepolo.com/">http://laracart.lukepolo.com</a>)