fix(markdown): do not print linebreaks in heading (#3343)
parent
e04f22975d
commit
fbbfa52517
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
===
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
## LaraCart - Laravel Shopping Cart Package (<a href="http://laracart.lukepolo.com/">http://laracart.lukepolo.com</a>)
|
Loading…
Reference in New Issue