2017-12-05 21:01:00 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`jsx-comment.md 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["markdown"]
|
|
|
|
printWidth: 80
|
|
|
|
trailingComma: "all"
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2018-03-01 15:42:20 +03:00
|
|
|
\`\`\`jsx
|
|
|
|
const Foo = () => {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
{/*
|
|
|
|
This links to a page that does not yet exist.
|
|
|
|
*/}
|
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
\`\`\`
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2018-03-01 15:42:20 +03:00
|
|
|
\`\`\`jsx
|
|
|
|
const Foo = () => {
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
{/*
|
|
|
|
This links to a page that does not yet exist.
|
|
|
|
*/}
|
|
|
|
<hr />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
\`\`\`
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2018-03-01 15:42:20 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`markdown-preview-enhanced.md 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["markdown"]
|
|
|
|
printWidth: 80
|
|
|
|
trailingComma: "all"
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2018-03-15 19:25:39 +03:00
|
|
|
## plain js block
|
|
|
|
|
|
|
|
\`\`\`js
|
|
|
|
console.log( "hello world" );
|
|
|
|
\`\`\`
|
|
|
|
|
|
|
|
## js block with arguments
|
|
|
|
|
|
|
|
\`\`\`js {cmd=node .line-numbers}
|
|
|
|
console.log( "hello world" );
|
|
|
|
\`\`\`
|
2018-07-02 03:22:56 +03:00
|
|
|
|
|
|
|
## js block with arguments and no space
|
|
|
|
|
|
|
|
\`\`\`js{cmd=node .line-numbers}
|
|
|
|
console.log( "hello world" );
|
|
|
|
\`\`\`
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2018-03-15 19:25:39 +03:00
|
|
|
## plain js block
|
|
|
|
|
|
|
|
\`\`\`js
|
|
|
|
console.log("hello world");
|
|
|
|
\`\`\`
|
|
|
|
|
|
|
|
## js block with arguments
|
|
|
|
|
|
|
|
\`\`\`js {cmd=node .line-numbers}
|
|
|
|
console.log("hello world");
|
|
|
|
\`\`\`
|
|
|
|
|
2018-07-02 03:22:56 +03:00
|
|
|
## js block with arguments and no space
|
|
|
|
|
|
|
|
\`\`\`js{cmd=node .line-numbers}
|
|
|
|
console.log("hello world");
|
|
|
|
\`\`\`
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2018-03-15 19:25:39 +03:00
|
|
|
`;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`trailing-comma.md 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["markdown"]
|
|
|
|
printWidth: 80
|
|
|
|
trailingComma: "all"
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-12-05 21:01:00 +03:00
|
|
|
### Some heading
|
|
|
|
|
|
|
|
\`\`\`js
|
|
|
|
someFunctionCall(
|
|
|
|
foo,
|
|
|
|
bar,
|
|
|
|
foobar,
|
|
|
|
sometehingReallyLongAndHairy,
|
|
|
|
somethingElse,
|
|
|
|
breakNow,
|
|
|
|
);
|
|
|
|
\`\`\`
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-12-05 21:01:00 +03:00
|
|
|
### Some heading
|
|
|
|
|
|
|
|
\`\`\`js
|
|
|
|
someFunctionCall(
|
|
|
|
foo,
|
|
|
|
bar,
|
|
|
|
foobar,
|
|
|
|
sometehingReallyLongAndHairy,
|
|
|
|
somethingElse,
|
|
|
|
breakNow,
|
|
|
|
);
|
|
|
|
\`\`\`
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-12-05 21:01:00 +03:00
|
|
|
`;
|