prettier/tests/markdown_table/__snapshots__/jsfmt.spec.js.snap

179 lines
6.3 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`align.md 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
|a|b|c|
|:--|:-:|--:|
|d|e|f|
=====================================output=====================================
| a | b | c |
| :-- | :-: | --: |
| d | e | f |
================================================================================
`;
exports[`cjk.md 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
| abc | def | ghi |
| --- | --- | --- |
| 第一欄 | 第二欄 | 第三欄 |
=====================================output=====================================
| abc | def | ghi |
| ------ | ------ | ------ |
| 第一欄 | 第二欄 | 第三欄 |
================================================================================
`;
exports[`emoji.md 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
| abc | def | ghi |
| --- | --- | --- |
| 👍👍👍 | 👍👍👍 | 👍👍👍 |
=====================================output=====================================
| abc | def | ghi |
| ------ | ------ | ------ |
| 👍👍👍 | 👍👍👍 | 👍👍👍 |
================================================================================
`;
exports[`empty.md 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
Foo | Bar
--- | ---
X |
Y |
=====================================output=====================================
| Foo | Bar |
| --- | --- |
| X |
| Y |
================================================================================
`;
exports[`escape.md 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
| a | b | c |
|:--|:-:|--:|
| \\| | \\| | \\| |
=====================================output=====================================
| a | b | c |
| :-- | :-: | --: |
| \\| | \\| | \\| |
================================================================================
`;
exports[`html.md 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
Default | CLI Override | API Override
--------|--------------|-------------
\`"none"\` | <code>--trailing-comma <none&#124;es5&#124;all></code> | <code>trailingComma: "<none&#124;es5&#124;all>"</code>
=====================================output=====================================
| Default | CLI Override | API Override |
| -------- | ------------------------------------------------------ | ------------------------------------------------------ |
| \`"none"\` | <code>--trailing-comma <none&#124;es5&#124;all></code> | <code>trailingComma: "<none&#124;es5&#124;all>"</code> |
================================================================================
`;
exports[`simple.md 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
| Title A | Title B | Title C |
|---|---|---|
| content A | content B | content C |
=====================================output=====================================
| Title A | Title B | Title C |
| --------- | --------- | --------- |
| content A | content B | content C |
================================================================================
`;
exports[`table.md 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
proseWrap: "always"
| printWidth
=====================================input======================================
- min-table
| Age | Time | Food | Gold | Requirement |
| ------------ | ----- | ---- | ---- | ----------------------- |
| Feudal Age | 02:10 | 500 | 0 | Dark Age building x 2 |
| Castle Age | 02:40 | 800 | 200 |- |
| Imperial Age | 03:30 | 1000 | 800 | Castle Age building x 2 |
- big-table
|学号|姓名|分数|
|-|-|-|
|小明|男|75|
|小红|女|79|
|小陆|男|92|
=====================================output=====================================
- min-table
| Age | Time | Food | Gold | Requirement |
| ------------ | ----- | ---- | ---- | ----------------------- |
| Feudal Age | 02:10 | 500 | 0 | Dark Age building x 2 |
| Castle Age | 02:40 | 800 | 200 | - |
| Imperial Age | 03:30 | 1000 | 800 | Castle Age building x 2 |
- big-table
| 学号 | 姓名 | 分数 |
| ---- | ---- | ---- |
| 小明 | 男 | 75 |
| 小红 | 女 | 79 |
| 小陆 | 男 | 92 |
================================================================================
`;