Add tests after remark v8 (#8820)

* Add tests for #3753

* Add tests for #4306

* Add tests for #5921

* Add tests fro #6177

* Fix
This commit is contained in:
Sosuke Suzuki authored and GitHub committed 2020-07-24 19:00:21 +03:00
1 parent 86b8395ed7
commit 744a4e8e0e
7 files changed
+656

No files matched your search

@@ -19,6 +19,29 @@ proseWrap: "always"
================================================================================
`;
exports[`hash-sign.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
# Programming languages
## C#
## JavaScript
=====================================output=====================================
# Programming languages
## C#
## JavaScript
================================================================================
`;
exports[`long-heading.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
+5
View File
@@ -0,0 +1,5 @@
# Programming languages
## C#
## JavaScript
@@ -590,6 +590,325 @@ proseWrap: "always"
================================================================================
`;
exports[`codeblock.md - {"proseWrap":"always","tabWidth":0} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 0
| printWidth
=====================================input======================================
1. ol01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
2. ol02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
=====================================output=====================================
1. ol01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
2. ol02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
================================================================================
`;
exports[`codeblock.md - {"proseWrap":"always","tabWidth":4} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 4
| printWidth
=====================================input======================================
1. ol01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
2. ol02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
=====================================output=====================================
1. ol01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
2. ol02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
================================================================================
`;
exports[`codeblock.md - {"proseWrap":"always","tabWidth":999} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 999
| printWidth
=====================================input======================================
1. ol01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
2. ol02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
=====================================output=====================================
1. ol01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
2. ol02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
================================================================================
`;
exports[`codeblock.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
1. ol01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
2. ol02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
=====================================output=====================================
1. ol01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
2. ol02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul01
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
- ul02
\`\`\`js
const a = 1;
const b = 2;
\`\`\`
================================================================================
`;
exports[`combined-lists.md - {"proseWrap":"always","tabWidth":0} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
@@ -3607,3 +3926,242 @@ proseWrap: "always"
================================================================================
`;
exports[`tab.md - {"proseWrap":"always","tabWidth":0} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 0
| printWidth
=====================================input======================================
* Text
[title](link)
* Text
- foo
- foo
- bar
* Text
# foo
* Text
\`\`\`
foo
\`\`\`
* Text
\`foo\`
=====================================output=====================================
- Text
[title](link)
- Text
- foo
- foo
- bar
- Text
# foo
- Text
\`\`\`
foo
\`\`\`
- Text
\`foo\`
================================================================================
`;
exports[`tab.md - {"proseWrap":"always","tabWidth":4} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 4
| printWidth
=====================================input======================================
* Text
[title](link)
* Text
- foo
- foo
- bar
* Text
# foo
* Text
\`\`\`
foo
\`\`\`
* Text
\`foo\`
=====================================output=====================================
- Text
[title](link)
- Text
- foo
- foo
- bar
- Text
# foo
- Text
\`\`\`
foo
\`\`\`
- Text
\`foo\`
================================================================================
`;
exports[`tab.md - {"proseWrap":"always","tabWidth":999} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
tabWidth: 999
| printWidth
=====================================input======================================
* Text
[title](link)
* Text
- foo
- foo
- bar
* Text
# foo
* Text
\`\`\`
foo
\`\`\`
* Text
\`foo\`
=====================================output=====================================
- Text
[title](link)
- Text
- foo
- foo
- bar
- Text
# foo
- Text
\`\`\`
foo
\`\`\`
- Text
\`foo\`
================================================================================
`;
exports[`tab.md - {"proseWrap":"always"} format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
* Text
[title](link)
* Text
- foo
- foo
- bar
* Text
# foo
* Text
\`\`\`
foo
\`\`\`
* Text
\`foo\`
=====================================output=====================================
- Text
[title](link)
- Text
- foo
- foo
- bar
- Text
# foo
- Text
\`\`\`
foo
\`\`\`
- Text
\`foo\`
================================================================================
`;
+35
View File
@@ -0,0 +1,35 @@
1. ol01
```js
const a = 1;
const b = 2;
```
2. ol02
```js
const a = 1;
const b = 2;
```
- ul01
```js
const a = 1;
const b = 2;
```
- ul02
```js
const a = 1;
const b = 2;
```
+23
View File
@@ -0,0 +1,23 @@
* Text
[title](link)
* Text
- foo
- foo
- bar
* Text
# foo
* Text
```
foo
```
* Text
`foo`
@@ -157,6 +157,10 @@ proseWrap: "always"
|小红|女|79|
|小陆|男|92|
| col1 | col2 | col3 |
|---|--|--|
| long text | \`\` | text |
=====================================output=====================================
- min-table
@@ -174,5 +178,9 @@ proseWrap: "always"
| 小红 | 女 | 79 |
| 小陆 | 男 | 92 |
| col1 | col2 | col3 |
| --------- | ---- | ---- |
| long text | \`\` | text |
================================================================================
`;
+4
View File
@@ -12,3 +12,7 @@
|小明|男|75|
|小红|女|79|
|小陆|男|92|
| col1 | col2 | col3 |
|---|--|--|
| long text | `` | text |