diff --git a/.github/workflows/pull_request_markdown.yml b/.github/workflows/pull_request_markdown.yml index e5f28cc293e1..2b3f59382b74 100644 --- a/.github/workflows/pull_request_markdown.yml +++ b/.github/workflows/pull_request_markdown.yml @@ -23,4 +23,5 @@ jobs: #xtask/coverage #target #crates/biome_markdown_parser/tests + #crates/biome_markdown_formatter/tests #crates/biome_js_formatter/report*.md diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/code.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/code.md new file mode 100644 index 000000000000..59e4acab1694 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/code.md @@ -0,0 +1,14 @@ +> NOTE: To use `unobtrusive`, `unobtrusive/import`, `unobtrusive/react`, and `unobtrusive/flowtype` together, your eslint config would look like this: +>```json +>{ +> "extends": [ +> "unobtrusive", +> "unobtrusive/import", +> "unobtrusive/react", +> "unobtrusive/flowtype" +> ], +> "env": { +> "browser": true +> } +>} +>``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/code.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/code.md.prettier-snap new file mode 100644 index 000000000000..9c0982463e48 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/code.md.prettier-snap @@ -0,0 +1,15 @@ +> NOTE: To use `unobtrusive`, `unobtrusive/import`, `unobtrusive/react`, and `unobtrusive/flowtype` together, your eslint config would look like this: +> +> ```json +> { +> "extends": [ +> "unobtrusive", +> "unobtrusive/import", +> "unobtrusive/react", +> "unobtrusive/flowtype" +> ], +> "env": { +> "browser": true +> } +> } +> ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/ignore-code.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/ignore-code.md new file mode 100644 index 000000000000..b2d8a74d876f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/ignore-code.md @@ -0,0 +1,52 @@ +> ````md +> +> ```js +> ugly ( code ) ; +> ``` +> ```` + +> ```md +> +> - This is a long long +> long long long long +> long long paragraph. +> ``` + +> - test +> ```md +> +> - This is a long long +> long long long long +> long long paragraph. +> ``` + +````md +> ```md +> +> - This is a long long +> long long long long +> long long paragraph. +> ``` +```` + +> ````md +> > ```md +> > +> > - This is a long long +> > long long long long +> > long long paragraph. +> > ``` +> ```` + +> +> +> - This is a long long +> long long long long +> long long paragraph. +> + +> ````js +> // prettier-ignore +> const x = 1, +> b = 2 +> ```` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/ignore-code.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/ignore-code.md.prettier-snap new file mode 100644 index 000000000000..ef1faada6072 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/ignore-code.md.prettier-snap @@ -0,0 +1,50 @@ +> ````md +> +> ```js +> ugly ( code ) ; +> ``` +> ```` + +> ```md +> +> - This is a long long +> long long long long +> long long paragraph. +> ``` + +> - test +> ```md +> +> - This is a long long +> long long long long +> long long paragraph. +> ``` + +````md +> ```md +> +> - This is a long long +> long long long long +> long long paragraph. +> ``` +```` + +> ````md +> > ```md +> > +> > - This is a long long +> > long long long long +> > long long paragraph. +> > ``` +> ```` + +> +> - This is a long long +> long long long long +> long long paragraph. + +> ```js +> // prettier-ignore +> const x = 1, +> b = 2 +> ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/nested.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/nested.md new file mode 100644 index 000000000000..908a8af0d7c0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/nested.md @@ -0,0 +1 @@ +>>> 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/nested.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/nested.md.prettier-snap new file mode 100644 index 000000000000..4b8d33cdb816 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/nested.md.prettier-snap @@ -0,0 +1 @@ +> > > 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/notext-end.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/notext-end.md new file mode 100644 index 000000000000..97435445a35a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/notext-end.md @@ -0,0 +1,19 @@ +> [!NOTE] +> `DOOM` + +> _b_ +>> `A` +>> `B` + +> *a* +>> # foo +>> `a` > `b` + + +> This is a quote with an italic _across multuple lines +> which should just work_. So make sure there is no > if we set +> proseWrap to `never` + +> This is a quote with a link [across multuple lines +> which should just work](). So make sure there is no > if we set +> proseWrap to `never` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/notext-end.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/notext-end.md.prettier-snap new file mode 100644 index 000000000000..865ceb6f7d13 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/notext-end.md.prettier-snap @@ -0,0 +1,21 @@ +> [!NOTE] +> `DOOM` + +> _b_ +> +> > `A` +> > `B` + +> _a_ +> +> > # foo +> > +> > `a` > `b` + +> This is a quote with an italic _across multuple lines +> which should just work_. So make sure there is no > if we set +> proseWrap to `never` + +> This is a quote with a link [across multuple lines +> which should just work](). So make sure there is no > if we set +> proseWrap to `never` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/paragraph.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/paragraph.md new file mode 100644 index 000000000000..044e72e56a5b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/paragraph.md @@ -0,0 +1,2 @@ +> This is a long long long long long long long long long long long long long long long paragraph. +> This is a long long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/paragraph.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/paragraph.md.prettier-snap new file mode 100644 index 000000000000..044e72e56a5b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/paragraph.md.prettier-snap @@ -0,0 +1,2 @@ +> This is a long long long long long long long long long long long long long long long paragraph. +> This is a long long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/simple.md new file mode 100644 index 000000000000..2e5b98e27eef --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/simple.md @@ -0,0 +1 @@ +> 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/simple.md.prettier-snap new file mode 100644 index 000000000000..2e5b98e27eef --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/blockquote/simple.md.prettier-snap @@ -0,0 +1 @@ +> 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/simple.md new file mode 100644 index 000000000000..80c390610981 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/simple.md @@ -0,0 +1,8 @@ +123 +456 + +123\ +456 + +- 123 + 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/simple.md.prettier-snap new file mode 100644 index 000000000000..80c390610981 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/simple.md.prettier-snap @@ -0,0 +1,8 @@ +123 +456 + +123\ +456 + +- 123 + 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/wrap.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/wrap.md new file mode 100644 index 000000000000..cfcc88d8aedb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/wrap.md @@ -0,0 +1,5 @@ +a + very-very-very-very-very-very-very-very-very-very-long-word very-very-very-very-very-very-very-very-very-very-long-word very-very-very-very-very-very-very-very-very-very-long-word + +\ +word very-very-very-very-very-very-very-very-very-very-long-word very-very-very-very-very-very-very-very-very-very-long-word diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/wrap.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/wrap.md.prettier-snap new file mode 100644 index 000000000000..cfcc88d8aedb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/break/wrap.md.prettier-snap @@ -0,0 +1,5 @@ +a + very-very-very-very-very-very-very-very-very-very-long-word very-very-very-very-very-very-very-very-very-very-long-word very-very-very-very-very-very-very-very-very-very-long-word + +\ +word very-very-very-very-very-very-very-very-very-very-long-word very-very-very-very-very-very-very-very-very-very-long-word diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/broken-plugins/missing-comments.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/broken-plugins/missing-comments.md new file mode 100644 index 000000000000..3dd52113d748 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/broken-plugins/missing-comments.md @@ -0,0 +1,3 @@ +``````missing-comments + This should not be replaced. +`````` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/broken-plugins/missing-comments.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/broken-plugins/missing-comments.md.prettier-snap new file mode 100644 index 000000000000..6cb0583c00d2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/broken-plugins/missing-comments.md.prettier-snap @@ -0,0 +1,3 @@ +```missing-comments + This should not be replaced. +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/0-indent-js.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/0-indent-js.md new file mode 100644 index 000000000000..1e8f10dc593f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/0-indent-js.md @@ -0,0 +1,20 @@ +- 1 + - 2 + - 3 + ```js + md` + # this is the root indent + + # this is the root indent + + # this is the root indent + ` + + something` + asd + + asd + + asd + ` + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/0-indent-js.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/0-indent-js.md.prettier-snap new file mode 100644 index 000000000000..efdbddfe476d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/0-indent-js.md.prettier-snap @@ -0,0 +1,21 @@ +- 1 + - 2 + - 3 + + ```js + md` + # this is the root indent + + # this is the root indent + + # this is the root indent + ` + + something` + asd + + asd + + asd + ` + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/additional-space.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/additional-space.md new file mode 100644 index 000000000000..17d1f5d3e9f1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/additional-space.md @@ -0,0 +1,22 @@ +1. Fork the repo and create your branch from `master`. + + Open terminal (e.g. Terminal, iTerm, Git Bash or Git Shell) and type: + ```sh + git clone https://github.com//jest + cd jest + git checkout -b my_branch + ``` + Note: + Replace `` with your GitHub username + +3. Run `yarn install`. + On Windows: + To install [Yarn](https://yarnpkg.com/en/docs/install#windows-tab) on Windows you may need to download either node.js or Chocolatey
+ + ```sh + yarn install + ``` + To check your version of Yarn and ensure it's installed you can type: + ```sh + yarn --version + ``` \ No newline at end of file diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/additional-space.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/additional-space.md.prettier-snap new file mode 100644 index 000000000000..2e503815fac8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/additional-space.md.prettier-snap @@ -0,0 +1,26 @@ +1. Fork the repo and create your branch from `master`. + + Open terminal (e.g. Terminal, iTerm, Git Bash or Git Shell) and type: + + ```sh + git clone https://github.com//jest + cd jest + git checkout -b my_branch + ``` + + Note: + Replace `` with your GitHub username + +2. Run `yarn install`. + On Windows: + To install [Yarn](https://yarnpkg.com/en/docs/install#windows-tab) on Windows you may need to download either node.js or Chocolatey
+ + ```sh + yarn install + ``` + + To check your version of Yarn and ensure it's installed you can type: + + ```sh + yarn --version + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html-invalid.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html-invalid.md new file mode 100644 index 000000000000..422a1a5a8a2b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html-invalid.md @@ -0,0 +1,6 @@ +```angular-html + @for (reason of orderForm.couponCode().disabledReasons(); track reason) { +

{{ reason.message }}

+ } + } +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html-invalid.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html-invalid.md.prettier-snap new file mode 100644 index 000000000000..422a1a5a8a2b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html-invalid.md.prettier-snap @@ -0,0 +1,6 @@ +```angular-html + @for (reason of orderForm.couponCode().disabledReasons(); track reason) { +

{{ reason.message }}

+ } + } +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html.md new file mode 100644 index 000000000000..bbaec0813c90 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html.md @@ -0,0 +1,8 @@ +```angular-html +@if (orderForm.couponCode().disabled()) { +
+ @for (reason of orderForm.couponCode().disabledReasons(); track reason) { +

{{ reason.message }}

+ }
+ } +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html.md.prettier-snap new file mode 100644 index 000000000000..199aa9291903 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-html.md.prettier-snap @@ -0,0 +1,9 @@ +```angular-html +@if (orderForm.couponCode().disabled()) { +
+ @for (reason of orderForm.couponCode().disabledReasons(); track reason) { +

{{ reason.message }}

+ } +
+} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts-invalid.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts-invalid.md new file mode 100644 index 000000000000..514e328d4937 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts-invalid.md @@ -0,0 +1,16 @@ +```angular-ts + Ugly:string +} + +@Component({template: ` +@if (orderForm.couponCode().disabled()) { +
+ @for (reason of orderForm.couponCode().disabledReasons(); track reason) { +

{{ reason.message }}

+ }
+ } + ` +}) +export class Order { +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts-invalid.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts-invalid.md.prettier-snap new file mode 100644 index 000000000000..514e328d4937 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts-invalid.md.prettier-snap @@ -0,0 +1,16 @@ +```angular-ts + Ugly:string +} + +@Component({template: ` +@if (orderForm.couponCode().disabled()) { +
+ @for (reason of orderForm.couponCode().disabledReasons(); track reason) { +

{{ reason.message }}

+ }
+ } + ` +}) +export class Order { +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts.md new file mode 100644 index 000000000000..420ba08c9478 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts.md @@ -0,0 +1,17 @@ +```angular-ts +type A ={ + Ugly:string +} + +@Component({template: ` +@if (orderForm.couponCode().disabled()) { +
+ @for (reason of orderForm.couponCode().disabledReasons(); track reason) { +

{{ reason.message }}

+ }
+ } + ` +}) +export class Order { +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts.md.prettier-snap new file mode 100644 index 000000000000..f2eb6fb15933 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/angular/angular-ts.md.prettier-snap @@ -0,0 +1,21 @@ +```angular-ts +type A = { + Ugly: string; +}; + +@Component({ + template: ` + @if (orderForm.couponCode().disabled()) { +
+ @for ( + reason of orderForm.couponCode().disabledReasons(); + track reason + ) { +

{{ reason.message }}

+ } +
+ } + `, +}) +export class Order {} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/backtick.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/backtick.md new file mode 100644 index 000000000000..2d6123d60b5b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/backtick.md @@ -0,0 +1,7 @@ +`````````` + +```js +console.log("hello world!"); +``` + +`````````` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/backtick.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/backtick.md.prettier-snap new file mode 100644 index 000000000000..42369709b8aa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/backtick.md.prettier-snap @@ -0,0 +1,7 @@ +```` + +```js +console.log("hello world!"); +``` + +```` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/format.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/format.md new file mode 100644 index 000000000000..9aebc7864d0b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/format.md @@ -0,0 +1,7 @@ +```js +const foo = 'bar' + + + + console .log( 213 ) +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/format.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/format.md.prettier-snap new file mode 100644 index 000000000000..9aebc7864d0b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/format.md.prettier-snap @@ -0,0 +1,7 @@ +```js +const foo = 'bar' + + + + console .log( 213 ) +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/indent.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/indent.md new file mode 100644 index 000000000000..7a1819ac4fe4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/indent.md @@ -0,0 +1,23 @@ + Indented Code Block + Indented Code Block + Indented Code Block + Indented Code Block + Indented Code Block + +- ``` + Fenced Code Block + Fenced Code Block + Fenced Code Block + Fenced Code Block + Fenced Code Block + ``` + + + +1. Change to your home directory: + + cd + +2. List the contents: + + ls -l diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/indent.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/indent.md.prettier-snap new file mode 100644 index 000000000000..a2e9e7c69e12 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/indent.md.prettier-snap @@ -0,0 +1,23 @@ + Indented Code Block + Indented Code Block + Indented Code Block + Indented Code Block + Indented Code Block + +- ``` + Fenced Code Block + Fenced Code Block + Fenced Code Block + Fenced Code Block + Fenced Code Block + ``` + + + +1. Change to your home directory: + + cd + +2. List the contents: + + ls -l diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/lang.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/lang.md new file mode 100644 index 000000000000..ea2ed7721db2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/lang.md @@ -0,0 +1,3 @@ +```js +console.log("hello world"); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/lang.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/lang.md.prettier-snap new file mode 100644 index 000000000000..ea2ed7721db2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/lang.md.prettier-snap @@ -0,0 +1,3 @@ +```js +console.log("hello world"); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/leading-trailing-newlines.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/leading-trailing-newlines.md new file mode 100644 index 000000000000..bf7c4ae06fd6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/leading-trailing-newlines.md @@ -0,0 +1,7 @@ +``` + + +123 + + +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/leading-trailing-newlines.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/leading-trailing-newlines.md.prettier-snap new file mode 100644 index 000000000000..bf7c4ae06fd6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/leading-trailing-newlines.md.prettier-snap @@ -0,0 +1,7 @@ +``` + + +123 + + +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-auth-api.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-auth-api.md new file mode 100644 index 000000000000..035c60d71898 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-auth-api.md @@ -0,0 +1,34 @@ + + + +```javascript + + +// sample arguments for registration +const createCredentialDefaultArgs = { + publicKey: { + // Relying Party (a.k.a. - Service): + rp: { + name: "Acme", }, + // User: + user: { + id: new Uint8Array(16), + name: "carina.p.anand@example.com", displayName: "Carina P. Anand", + }, + pubKeyCredParams: [ + { + type: "public-key", + alg: -7, + }, + ], + attestation: "direct", + timeout: 60000, + challenge: new Uint8Array( +[ + // must be a cryptographically random number sent from a server + 0x8c, 0x0a, 0x26, 0xff, 0x22, 0x91, 0xc1, 0xe9, 0xb9, 0x4e, 0x2e, 0x17, 0x1a, 0x98, 0x6a, 0x73, 0x71, 0x9d, 0x43, 0x48, 0xd5, 0xa7, 0x6a, 0x15, 0x7e, 0x38, + 0x94, 0x52, 0x77, 0x97, 0x0f, 0xef, + ]).buffer, + }, +}; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-auth-api.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-auth-api.md.prettier-snap new file mode 100644 index 000000000000..0b89f56e9095 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-auth-api.md.prettier-snap @@ -0,0 +1,31 @@ +```javascript + + +// sample arguments for registration +const createCredentialDefaultArgs = { + publicKey: { + // Relying Party (a.k.a. - Service): + rp: { + name: "Acme", }, + // User: + user: { + id: new Uint8Array(16), + name: "carina.p.anand@example.com", displayName: "Carina P. Anand", + }, + pubKeyCredParams: [ + { + type: "public-key", + alg: -7, + }, + ], + attestation: "direct", + timeout: 60000, + challenge: new Uint8Array( +[ + // must be a cryptographically random number sent from a server + 0x8c, 0x0a, 0x26, 0xff, 0x22, 0x91, 0xc1, 0xe9, 0xb9, 0x4e, 0x2e, 0x17, 0x1a, 0x98, 0x6a, 0x73, 0x71, 0x9d, 0x43, 0x48, 0xd5, 0xa7, 0x6a, 0x15, 0x7e, 0x38, + 0x94, 0x52, 0x77, 0x97, 0x0f, 0xef, + ]).buffer, + }, +}; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-1.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-1.md new file mode 100644 index 000000000000..b8880ddcfb1d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-1.md @@ -0,0 +1,15 @@ + + + +```css + +.box { + background: + linear-gradient( + 105deg, + rgb(255 255 255 / 20%) 39%, + rgb(51 56 57 / 100%) 96% + ) center center / 400px 200px no-repeat, url(big-star.png) center no-repeat, + rebeccapurple; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-1.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-1.md.prettier-snap new file mode 100644 index 000000000000..b78704f87d6f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-1.md.prettier-snap @@ -0,0 +1,12 @@ +```css + +.box { + background: + linear-gradient( + 105deg, + rgb(255 255 255 / 20%) 39%, + rgb(51 56 57 / 100%) 96% + ) center center / 400px 200px no-repeat, url(big-star.png) center no-repeat, + rebeccapurple; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-2.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-2.md new file mode 100644 index 000000000000..10a2f82f5ae0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-2.md @@ -0,0 +1,11 @@ + +```css + + + +background-image: linear-gradient( + to bottom, + rgb(255 255 0 / 50%), + rgb(0 0 255 / 50%) + ), url("catfront.png"); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-2.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-2.md.prettier-snap new file mode 100644 index 000000000000..8e7b1fa221cf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-2.md.prettier-snap @@ -0,0 +1,10 @@ +```css + + + +background-image: linear-gradient( + to bottom, + rgb(255 255 0 / 50%), + rgb(0 0 255 / 50%) + ), url("catfront.png"); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-3.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-3.md new file mode 100644 index 000000000000..3e572bfb3bfe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-3.md @@ -0,0 +1,16 @@ + +```css + +.box { + margin: 10px 0; + color: #fff; + background: linear-gradient(90deg, + rgb(131 58 180 / 100%) 0%, + rgb(253 29 29 / 60%) 60%, rgb(252 176 69 / 100%) 100%), radial-gradient(circle, rgb(255 255 255 / 100%) 0%, rgb(0 0 0 / 100%) 28%); + border: 20px dashed black; + padding: 20px; +width: 400px; + background-origin: padding-box, content-box; + background-repeat: no-repeat; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-3.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-3.md.prettier-snap new file mode 100644 index 000000000000..534d7cf50533 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-3.md.prettier-snap @@ -0,0 +1,15 @@ +```css + +.box { + margin: 10px 0; + color: #fff; + background: linear-gradient(90deg, + rgb(131 58 180 / 100%) 0%, + rgb(253 29 29 / 60%) 60%, rgb(252 176 69 / 100%) 100%), radial-gradient(circle, rgb(255 255 255 / 100%) 0%, rgb(0 0 0 / 100%) 28%); + border: 20px dashed black; + padding: 20px; +width: 400px; + background-origin: padding-box, content-box; + background-repeat: no-repeat; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-4.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-4.md new file mode 100644 index 000000000000..32002f27eaa6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-4.md @@ -0,0 +1,15 @@ + +```css + + +.multi-bg-example { + width: 100%; height: 400px; + background-image: url(firefox.png), url(bubbles.png), linear-gradient(to right, rgb(30 + 75 115 / 100%), rgb(255 255 255 / 0%)); + background-repeat: no-repeat, no-repeat, no-repeat; +background-position: + bottom right, + left, + right; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-4.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-4.md.prettier-snap new file mode 100644 index 000000000000..39f34f134e06 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-4.md.prettier-snap @@ -0,0 +1,14 @@ +```css + + +.multi-bg-example { + width: 100%; height: 400px; + background-image: url(firefox.png), url(bubbles.png), linear-gradient(to right, rgb(30 + 75 115 / 100%), rgb(255 255 255 / 0%)); + background-repeat: no-repeat, no-repeat, no-repeat; +background-position: + bottom right, + left, + right; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-5.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-5.md new file mode 100644 index 000000000000..08ad80996709 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-5.md @@ -0,0 +1,13 @@ + + +```css + +.stacked-linear { + background: linear-gradient( + 217deg, + rgb(255 0 0 / 80%), + rgb(255 0 0 / 0%) 70.71% + ), linear-gradient(127deg, rgb(0 255 0 / 80%), rgb(0 255 0 / 0%) 70.71%), + linear-gradient(336deg, rgb(0 0 255 / 80%), rgb(0 0 255 / 0%) 70.71%); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-5.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-5.md.prettier-snap new file mode 100644 index 000000000000..6fef6f2e5dc5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-5.md.prettier-snap @@ -0,0 +1,11 @@ +```css + +.stacked-linear { + background: linear-gradient( + 217deg, + rgb(255 0 0 / 80%), + rgb(255 0 0 / 0%) 70.71% + ), linear-gradient(127deg, rgb(0 255 0 / 80%), rgb(0 255 0 / 0%) 70.71%), + linear-gradient(336deg, rgb(0 0 255 / 80%), rgb(0 0 255 / 0%) 70.71%); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-6.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-6.md new file mode 100644 index 000000000000..e1d361555360 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-6.md @@ -0,0 +1,25 @@ + +```css + + + +.stacked-radial { + background: + radial-gradient( + circle at 50% 0, + rgb(255 0 0 / 50%), + rgb(255 0 0 / 0%) 70.71% + ), + radial-gradient( + circle at 6.7% 75%, + rgb(0 0 255 / 50%), + rgb(0 0 255 / 0%) 70.71% + ), + radial-gradient( + circle at 93.3% 75%, + rgb(0 255 0 / 50%), + rgb(0 255 0 / 0%) 70.71% + ) beige; + border-radius: 50%; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-6.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-6.md.prettier-snap new file mode 100644 index 000000000000..b655afe5bd52 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-6.md.prettier-snap @@ -0,0 +1,24 @@ +```css + + + +.stacked-radial { + background: + radial-gradient( + circle at 50% 0, + rgb(255 0 0 / 50%), + rgb(255 0 0 / 0%) 70.71% + ), + radial-gradient( + circle at 6.7% 75%, + rgb(0 0 255 / 50%), + rgb(0 0 255 / 0%) 70.71% + ), + radial-gradient( + circle at 93.3% 75%, + rgb(0 255 0 / 50%), + rgb(0 255 0 / 0%) 70.71% + ) beige; + border-radius: 50%; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-7.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-7.md new file mode 100644 index 000000000000..7b094435a335 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-7.md @@ -0,0 +1,29 @@ + + +```css + +.multi-repeating-linear { + background: repeating-linear-gradient( + 190deg, + rgb(255 0 0 / 50%) 40px, + rgb(255 153 0 / 50%) 80px, +rgb(255 255 0 / 50%) 120px, + rgb(0 255 0 / 50%) 160px, + rgb(0 0 255 / 50%) 200px, + rgb(75 0 130 / 50%) 240px, + rgb(238 130 238 / 50%) 280px, + rgb(255 0 0 / 50%) 300px + ), repeating-linear-gradient( + -190deg, + rgb(255 0 0 / 50%) 30px, + rgb(255 153 0 / 50%) 60px, + rgb(255 255 0 / 50%) 90px, + rgb(0 255 0 / 50%) 120px, + rgb(0 0 255 / 50%) 150px, + rgb(75 0 130 / 50%) 180px, + rgb(238 130 238 / 50%) 210px, + rgb(255 0 0 / 50%) 230px + ), repeating-linear-gradient(23deg, red 50px, orange 100px, yellow 150px, green + 200px, blue 250px, indigo 300px, violet 350px, red 370px); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-7.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-7.md.prettier-snap new file mode 100644 index 000000000000..7196b8580e12 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-7.md.prettier-snap @@ -0,0 +1,27 @@ +```css + +.multi-repeating-linear { + background: repeating-linear-gradient( + 190deg, + rgb(255 0 0 / 50%) 40px, + rgb(255 153 0 / 50%) 80px, +rgb(255 255 0 / 50%) 120px, + rgb(0 255 0 / 50%) 160px, + rgb(0 0 255 / 50%) 200px, + rgb(75 0 130 / 50%) 240px, + rgb(238 130 238 / 50%) 280px, + rgb(255 0 0 / 50%) 300px + ), repeating-linear-gradient( + -190deg, + rgb(255 0 0 / 50%) 30px, + rgb(255 153 0 / 50%) 60px, + rgb(255 255 0 / 50%) 90px, + rgb(0 255 0 / 50%) 120px, + rgb(0 0 255 / 50%) 150px, + rgb(75 0 130 / 50%) 180px, + rgb(238 130 238 / 50%) 210px, + rgb(255 0 0 / 50%) 230px + ), repeating-linear-gradient(23deg, red 50px, orange 100px, yellow 150px, green + 200px, blue 250px, indigo 300px, violet 350px, red 370px); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-8.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-8.md new file mode 100644 index 000000000000..ff9885b3337f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-8.md @@ -0,0 +1,67 @@ + + +```css + +.plaid-gradient { + background: repeating-linear-gradient( + 90deg, + transparent, + transparent 50px, + rgb(255 127 0 / 25%) 50px, + rgb(255 127 0 / 25%) 56px, + transparent 56px, + transparent 63px, + rgb(255 127 0 / 25%) 63px, + rgb(255 127 0 / 25%) 69px, +transparent 69px, + transparent 116px, + rgb(255 206 0 / 25%) 116px, + rgb(255 206 0 / 25%) 166px + ), repeating-linear-gradient( + 0deg, + transparent, + transparent 50px, + rgb(255 127 0 / 25%) 50px, + rgb(255 127 0 / 25%) 56px, + transparent 56px, + transparent 63px, + rgb(255 127 0 / 25%) 63px, + rgb(255 127 0 / 25%) 69px, + transparent 69px, + transparent 116px, + rgb(255 206 0 / 25%) 116px, + rgb(255 206 0 / 25%) 166px + ), repeating-linear-gradient( + -45deg, + transparent, + transparent 5px, + rgb(143 77 63 / 25%) 5px, + rgb(143 77 63 / 25%) 10px + ), repeating-linear-gradient(45deg, transparent, transparent 5px, rgb( + 143 77 63 / 25% + ) 5px, rgb(143 77 63 / 25%) 10px); + + background: repeating-linear-gradient( + 90deg, + transparent 0 50px, + rgb(255 127 0 / 25%) 50px 56px, + transparent 56px 63px, + rgb(255 127 0 / 25%) 63px 69px, + transparent 69px 116px, + rgb(255 206 0 / 25%) 116px 166px + ), repeating-linear-gradient( + 0deg, + transparent 0 50px, + rgb(255 127 0 / 25%) 50px 56px, + transparent 56px 63px, + rgb(255 127 0 / 25%) 63px 69px, + transparent 69px 116px, + rgb(255 206 0 / 25%) 116px 166px + ), repeating-linear-gradient( + -45deg, + transparent 0 5px, + rgb(143 77 63 / 25%) 5px 10px + ), repeating-linear-gradient(45deg, transparent 0 5px, rgb(143 77 63 / 25%) 5px + 10px); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-8.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-8.md.prettier-snap new file mode 100644 index 000000000000..62b4310f537c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-8.md.prettier-snap @@ -0,0 +1,65 @@ +```css + +.plaid-gradient { + background: repeating-linear-gradient( + 90deg, + transparent, + transparent 50px, + rgb(255 127 0 / 25%) 50px, + rgb(255 127 0 / 25%) 56px, + transparent 56px, + transparent 63px, + rgb(255 127 0 / 25%) 63px, + rgb(255 127 0 / 25%) 69px, +transparent 69px, + transparent 116px, + rgb(255 206 0 / 25%) 116px, + rgb(255 206 0 / 25%) 166px + ), repeating-linear-gradient( + 0deg, + transparent, + transparent 50px, + rgb(255 127 0 / 25%) 50px, + rgb(255 127 0 / 25%) 56px, + transparent 56px, + transparent 63px, + rgb(255 127 0 / 25%) 63px, + rgb(255 127 0 / 25%) 69px, + transparent 69px, + transparent 116px, + rgb(255 206 0 / 25%) 116px, + rgb(255 206 0 / 25%) 166px + ), repeating-linear-gradient( + -45deg, + transparent, + transparent 5px, + rgb(143 77 63 / 25%) 5px, + rgb(143 77 63 / 25%) 10px + ), repeating-linear-gradient(45deg, transparent, transparent 5px, rgb( + 143 77 63 / 25% + ) 5px, rgb(143 77 63 / 25%) 10px); + + background: repeating-linear-gradient( + 90deg, + transparent 0 50px, + rgb(255 127 0 / 25%) 50px 56px, + transparent 56px 63px, + rgb(255 127 0 / 25%) 63px 69px, + transparent 69px 116px, + rgb(255 206 0 / 25%) 116px 166px + ), repeating-linear-gradient( + 0deg, + transparent 0 50px, + rgb(255 127 0 / 25%) 50px 56px, + transparent 56px 63px, + rgb(255 127 0 / 25%) 63px 69px, + transparent 69px 116px, + rgb(255 206 0 / 25%) 116px 166px + ), repeating-linear-gradient( + -45deg, + transparent 0 5px, + rgb(143 77 63 / 25%) 5px 10px + ), repeating-linear-gradient(45deg, transparent 0 5px, rgb(143 77 63 / 25%) 5px + 10px); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-9.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-9.md new file mode 100644 index 000000000000..77096314fd3d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-9.md @@ -0,0 +1,14 @@ + +```css + + +div { + background: conic-gradient( + #fff 0.25turn, + #000 0.25turn 0.5turn, + #fff 0.5turn 0.75turn, + #000 0.75turn + ) top left / 25% 25% repeat; + border: 1px solid; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-9.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-9.md.prettier-snap new file mode 100644 index 000000000000..8f760ef9ae26 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-background-9.md.prettier-snap @@ -0,0 +1,13 @@ +```css + + +div { + background: conic-gradient( + #fff 0.25turn, + #000 0.25turn 0.5turn, + #fff 0.5turn 0.75turn, + #000 0.75turn + ) top left / 25% 25% repeat; + border: 1px solid; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-1.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-1.md new file mode 100644 index 000000000000..91b686831dcf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-1.md @@ -0,0 +1,13 @@ + +```css + +img { + filter: drop-shadow(2px 2px 0 hsl(300deg 100% 50%)) drop-shadow( + -2px -2px 0 hsl(210deg 100% 50%) ) drop-shadow(2px 2px 0 hsl(120deg 100% 50%)) drop-shadow( + -2px -2px 0 hsl(30deg 100% 50%) + ); +} +img + img { +filter: none; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-1.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-1.md.prettier-snap new file mode 100644 index 000000000000..b3b40712763c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-1.md.prettier-snap @@ -0,0 +1,12 @@ +```css + +img { + filter: drop-shadow(2px 2px 0 hsl(300deg 100% 50%)) drop-shadow( + -2px -2px 0 hsl(210deg 100% 50%) ) drop-shadow(2px 2px 0 hsl(120deg 100% 50%)) drop-shadow( + -2px -2px 0 hsl(30deg 100% 50%) + ); +} +img + img { +filter: none; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-2.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-2.md new file mode 100644 index 000000000000..8e36072e8d0f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-2.md @@ -0,0 +1,11 @@ + +```css + + + +#MDN-logo { +border: 1px solid blue; + filter: drop-shadow(5px 5px 0 red) hue-rotate(180deg) drop-shadow(5px 5px 0 + red); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-2.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-2.md.prettier-snap new file mode 100644 index 000000000000..f6169e08ee90 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-filter-2.md.prettier-snap @@ -0,0 +1,10 @@ +```css + + + +#MDN-logo { +border: 1px solid blue; + filter: drop-shadow(5px 5px 0 red) hue-rotate(180deg) drop-shadow(5px 5px 0 + red); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-1.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-1.md new file mode 100644 index 000000000000..967eb979fb28 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-1.md @@ -0,0 +1,16 @@ + + + +```css + +@font-face { + font-family: "HeydingsControlsRegular"; + src: url("fonts/heydings_controls-webfont.eot"); + src: + url("fonts/heydings_controls-webfont.eot?#iefix") format("embedded-opentype"), +url("fonts/heydings_controls-webfont.woff") format("woff"), + url("fonts/heydings_controls-webfont.ttf") format("truetype"); + font-weight: normal; +font-style: normal; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-1.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-1.md.prettier-snap new file mode 100644 index 000000000000..e0d0be3de386 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-1.md.prettier-snap @@ -0,0 +1,13 @@ +```css + +@font-face { + font-family: "HeydingsControlsRegular"; + src: url("fonts/heydings_controls-webfont.eot"); + src: + url("fonts/heydings_controls-webfont.eot?#iefix") format("embedded-opentype"), +url("fonts/heydings_controls-webfont.woff") format("woff"), + url("fonts/heydings_controls-webfont.ttf") format("truetype"); + font-weight: normal; +font-style: normal; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-2.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-2.md new file mode 100644 index 000000000000..7dfa9a6cf0a7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-2.md @@ -0,0 +1,14 @@ + + +```css + + + + + +@font-face { + font-family: "Bungee Spice"; + src: + url("https://fonts.googleapis.com/css2?family=Bungee+Spice") tech(color-COLRv1), url("Bungee-fallback.otf") format("opentype"); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-2.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-2.md.prettier-snap new file mode 100644 index 000000000000..7516c387aadb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-font-face-2.md.prettier-snap @@ -0,0 +1,12 @@ +```css + + + + + +@font-face { + font-family: "Bungee Spice"; + src: + url("https://fonts.googleapis.com/css2?family=Bungee+Spice") tech(color-COLRv1), url("Bungee-fallback.otf") format("opentype"); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-grid-auto-columns.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-grid-auto-columns.md new file mode 100644 index 000000000000..38b0ce96134c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-grid-auto-columns.md @@ -0,0 +1,11 @@ + +```css + +/* multiple track-size values */ +grid-auto-columns: min-content max-content auto; +grid-auto-columns: 100px 150px 390px; +grid-auto-columns: 10% 33.3%; +grid-auto-columns: 0.5fr 3fr 1fr; +grid-auto-columns: minmax(100px, auto) minmax(max-content, 2fr) minmax(20%, 80vmax); +grid-auto-columns: 100px minmax(100px, auto) 10% 0.5fr fit-content(400px); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-grid-auto-columns.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-grid-auto-columns.md.prettier-snap new file mode 100644 index 000000000000..3d99a9e70319 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-grid-auto-columns.md.prettier-snap @@ -0,0 +1,10 @@ +```css + +/* multiple track-size values */ +grid-auto-columns: min-content max-content auto; +grid-auto-columns: 100px 150px 390px; +grid-auto-columns: 10% 33.3%; +grid-auto-columns: 0.5fr 3fr 1fr; +grid-auto-columns: minmax(100px, auto) minmax(max-content, 2fr) minmax(20%, 80vmax); +grid-auto-columns: 100px minmax(100px, auto) 10% 0.5fr fit-content(400px); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-import.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-import.md new file mode 100644 index 000000000000..68d8369250b4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-import.md @@ -0,0 +1,10 @@ + + +```css + + +@import url("gridy.css") supports( display: grid) screen and (max-width: 400px); +@import url("flexy.css") supports(not (display: grid ) and (display: flex)) screen and (max-width: 400px); +@import url( +"whatever.css") supports((selector(h2 > p)) and (font-tech(color-COLRv1))); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-import.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-import.md.prettier-snap new file mode 100644 index 000000000000..91ae2196c31f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-import.md.prettier-snap @@ -0,0 +1,8 @@ +```css + + +@import url("gridy.css") supports( display: grid) screen and (max-width: 400px); +@import url("flexy.css") supports(not (display: grid ) and (display: flex)) screen and (max-width: 400px); +@import url( +"whatever.css") supports((selector(h2 > p)) and (font-tech(color-COLRv1))); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-mask-image.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-mask-image.md new file mode 100644 index 000000000000..ef98dbb60e5a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-mask-image.md @@ -0,0 +1,6 @@ + +```css + +/* Multiple values */ +mask-image: image(url(mask.png), skyblue), linear-gradient(rgb(0 0 0 / 100%), transparent); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-mask-image.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-mask-image.md.prettier-snap new file mode 100644 index 000000000000..0c497621fa10 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-mask-image.md.prettier-snap @@ -0,0 +1,5 @@ +```css + +/* Multiple values */ +mask-image: image(url(mask.png), skyblue), linear-gradient(rgb(0 0 0 / 100%), transparent); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-1.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-1.md new file mode 100644 index 000000000000..6473054a9d64 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-1.md @@ -0,0 +1,11 @@ + + +```css + +body { +padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px) env( + safe-area-inset-bottom, + 20px + ) env(safe-area-inset-left, 20px); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-1.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-1.md.prettier-snap new file mode 100644 index 000000000000..63451f2cbbc0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-1.md.prettier-snap @@ -0,0 +1,9 @@ +```css + +body { +padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px) env( + safe-area-inset-bottom, + 20px + ) env(safe-area-inset-left, 20px); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-2.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-2.md new file mode 100644 index 000000000000..2931a329e0d4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-2.md @@ -0,0 +1,13 @@ + + +```css + +p { + width: 300px; + border: 2px solid red; + padding: env(safe-area-inset-top, 50px) env(safe-area-inset-right, 50px) env( + safe-area-inset-bottom, + 50px + ) env(SAFE-AREA-INSET-LEFT, 50px); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-2.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-2.md.prettier-snap new file mode 100644 index 000000000000..171dfad6b03f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-padding-2.md.prettier-snap @@ -0,0 +1,11 @@ +```css + +p { + width: 300px; + border: 2px solid red; + padding: env(safe-area-inset-top, 50px) env(safe-area-inset-right, 50px) env( + safe-area-inset-bottom, + 50px + ) env(SAFE-AREA-INSET-LEFT, 50px); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-transform.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-transform.md new file mode 100644 index 000000000000..ad1f7b054773 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-transform.md @@ -0,0 +1,24 @@ + +```css + +#example-element:focus { + transform: rotate3d(1, 1, 1, 30deg) matrix3d( + 1, + 0, + 0, + 0, + 0, + 1, + 6, + 0, + 0, + 0, + 1, + 0, + 50, + 100, + 0, + 1.1 + ); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-transform.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-transform.md.prettier-snap new file mode 100644 index 000000000000..5c443c3646fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-transform.md.prettier-snap @@ -0,0 +1,23 @@ +```css + +#example-element:focus { + transform: rotate3d(1, 1, 1, 30deg) matrix3d( + 1, + 0, + 0, + 0, + 0, + 1, + 6, + 0, + 0, + 0, + 1, + 0, + 50, + 100, + 0, + 1.1 + ); +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-unicode-range.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-unicode-range.md new file mode 100644 index 000000000000..b2d5d6b82e83 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-unicode-range.md @@ -0,0 +1,24 @@ + + +```css + + + +@media (prefers-reduced-data: no-preference) { + @font-face { + font-family: Montserrat; + font-style: normal; + font-weight: 400; + font-display: swap; + /* latin */ + src: + local("Montserrat Regular"), + local("Montserrat-Regular"), + url("fonts/montserrat-regular.woff2") format("woff2"); + unicode-range: U+0000-00FF, U+0131, +U+0152-0153, U+02BB-02BC, U+02C6, + U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, + U+2212, U+2215, U+FEFF, U+FFFD; + } +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-unicode-range.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-unicode-range.md.prettier-snap new file mode 100644 index 000000000000..9d900b3a54dd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/mdn-unicode-range.md.prettier-snap @@ -0,0 +1,22 @@ +```css + + + +@media (prefers-reduced-data: no-preference) { + @font-face { + font-family: Montserrat; + font-style: normal; + font-weight: 400; + font-display: swap; + /* latin */ + src: + local("Montserrat Regular"), + local("Montserrat-Regular"), + url("fonts/montserrat-regular.woff2") format("woff2"); + unicode-range: U+0000-00FF, U+0131, +U+0152-0153, U+02BB-02BC, U+02C6, + U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, + U+2212, U+2215, U+FEFF, U+FFFD; + } +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/simple.md new file mode 100644 index 000000000000..7df72c76ebdf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/simple.md @@ -0,0 +1,3 @@ +``` +hello world +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/simple.md.prettier-snap new file mode 100644 index 000000000000..7df72c76ebdf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/simple.md.prettier-snap @@ -0,0 +1,3 @@ +``` +hello world +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/ts-trailing-comma.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/ts-trailing-comma.md new file mode 100644 index 000000000000..26d19559799a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/ts-trailing-comma.md @@ -0,0 +1,7 @@ +```ts +const test = (value: T) => {}; +``` + +```typescript +const test = (value: T) => {}; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/ts-trailing-comma.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/ts-trailing-comma.md.prettier-snap new file mode 100644 index 000000000000..26d19559799a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/ts-trailing-comma.md.prettier-snap @@ -0,0 +1,7 @@ +```ts +const test = (value: T) => {}; +``` + +```typescript +const test = (value: T) => {}; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/tsx-trailing-comma.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/tsx-trailing-comma.md new file mode 100644 index 000000000000..b6772ad81461 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/tsx-trailing-comma.md @@ -0,0 +1,3 @@ +```tsx +const test = (value: T) => {}; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/tsx-trailing-comma.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/tsx-trailing-comma.md.prettier-snap new file mode 100644 index 000000000000..b6772ad81461 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/code/tsx-trailing-comma.md.prettier-snap @@ -0,0 +1,3 @@ +```tsx +const test = (value: T) => {}; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/cursor/17227.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/cursor/17227.md new file mode 100644 index 000000000000..0318005cb133 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/cursor/17227.md @@ -0,0 +1,20 @@ +#<|> Angular note + +```typescript + import {Component} from '@angular/core'; + + @Component({ + selector: 'app-root', + standalone: true, + imports: [], + template: ` +

+ + {{ title }}

+ `, + styleUrls: ['./app.component.css'], + }) + export class AppComponent { + title = 'default'; + } +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/cursor/17227.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/cursor/17227.md.prettier-snap new file mode 100644 index 000000000000..98adda50556d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/cursor/17227.md.prettier-snap @@ -0,0 +1,20 @@ +#<|> Angular note + +```typescript +import { Component } from "@angular/core"; + +@Component({ + selector: "app-root", + standalone: true, + imports: [], + template: ` +

+ {{ title }} +

+ `, + styleUrls: ["./app.component.css"], +}) +export class AppComponent { + title = "default"; +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/simple.md new file mode 100644 index 000000000000..2457785434ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/simple.md @@ -0,0 +1 @@ +[alpha]: http://example.com diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/simple.md.prettier-snap new file mode 100644 index 000000000000..2457785434ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/simple.md.prettier-snap @@ -0,0 +1 @@ +[alpha]: http://example.com diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/space.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/space.md new file mode 100644 index 000000000000..f8e28b6868bb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/space.md @@ -0,0 +1 @@ +[alpha]: "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/space.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/space.md.prettier-snap new file mode 100644 index 000000000000..f8e28b6868bb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/space.md.prettier-snap @@ -0,0 +1 @@ +[alpha]: "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/title.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/title.md new file mode 100644 index 000000000000..5702b775eb2d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/title.md @@ -0,0 +1 @@ +[alpha]: http://example.com "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/title.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/title.md.prettier-snap new file mode 100644 index 000000000000..5702b775eb2d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/definition/title.md.prettier-snap @@ -0,0 +1 @@ +[alpha]: http://example.com "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/delete/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/delete/simple.md new file mode 100644 index 000000000000..f36ebac117c2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/delete/simple.md @@ -0,0 +1 @@ +~~123~~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/delete/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/delete/simple.md.prettier-snap new file mode 100644 index 000000000000..f36ebac117c2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/delete/simple.md.prettier-snap @@ -0,0 +1 @@ +~~123~~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/asterisk.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/asterisk.md new file mode 100644 index 000000000000..ad4f1b7f542e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/asterisk.md @@ -0,0 +1 @@ +*123* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/asterisk.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/asterisk.md.prettier-snap new file mode 100644 index 000000000000..39b969c4176d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/asterisk.md.prettier-snap @@ -0,0 +1 @@ +_123_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/complex.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/complex.md new file mode 100644 index 000000000000..0ff470e367dc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/complex.md @@ -0,0 +1,3 @@ +**Do you want to request a *feature* or report a *bug*?** + +*bug*? diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/complex.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/complex.md.prettier-snap new file mode 100644 index 000000000000..51bbcba6a50a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/complex.md.prettier-snap @@ -0,0 +1,3 @@ +**Do you want to request a _feature_ or report a _bug_?** + +_bug_? diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/special.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/special.md new file mode 100644 index 000000000000..86f8f8843e69 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/special.md @@ -0,0 +1,35 @@ +0*1*2 + +!*1*2 + +0*1*! + +!*1*! + +0*1*2 + +!*1*2 + +0*1*! + +!*1*! + +0_1_2 + +!_1_2 + +0_1_! + +!_1_! + +0_1_2 + +!_1_2 + +0_1_! + +!_1_! + +1***2***3 + +1 ***2*** 3 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/special.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/special.md.prettier-snap new file mode 100644 index 000000000000..f51a9ebe67f4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/special.md.prettier-snap @@ -0,0 +1,35 @@ +0*1*2 + +!*1*2 + +0*1*! + +!_1_! + +0*1*2 + +!*1*2 + +0*1*! + +!_1_! + +0_1_2 + +!\_1_2 + +0*1*! + +!_1_! + +0_1_2 + +!\_1_2 + +0*1*! + +!_1_! + +1***2***3 + +1 **_2_** 3 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/underscore.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/underscore.md new file mode 100644 index 000000000000..39b969c4176d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/underscore.md @@ -0,0 +1 @@ +_123_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/underscore.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/underscore.md.prettier-snap new file mode 100644 index 000000000000..39b969c4176d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/emphasis/underscore.md.prettier-snap @@ -0,0 +1 @@ +_123_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/footnote.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/footnote.md new file mode 100644 index 000000000000..324549a6ef79 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/footnote.md @@ -0,0 +1 @@ +^[inline] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/footnote.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/footnote.md.prettier-snap new file mode 100644 index 000000000000..324549a6ef79 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/footnote.md.prettier-snap @@ -0,0 +1 @@ +^[inline] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/simple.md new file mode 100644 index 000000000000..40580050d4b1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/simple.md @@ -0,0 +1 @@ +[^alpha bravo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/simple.md.prettier-snap new file mode 100644 index 000000000000..40580050d4b1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnote/simple.md.prettier-snap @@ -0,0 +1 @@ +[^alpha bravo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/long.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/long.md new file mode 100644 index 000000000000..2fa06e182335 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/long.md @@ -0,0 +1,3 @@ +[^hello]: this is a long long long long long long long long long long long long long paragraph. +[^world]: this is a long long long long long long long long long long long long long paragraph. + this is a long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/long.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/long.md.prettier-snap new file mode 100644 index 000000000000..be7804e756d5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/long.md.prettier-snap @@ -0,0 +1,5 @@ +[^hello]: this is a long long long long long long long long long long long long long paragraph. + +[^world]: + this is a long long long long long long long long long long long long long paragraph. + this is a long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/multiline.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/multiline.md new file mode 100644 index 000000000000..3c3fd3dc7954 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/multiline.md @@ -0,0 +1,23 @@ +[^fn1]: + + > ```rs + > fn main() { + > println!("this is some Rust!"); + > } + > ``` + +[^fn2]: Here is a footnote which includes code. + + ```rs + fn main() { + println!("this is some Rust!"); + } + ``` + +[^fn2]: Here is a footnote which includes code. Here is a footnote which includes code. Here is a footnote which includes code. + + ```rs + fn main() { + println!("this is some Rust!"); + } + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/multiline.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/multiline.md.prettier-snap new file mode 100644 index 000000000000..d3d171433c61 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/multiline.md.prettier-snap @@ -0,0 +1,23 @@ +[^fn1]: + > ```rs + > fn main() { + > println!("this is some Rust!"); + > } + > ``` + +[^fn2]: Here is a footnote which includes code. + + ```rs + fn main() { + println!("this is some Rust!"); + } + ``` + +[^fn2]: + Here is a footnote which includes code. Here is a footnote which includes code. Here is a footnote which includes code. + + ```rs + fn main() { + println!("this is some Rust!"); + } + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/sibling.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/sibling.md new file mode 100644 index 000000000000..d6d38ad718ae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/sibling.md @@ -0,0 +1,23 @@ +[^a]: a +[^a]: a +[^a]: a +[^a]: > 123 +[^a]: a +[^a]: > 123 +[^a]: a +[^a]: a +[^a]: a + +--- + +[^a]: a +[^a]: a +[^a]: a +[^a]: > 123\ + > 456 +[^a]: a +[^a]: > 123\ + > 456 +[^a]: a +[^a]: a +[^a]: a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/sibling.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/sibling.md.prettier-snap new file mode 100644 index 000000000000..681f8d270835 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/sibling.md.prettier-snap @@ -0,0 +1,41 @@ +[^a]: a + +[^a]: a + +[^a]: a + +[^a]: > 123 + +[^a]: a + +[^a]: > 123 + +[^a]: a + +[^a]: a + +[^a]: a + +--- + +[^a]: a + +[^a]: a + +[^a]: a + +[^a]: + > 123\ + > 456 + +[^a]: a + +[^a]: + > 123\ + > 456 + +[^a]: a + +[^a]: a + +[^a]: a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/simple.md new file mode 100644 index 000000000000..02b558c4ef25 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/simple.md @@ -0,0 +1 @@ +[^hello]: world diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/simple.md.prettier-snap new file mode 100644 index 000000000000..02b558c4ef25 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteDefinition/simple.md.prettier-snap @@ -0,0 +1 @@ +[^hello]: world diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteReference/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteReference/simple.md new file mode 100644 index 000000000000..a6a3a2942d4f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteReference/simple.md @@ -0,0 +1 @@ +[^hello] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteReference/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteReference/simple.md.prettier-snap new file mode 100644 index 000000000000..a6a3a2942d4f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/footnoteReference/simple.md.prettier-snap @@ -0,0 +1 @@ +[^hello] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/custom-parser.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/custom-parser.md new file mode 100644 index 000000000000..24416573d3bb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/custom-parser.md @@ -0,0 +1,7 @@ +---mycustomparser +- hello: world +- 123 +--- + +__123__ +**456** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/custom-parser.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/custom-parser.md.prettier-snap new file mode 100644 index 000000000000..2db2c6e65f8e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/custom-parser.md.prettier-snap @@ -0,0 +1,7 @@ +---mycustomparser +- hello: world +- 123 +--- + +**123** +**456** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty-2.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty-2.md new file mode 100644 index 000000000000..56e619df76a8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty-2.md @@ -0,0 +1,10 @@ +--- +--- + +# Title 1 + +Hello, world + +--- + +text diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty-2.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty-2.md.prettier-snap new file mode 100644 index 000000000000..56e619df76a8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty-2.md.prettier-snap @@ -0,0 +1,10 @@ +--- +--- + +# Title 1 + +Hello, world + +--- + +text diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty.md new file mode 100644 index 000000000000..cb9315eb3b9b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty.md @@ -0,0 +1,5 @@ +--- +--- + +__123__ +**456** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty.md.prettier-snap new file mode 100644 index 000000000000..63514a8e2a6f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/front-matter/empty.md.prettier-snap @@ -0,0 +1,5 @@ +--- +--- + +**123** +**456** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/atx.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/atx.md new file mode 100644 index 000000000000..57742ffbf73a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/atx.md @@ -0,0 +1,3 @@ +# h1 + +## h2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/atx.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/atx.md.prettier-snap new file mode 100644 index 000000000000..57742ffbf73a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/atx.md.prettier-snap @@ -0,0 +1,3 @@ +# h1 + +## h2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/hash-sign.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/hash-sign.md new file mode 100644 index 000000000000..0cac4fedfdc8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/hash-sign.md @@ -0,0 +1,5 @@ +# Programming languages + +## C# + +## JavaScript diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/hash-sign.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/hash-sign.md.prettier-snap new file mode 100644 index 000000000000..0cac4fedfdc8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/hash-sign.md.prettier-snap @@ -0,0 +1,5 @@ +# Programming languages + +## C# + +## JavaScript diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/long-heading.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/long-heading.md new file mode 100644 index 000000000000..dbab94f05f77 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/long-heading.md @@ -0,0 +1 @@ +# this is a long long long long long long long long long long long long long long heading. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/long-heading.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/long-heading.md.prettier-snap new file mode 100644 index 000000000000..dbab94f05f77 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/long-heading.md.prettier-snap @@ -0,0 +1 @@ +# this is a long long long long long long long long long long long long long long heading. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/mixed.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/mixed.md new file mode 100644 index 000000000000..1e5bb8766ef0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/mixed.md @@ -0,0 +1 @@ +## LaraCart - Laravel Shopping Cart Package (http://laracart.lukepolo.com) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/mixed.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/mixed.md.prettier-snap new file mode 100644 index 000000000000..1e5bb8766ef0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/mixed.md.prettier-snap @@ -0,0 +1 @@ +## LaraCart - Laravel Shopping Cart Package (http://laracart.lukepolo.com) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/setext.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/setext.md new file mode 100644 index 000000000000..0ef1e6f58f1b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/setext.md @@ -0,0 +1,5 @@ +h1 +=== + +h2 +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/setext.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/setext.md.prettier-snap new file mode 100644 index 000000000000..57742ffbf73a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/setext.md.prettier-snap @@ -0,0 +1,3 @@ +# h1 + +## h2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/unbreakable.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/unbreakable.md new file mode 100644 index 000000000000..d76e8fbb4129 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/unbreakable.md @@ -0,0 +1 @@ +### `reporters` [array] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/unbreakable.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/unbreakable.md.prettier-snap new file mode 100644 index 000000000000..d76e8fbb4129 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/heading/unbreakable.md.prettier-snap @@ -0,0 +1 @@ +### `reporters` [array] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/beginning-tag-after-a-list-item.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/beginning-tag-after-a-list-item.md new file mode 100644 index 000000000000..a530428d5f34 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/beginning-tag-after-a-list-item.md @@ -0,0 +1,18 @@ +- A list item. +
Summary +

+ +- A list item. + +

+
+ +- A list item. +
+ +

quoted sentence1
+quoted sentence2

+
+ +- indented html is formatted as it is +
asdf
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/beginning-tag-after-a-list-item.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/beginning-tag-after-a-list-item.md.prettier-snap new file mode 100644 index 000000000000..a530428d5f34 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/beginning-tag-after-a-list-item.md.prettier-snap @@ -0,0 +1,18 @@ +- A list item. +
Summary +

+ +- A list item. + +

+
+ +- A list item. +
+ +

quoted sentence1
+quoted sentence2

+
+ +- indented html is formatted as it is +
asdf
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/blank-line-between-htmls.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/blank-line-between-htmls.md new file mode 100644 index 000000000000..5b7acd3ea55e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/blank-line-between-htmls.md @@ -0,0 +1,3 @@ + +

labelify

+ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/blank-line-between-htmls.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/blank-line-between-htmls.md.prettier-snap new file mode 100644 index 000000000000..5b7acd3ea55e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/blank-line-between-htmls.md.prettier-snap @@ -0,0 +1,3 @@ + +

labelify

+ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline-with-trailing-space.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline-with-trailing-space.md new file mode 100644 index 000000000000..4f54cfead7a1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline-with-trailing-space.md @@ -0,0 +1,22 @@ +1. Some test text, the goal is to have the html table below nested within this number. When formating on save Prettier will continue to add an indent each time pushing the table further and further out of sync. + + + + + + + + + + + + + + + + + + + + +
TestTable
willbe
pushedWhen
Format onSave
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline-with-trailing-space.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline-with-trailing-space.md.prettier-snap new file mode 100644 index 000000000000..77243241c03d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline-with-trailing-space.md.prettier-snap @@ -0,0 +1,22 @@ +1. Some test text, the goal is to have the html table below nested within this number. When formating on save Prettier will continue to add an indent each time pushing the table further and further out of sync. + + + + + + + + + + + + + + + + + + + + +
TestTable
willbe
pushedWhen
Format onSave
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline.md new file mode 100644 index 000000000000..16716e4d76ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline.md @@ -0,0 +1,22 @@ +1. Some test text, the goal is to have the html table below nested within this number. When formating on save Prettier will continue to add an indent each time pushing the table further and further out of sync. + + + + + + + + + + + + + + + + + + + + +
TestTable
willbe
pushedWhen
Format onSave
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline.md.prettier-snap new file mode 100644 index 000000000000..38c9fcebbf13 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/multiline.md.prettier-snap @@ -0,0 +1,22 @@ +1. Some test text, the goal is to have the html table below nested within this number. When formating on save Prettier will continue to add an indent each time pushing the table further and further out of sync. + + + + + + + + + + + + + + + + + + + + +
TestTable
willbe
pushedWhen
Format onSave
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/simple.md new file mode 100644 index 000000000000..118e36be57e3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/simple.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/simple.md.prettier-snap new file mode 100644 index 000000000000..118e36be57e3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/html/simple.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/indented.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/indented.md new file mode 100644 index 000000000000..eda5556997c7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/indented.md @@ -0,0 +1,7 @@ +- 123 +- 456 +- 789 + + - This is a long long + long long long long + long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/indented.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/indented.md.prettier-snap new file mode 100644 index 000000000000..eda5556997c7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/indented.md.prettier-snap @@ -0,0 +1,7 @@ +- 123 +- 456 +- 789 + + - This is a long long + long long long long + long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/simple.md new file mode 100644 index 000000000000..3efd2871ed0d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/simple.md @@ -0,0 +1,2 @@ + +This is a long long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/simple.md.prettier-snap new file mode 100644 index 000000000000..3efd2871ed0d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/simple.md.prettier-snap @@ -0,0 +1,2 @@ + +This is a long long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/top-level-range.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/top-level-range.md new file mode 100644 index 000000000000..9773a4db69ed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/top-level-range.md @@ -0,0 +1,21 @@ + + + +| some | table | +| - | - | +| 1 | a | +| 2 | b | + + + + +> +> +> +> | some | table | +> | - | - | +> | 1 | a | +> | 2 | b | +> +> +> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/top-level-range.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/top-level-range.md.prettier-snap new file mode 100644 index 000000000000..a153fc6059a7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/ignore/top-level-range.md.prettier-snap @@ -0,0 +1,21 @@ + + + +| some | table | +| - | - | +| 1 | a | +| 2 | b | + + + + +> +> +> +> | some | table | +> | ---- | ----- | +> | 1 | a | +> | 2 | b | +> +> +> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/simple.md new file mode 100644 index 000000000000..12f5be72ad6e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/simple.md @@ -0,0 +1 @@ +![hello](http://example.com/image.png) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/simple.md.prettier-snap new file mode 100644 index 000000000000..12f5be72ad6e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/simple.md.prettier-snap @@ -0,0 +1 @@ +![hello](http://example.com/image.png) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/title.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/title.md new file mode 100644 index 000000000000..6ff9436d091c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/title.md @@ -0,0 +1 @@ +![hello](http://example.com/image.png "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/title.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/title.md.prettier-snap new file mode 100644 index 000000000000..6ff9436d091c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/image/title.md.prettier-snap @@ -0,0 +1 @@ +![hello](http://example.com/image.png "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/collapsed.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/collapsed.md new file mode 100644 index 000000000000..2b0afbb2463a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/collapsed.md @@ -0,0 +1 @@ +![hello][] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/collapsed.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/collapsed.md.prettier-snap new file mode 100644 index 000000000000..2b0afbb2463a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/collapsed.md.prettier-snap @@ -0,0 +1 @@ +![hello][] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full-no-alt.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full-no-alt.md new file mode 100644 index 000000000000..140233b65884 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full-no-alt.md @@ -0,0 +1 @@ +![][world] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full-no-alt.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full-no-alt.md.prettier-snap new file mode 100644 index 000000000000..140233b65884 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full-no-alt.md.prettier-snap @@ -0,0 +1 @@ +![][world] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full.md new file mode 100644 index 000000000000..6c54721a9b13 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full.md @@ -0,0 +1 @@ +![hello][world] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full.md.prettier-snap new file mode 100644 index 000000000000..6c54721a9b13 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/full.md.prettier-snap @@ -0,0 +1 @@ +![hello][world] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/shortcut.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/shortcut.md new file mode 100644 index 000000000000..1e28e1aa13ef --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/shortcut.md @@ -0,0 +1 @@ +![hello] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/shortcut.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/shortcut.md.prettier-snap new file mode 100644 index 000000000000..1e28e1aa13ef --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/imageReference/shortcut.md.prettier-snap @@ -0,0 +1 @@ +![hello] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/indentation/example.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/indentation/example.md new file mode 100644 index 000000000000..09a8bb5162f2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/indentation/example.md @@ -0,0 +1,6 @@ +- Top level list item 1 +- Top level list item 2 + - Nested List item 1 + - Nested List item 2 + - Sub-Nested List item 1 + - Sub-Nested List item 2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/indentation/example.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/indentation/example.md.prettier-snap new file mode 100644 index 000000000000..5f985fb20579 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/indentation/example.md.prettier-snap @@ -0,0 +1,6 @@ +- Top level list item 1 +- Top level list item 2 + - Nested List item 1 + - Nested List item 2 + - Sub-Nested List item 1 + - Sub-Nested List item 2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/backtick.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/backtick.md new file mode 100644 index 000000000000..df3942a0b0d7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/backtick.md @@ -0,0 +1,15 @@ +`` `123` `` + +``12`34`` + +`` `12`` + +``34` `` + +`` ```123``` `` + +``` 3 ``22`` `1` ``` + +`` 2 ```123``` `1` `` + +`` CODE` `` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/backtick.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/backtick.md.prettier-snap new file mode 100644 index 000000000000..cbc72b7fdb41 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/backtick.md.prettier-snap @@ -0,0 +1,15 @@ +`` `123` `` + +``12`34`` + +`` `12`` + +``34` `` + +` ```123``` ` + +``` 3 ``22`` `1` ``` + +`` 2 ```123``` `1` `` + +`` CODE` `` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/cjk.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/cjk.md new file mode 100644 index 000000000000..83ed722150dc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/cjk.md @@ -0,0 +1 @@ +`const x = "中文123"` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/cjk.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/cjk.md.prettier-snap new file mode 100644 index 000000000000..83ed722150dc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/cjk.md.prettier-snap @@ -0,0 +1 @@ +`const x = "中文123"` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/escape.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/escape.md new file mode 100644 index 000000000000..37d48f145c54 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/escape.md @@ -0,0 +1 @@ +`1*2*3` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/escape.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/escape.md.prettier-snap new file mode 100644 index 000000000000..37d48f145c54 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/escape.md.prettier-snap @@ -0,0 +1 @@ +`1*2*3` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-multiple-spaces.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-multiple-spaces.md new file mode 100644 index 000000000000..841616b9eceb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-multiple-spaces.md @@ -0,0 +1,7 @@ +` three spaces everywhere ` + +` three spaces + everywhere ` + +` three spaces + everywhere ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-multiple-spaces.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-multiple-spaces.md.prettier-snap new file mode 100644 index 000000000000..841616b9eceb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-multiple-spaces.md.prettier-snap @@ -0,0 +1,7 @@ +` three spaces everywhere ` + +` three spaces + everywhere ` + +` three spaces + everywhere ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-newline.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-newline.md new file mode 100644 index 000000000000..c2b9f6b8cf82 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-newline.md @@ -0,0 +1,6 @@ +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod `tempor +incididunt` ut labore et dolore magna aliqua. Ut enim ad minim veniam, `quis +nostrud` exercitation ullamco laboris nisi ut aliquip ex ea commodo `consequat. +Duis` aute irure dolor in reprehenderit in voluptate velit esse cillum dolore `eu +fugiat` nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in +culpa qui officia deserunt mollit anim id est laborum. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-newline.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-newline.md.prettier-snap new file mode 100644 index 000000000000..c2b9f6b8cf82 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/inline-code-newline.md.prettier-snap @@ -0,0 +1,6 @@ +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod `tempor +incididunt` ut labore et dolore magna aliqua. Ut enim ad minim veniam, `quis +nostrud` exercitation ullamco laboris nisi ut aliquip ex ea commodo `consequat. +Duis` aute irure dolor in reprehenderit in voluptate velit esse cillum dolore `eu +fugiat` nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in +culpa qui officia deserunt mollit anim id est laborum. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/long.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/long.md new file mode 100644 index 000000000000..7892800da3bd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/long.md @@ -0,0 +1 @@ +`this is a long long long long long long long long long long long long long long long inline code` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/long.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/long.md.prettier-snap new file mode 100644 index 000000000000..7892800da3bd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/long.md.prettier-snap @@ -0,0 +1 @@ +`this is a long long long long long long long long long long long long long long long inline code` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/simple.md new file mode 100644 index 000000000000..b7a28bf0b4fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/simple.md @@ -0,0 +1 @@ +`123` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/simple.md.prettier-snap new file mode 100644 index 000000000000..b7a28bf0b4fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/inlineCode/simple.md.prettier-snap @@ -0,0 +1 @@ +`123` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/jsx-semi/semi.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/jsx-semi/semi.md new file mode 100644 index 000000000000..4f5b640a9163 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/jsx-semi/semi.md @@ -0,0 +1,8 @@ +```jsx +
foo
+``` + +```jsx +const a = 1; +
foo
; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/jsx-semi/semi.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/jsx-semi/semi.md.prettier-snap new file mode 100644 index 000000000000..4f5b640a9163 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/jsx-semi/semi.md.prettier-snap @@ -0,0 +1,8 @@ +```jsx +
foo
+``` + +```jsx +const a = 1; +
foo
; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/autolink.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/autolink.md new file mode 100644 index 000000000000..81c19482ed5d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/autolink.md @@ -0,0 +1,5 @@ + + + + + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/autolink.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/autolink.md.prettier-snap new file mode 100644 index 000000000000..81c19482ed5d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/autolink.md.prettier-snap @@ -0,0 +1,5 @@ + + + + + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/encodedLink.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/encodedLink.md new file mode 100644 index 000000000000..151023cad541 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/encodedLink.md @@ -0,0 +1,15 @@ +[link](https://www.google.fr/()foo->bar) +[link](https://www.google.fr/foo->bar) +[link](https://www.google.fr/foo-%3Ebar) +[link](https://www.google.fr/foo-bar) +![link](https://www.google.fr/foo->bar) +![link](https://www.google.fr/foo-%3Ebar) +![link](https://www.google.fr/foo-bar +[link]: https://www.google.fr/foo->bar +[link]: https://www.google.fr/foo-%3Ebar +[link]: https://www.google.fr/foo-) +[link](https://www.google.fr/foo->bar) +[link](https://www.google.fr/foo-%3Ebar) +[link](https://www.google.fr/foo-) +![link](https://www.google.fr/foo->bar) +![link](https://www.google.fr/foo-%3Ebar) +![link](https://www.google.fr/foo-bar +[link]: https://www.google.fr/foo->bar +[link]: https://www.google.fr/foo-%3Ebar +[link]: https://www.google.fr/foo- + +[a](https://example.com "\"')") +[a](https://example.com '"\')') +[a](https://example.com ("'\))) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/title.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/title.md.prettier-snap new file mode 100644 index 000000000000..be87c98d6bb6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/title.md.prettier-snap @@ -0,0 +1,29 @@ +[hello](#world "title") +[hello](#world "title") +[hello](#world "title") + +[a](https://example.com '"') +[a](https://example.com '"') +[a](https://example.com '"') + +[a](https://example.com "'") +[a](https://example.com "'") +[a](https://example.com "'") + +[a](https://example.com "'") +[a](https://example.com ")") +[a](https://example.com ")") + +[a](https://example.com '"') +[a](https://example.com "'") +[a](https://example.com ")") + +[a](https://example.com "'") +[a](https://example.com '"') +[a](https://example.com '"') + + + +[a](https://example.com "\"')") +[a](https://example.com "\"')") +[a](https://example.com "\"')") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/url.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/url.md new file mode 100644 index 000000000000..eb7d84c3e6a8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/url.md @@ -0,0 +1 @@ +https://www.example.com/ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/url.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/url.md.prettier-snap new file mode 100644 index 000000000000..eb7d84c3e6a8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/link/url.md.prettier-snap @@ -0,0 +1 @@ +https://www.example.com/ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/case-and-space.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/case-and-space.md new file mode 100644 index 000000000000..f849494fd66c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/case-and-space.md @@ -0,0 +1,19 @@ +# `linkReference` + +[ See `AsyncGeneratorFunction` ][ See `AsyncGeneratorFunction` ] + +# `imageReference` + +![ See `AsyncGeneratorFunction` ][ See `AsyncGeneratorFunction` ] + +# `definition` + +[ See `AsyncGeneratorFunction` ]: ./index.html + +# `footnoteReference` + +[^See`AsyncGeneratorFunction`] + +# `footnoteDefinition` + +[^See`AsyncGeneratorFunction`]: ./index.html diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/case-and-space.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/case-and-space.md.prettier-snap new file mode 100644 index 000000000000..460b9e082ef7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/case-and-space.md.prettier-snap @@ -0,0 +1,19 @@ +# `linkReference` + +[ See `AsyncGeneratorFunction` ][ See `AsyncGeneratorFunction` ] + +# `imageReference` + +![ See `AsyncGeneratorFunction` ][ See `AsyncGeneratorFunction` ] + +# `definition` + +[ See `AsyncGeneratorFunction` ]: ./index.html + +# `footnoteReference` + +[^See`AsyncGeneratorFunction`] + +# `footnoteDefinition` + +[^See`AsyncGeneratorFunction`]: ./index.html diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-3835.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-3835.md new file mode 100644 index 000000000000..b8d5aa7e4c01 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-3835.md @@ -0,0 +1 @@ +[1][Test Text](http://example.com) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-3835.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-3835.md.prettier-snap new file mode 100644 index 000000000000..b8d5aa7e4c01 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-3835.md.prettier-snap @@ -0,0 +1 @@ +[1][Test Text](http://example.com) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-7118.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-7118.md new file mode 100644 index 000000000000..9507886e22ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-7118.md @@ -0,0 +1,18 @@ +- see[Link to Foo][master-LinkToFoo] + +[master-LinkToFoo]: http://foo.com + +Bla bla [PascalCase][] bla. + +[PascalCase]: ./PascalCase.md + +## [Unreleased] +… +[Unreleased]: https://github.com/username/project/compare/v1.0.0...HEAD + +[darktable]: https://www.darktable.org/ +[js;dr]: https://indieweb.org/js;dr +[LinuxFest Northwest]: https://www.linuxfestnorthwest.org/ +[OpenStreetMap]: https://www.openstreetmap.org/about +[SeaGL]: https://seagl.org/ +[uBlock Origin]: https://github.com/gorhill/uBlock diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-7118.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-7118.md.prettier-snap new file mode 100644 index 000000000000..36cc748b5fd2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/case-and-space/issue-7118.md.prettier-snap @@ -0,0 +1,19 @@ +- see[Link to Foo][master-LinkToFoo] + +[master-LinkToFoo]: http://foo.com + +Bla bla [PascalCase][] bla. + +[PascalCase]: ./PascalCase.md + +## [Unreleased] + +… +[Unreleased]: https://github.com/username/project/compare/v1.0.0...HEAD + +[darktable]: https://www.darktable.org/ +[js;dr]: https://indieweb.org/js;dr +[LinuxFest Northwest]: https://www.linuxfestnorthwest.org/ +[OpenStreetMap]: https://www.openstreetmap.org/about +[SeaGL]: https://seagl.org/ +[uBlock Origin]: https://github.com/gorhill/uBlock diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/cjk.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/cjk.md new file mode 100644 index 000000000000..fb0610449a34 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/cjk.md @@ -0,0 +1 @@ +[這是一段很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長的段落][] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/cjk.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/cjk.md.prettier-snap new file mode 100644 index 000000000000..fb0610449a34 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/cjk.md.prettier-snap @@ -0,0 +1 @@ +[這是一段很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長的段落][] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/collapsed.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/collapsed.md new file mode 100644 index 000000000000..abf973160da3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/collapsed.md @@ -0,0 +1 @@ +[hello][] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/collapsed.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/collapsed.md.prettier-snap new file mode 100644 index 000000000000..abf973160da3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/collapsed.md.prettier-snap @@ -0,0 +1 @@ +[hello][] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/definition.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/definition.md new file mode 100644 index 000000000000..7a619284332d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/definition.md @@ -0,0 +1,8 @@ +[just-url]: https://example.com +[url-with-short-title]: https://example.com "title" +[url-with-long-title]: https://example.com "a long, long title. It's really really long. Here have words." +[empty-title]: https://example.com "" + +[long]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx +[long-with-title]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx "look a title!" +[long-with-empty-title]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx "" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/definition.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/definition.md.prettier-snap new file mode 100644 index 000000000000..f1a3bf1571bb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/definition.md.prettier-snap @@ -0,0 +1,7 @@ +[just-url]: https://example.com +[url-with-short-title]: https://example.com "title" +[url-with-long-title]: https://example.com "a long, long title. It's really really long. Here have words." +[empty-title]: https://example.com +[long]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx +[long-with-title]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx "look a title!" +[long-with-empty-title]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/full.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/full.md new file mode 100644 index 000000000000..2180f74c7aef --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/full.md @@ -0,0 +1 @@ +[hello][world] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/full.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/full.md.prettier-snap new file mode 100644 index 000000000000..2180f74c7aef --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/full.md.prettier-snap @@ -0,0 +1 @@ +[hello][world] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/shortcut.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/shortcut.md new file mode 100644 index 000000000000..e04a50c8d60b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/shortcut.md @@ -0,0 +1 @@ +[hello] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/shortcut.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/shortcut.md.prettier-snap new file mode 100644 index 000000000000..e04a50c8d60b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/shortcut.md.prettier-snap @@ -0,0 +1 @@ +[hello] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/title.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/title.md new file mode 100644 index 000000000000..00267b20e4f2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/title.md @@ -0,0 +1,38 @@ +[ref]: https://example.com (bar) +[other-ref]: https://example.com (Shakespeare's "Romeo and Juliet" is a famous play) + +[a]: https://example.com "\"" +[a]: https://example.com '\"' +[a]: https://example.com (\") + +[a]: https://example.com "\'" +[a]: https://example.com '\'' +[a]: https://example.com (\') + +[a]: https://example.com "\'" +[a]: https://example.com '\)' +[a]: https://example.com (\)) + +[a]: https://example.com "\\\"" +[a]: https://example.com '\\\'' +[a]: https://example.com (\\\)) + +[a]: https://example.com "\\'" +[a]: https://example.com '\\"' +[a]: https://example.com (\\") + +[a]: https://example.com "\a\a" +[a]: https://example.com '\a\a' +[a]: https://example.com (\a\a) + +[a]: https://example.com "\\a\\a" +[a]: https://example.com '\\a\\a' +[a]: https://example.com (\\a\\a) + +[a]: https://example.com "\\\a\\\a" +[a]: https://example.com '\\\a\\\a' +[a]: https://example.com (\\\a\\\a) + +[a]: https://example.com "\\\\a\\\\a" +[a]: https://example.com '\\\\a\\\\a' +[a]: https://example.com (\\\\a\\\\a) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/title.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/title.md.prettier-snap new file mode 100644 index 000000000000..89fd88f72fb8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/title.md.prettier-snap @@ -0,0 +1,36 @@ +[ref]: https://example.com "bar" +[other-ref]: https://example.com (Shakespeare's "Romeo and Juliet" is a famous play) + +[a]: https://example.com "\"" +[a]: https://example.com '\"' +[a]: https://example.com (\") + +[a]: https://example.com "'" + +[a]: https://example.com '\'' +[a]: https://example.com (\') + +[a]: https://example.com "'" +[a]: https://example.com ")" + +[a]: https://example.com (\)) + +[a]: https://example.com "\\\"" +[a]: https://example.com '\\\'' +[a]: https://example.com (\\\)) + +[a]: https://example.com "'" +[a]: https://example.com '"' +[a]: https://example.com '"' +[a]: https://example.com "\\a\\a" +[a]: https://example.com "\\a\\a" +[a]: https://example.com "\\a\\a" +[a]: https://example.com "\\a\\a" +[a]: https://example.com "\\a\\a" +[a]: https://example.com "\\a\\a" +[a]: https://example.com "\\\\a\\\\a" +[a]: https://example.com "\\\\a\\\\a" +[a]: https://example.com "\\\\a\\\\a" +[a]: https://example.com "\\\\a\\\\a" +[a]: https://example.com "\\\\a\\\\a" +[a]: https://example.com "\\\\a\\\\a" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/wrap.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/wrap.md new file mode 100644 index 000000000000..ed6c3e7891d7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/wrap.md @@ -0,0 +1 @@ +This folder has [VHS] tape files to create gifs for the [Widget Showcase]. To run them, install VHS from main (the theme and screenshot commands are not yet released). diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/wrap.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/wrap.md.prettier-snap new file mode 100644 index 000000000000..ed6c3e7891d7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/linkReference/wrap.md.prettier-snap @@ -0,0 +1 @@ +This folder has [VHS] tape files to create gifs for the [Widget Showcase]. To run them, install VHS from main (the theme and screenshot commands are not yet released). diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/example-1.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/example-1.md new file mode 100644 index 000000000000..790f051ababa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/example-1.md @@ -0,0 +1,12 @@ +{% include_relative _installations/tarball.md %} + +{% cloudinary nice_prefix_-_for_the_filename.jpg %} + +# Userscripts [{% img github.svg alt:"View on GitHub" title:"View on GitHub" %}](https://github.com/Charcoal-SE/Userscripts) [Build status loading…](//travis-ci.org/Charcoal-SE/userscripts){: .build} + +{% css userscripts %} +{% js userscripts %} + +{{ foo +multiline +where does it end }} diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/example-1.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/example-1.md.prettier-snap new file mode 100644 index 000000000000..790f051ababa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/example-1.md.prettier-snap @@ -0,0 +1,12 @@ +{% include_relative _installations/tarball.md %} + +{% cloudinary nice_prefix_-_for_the_filename.jpg %} + +# Userscripts [{% img github.svg alt:"View on GitHub" title:"View on GitHub" %}](https://github.com/Charcoal-SE/Userscripts) [Build status loading…](//travis-ci.org/Charcoal-SE/userscripts){: .build} + +{% css userscripts %} +{% js userscripts %} + +{{ foo +multiline +where does it end }} diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-mismatched-braces.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-mismatched-braces.md new file mode 100644 index 000000000000..ba708f248c1a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-mismatched-braces.md @@ -0,0 +1,2 @@ + +Braces {% doesn't match so these words should not be considered as *liquid node* }} diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-mismatched-braces.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-mismatched-braces.md.prettier-snap new file mode 100644 index 000000000000..abaf6cae143b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-mismatched-braces.md.prettier-snap @@ -0,0 +1 @@ +Braces {% doesn't match so these words should not be considered as _liquid node_ }} diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-close-only.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-close-only.md new file mode 100644 index 000000000000..ed72b4894889 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-close-only.md @@ -0,0 +1,3 @@ + + +Following brace doesn't open so these words should not be considered as *liquid node* }} diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-close-only.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-close-only.md.prettier-snap new file mode 100644 index 000000000000..742a0de0836a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-close-only.md.prettier-snap @@ -0,0 +1 @@ +Following brace doesn't open so these words should not be considered as _liquid node_ }} diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-open-only.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-open-only.md new file mode 100644 index 000000000000..d59a7abae9e8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-open-only.md @@ -0,0 +1,3 @@ + + +This brace {{ doesn't close so these words should not be considered as *liquid node* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-open-only.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-open-only.md.prettier-snap new file mode 100644 index 000000000000..545f128f9503 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-object-open-only.md.prettier-snap @@ -0,0 +1 @@ +This brace {{ doesn't close so these words should not be considered as _liquid node_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-close-only.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-close-only.md new file mode 100644 index 000000000000..ecf41a5db151 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-close-only.md @@ -0,0 +1,3 @@ + + +Following brace doesn't open so these words should not be considered as *liquid node* %} diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-close-only.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-close-only.md.prettier-snap new file mode 100644 index 000000000000..d88279b833dc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-close-only.md.prettier-snap @@ -0,0 +1 @@ +Following brace doesn't open so these words should not be considered as _liquid node_ %} diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-open-only.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-open-only.md new file mode 100644 index 000000000000..f49bcc5e1250 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-open-only.md @@ -0,0 +1,3 @@ + + +This brace {% doesn't close so these words should not be considered as *liquid node* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-open-only.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-open-only.md.prettier-snap new file mode 100644 index 000000000000..875b7b09a7f4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/liquid/unbalanced-template-open-only.md.prettier-snap @@ -0,0 +1 @@ +This brace {% doesn't close so these words should not be considered as _liquid node_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/align.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/align.md new file mode 100644 index 000000000000..9847a19b46e4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/align.md @@ -0,0 +1,57 @@ +1. 123 + +--- + +11. 123 + +--- + +111. 123 + +--- + +1111. 123 + +--- + +11111. 123 + +--- + +1. 123 + +--- + +1. 123 +2. 123 + +--- + +11. 123 +1. 123 + +--- + +11. 123 +1. 123 + +--- + +1. 123 +2. 123 + 1. 123 + 2. 123 + +--- + +1. 123 +2. 123 + 1. 123 + 2. 123 + +--- + +- 123 +- 123 + 1. 123 + 2. 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/align.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/align.md.prettier-snap new file mode 100644 index 000000000000..2f08c6943f23 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/align.md.prettier-snap @@ -0,0 +1,57 @@ +1. 123 + +--- + +11. 123 + +--- + +111. 123 + +--- + +1111. 123 + +--- + +11111. 123 + +--- + +1. 123 + +--- + +1. 123 +2. 123 + +--- + +11. 123 +1. 123 + +--- + +11. 123 +1. 123 + +--- + +1. 123 +2. 123 + 1. 123 + 2. 123 + +--- + +1. 123 +2. 123 + 1. 123 + 2. 123 + +--- + +- 123 +- 123 + 1. 123 + 2. 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/checkbox.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/checkbox.md new file mode 100644 index 000000000000..a1e1f1ef1e26 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/checkbox.md @@ -0,0 +1,2 @@ +- [ ] this is a long long long long long long long long long long long long long long paragraph. +- [x] this is a long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/checkbox.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/checkbox.md.prettier-snap new file mode 100644 index 000000000000..a1e1f1ef1e26 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/checkbox.md.prettier-snap @@ -0,0 +1,2 @@ +- [ ] this is a long long long long long long long long long long long long long long paragraph. +- [x] this is a long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/codeblock.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/codeblock.md new file mode 100644 index 000000000000..d7c7e6ad077e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/codeblock.md @@ -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; + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/codeblock.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/codeblock.md.prettier-snap new file mode 100644 index 000000000000..82afeecc452a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/codeblock.md.prettier-snap @@ -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; + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/combined-lists.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/combined-lists.md new file mode 100644 index 000000000000..2413ba96f6d9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/combined-lists.md @@ -0,0 +1,13 @@ +* hello1 + +* hello2 + + +* hello3 + +* hello4 + + +* hello5 + +* hello6 \ No newline at end of file diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/combined-lists.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/combined-lists.md.prettier-snap new file mode 100644 index 000000000000..4b7416314573 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/combined-lists.md.prettier-snap @@ -0,0 +1,11 @@ +- hello1 + +- hello2 + +- hello3 + +- hello4 + +- hello5 + +- hello6 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/git-diff-friendly.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/git-diff-friendly.md new file mode 100644 index 000000000000..d4ddbe9dc514 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/git-diff-friendly.md @@ -0,0 +1,3 @@ +5. abc +1. def +999. ghi diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/git-diff-friendly.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/git-diff-friendly.md.prettier-snap new file mode 100644 index 000000000000..0722bc646cf6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/git-diff-friendly.md.prettier-snap @@ -0,0 +1,3 @@ +5. abc +1. def +1. ghi diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/indent.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/indent.md new file mode 100644 index 000000000000..caef8c1a68ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/indent.md @@ -0,0 +1,85 @@ +- [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + - a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + - [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 12345678) a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 12345678. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + +1. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + - a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + - [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 12345678) a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 12345678. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + +12345678) [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + - a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + - [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 12345678) a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 12345678. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/indent.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/indent.md.prettier-snap new file mode 100644 index 000000000000..a533a4a21f72 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/indent.md.prettier-snap @@ -0,0 +1,73 @@ +- [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + - a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + - [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 1. a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 12345678) a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 12345678. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + +1. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + - a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + - [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 1. a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 12345678) a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 12345678. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + +12345678) [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + - a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + - [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 1. a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + 1. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 12345678) a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + 12345678. [ ] a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a + + b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b b + + a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/interrupt.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/interrupt.md new file mode 100644 index 000000000000..a24c9ff8d3a8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/interrupt.md @@ -0,0 +1,2 @@ +* Something +### Some heading diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/interrupt.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/interrupt.md.prettier-snap new file mode 100644 index 000000000000..16915e8c6a11 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/interrupt.md.prettier-snap @@ -0,0 +1,3 @@ +- Something + +### Some heading diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-17652.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-17652.md new file mode 100644 index 000000000000..52f8bf552f82 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-17652.md @@ -0,0 +1,23 @@ +1. Some text, and code block below, with newline after code block + + ```yaml + --- + foo: bar + ``` + + 1. Another + 2. List + +1. Some text, and code block below, with newline after code block + + 1. Another + 2. List + + + ```yaml + --- + foo: bar + ``` + + 1. Another + 2. List diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-17652.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-17652.md.prettier-snap new file mode 100644 index 000000000000..aa43f2164094 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-17652.md.prettier-snap @@ -0,0 +1,21 @@ +1. Some text, and code block below, with newline after code block + + ```yaml + --- + foo: bar + ``` + + 1. Another + 2. List + +1. Some text, and code block below, with newline after code block + 1. Another + 2. List + + ```yaml + --- + foo: bar + ``` + + 1. Another + 2. List diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-7846.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-7846.md new file mode 100644 index 000000000000..b17717a8c6c8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-7846.md @@ -0,0 +1,11 @@ +- a a + b b + c c + d d + e e + +1. a a a + b b b + c c c + d d d + e e e \ No newline at end of file diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-7846.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-7846.md.prettier-snap new file mode 100644 index 000000000000..999829b3b559 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-7846.md.prettier-snap @@ -0,0 +1,11 @@ +- a a + b b + c c + d d + e e + +1. a a a + b b b + c c c + d d d + e e e diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-8004.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-8004.md new file mode 100644 index 000000000000..ba7536e03f78 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-8004.md @@ -0,0 +1,4 @@ +- Level 1 + - Level 1-1 + +- Level 2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-8004.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-8004.md.prettier-snap new file mode 100644 index 000000000000..ba7536e03f78 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/issue-8004.md.prettier-snap @@ -0,0 +1,4 @@ +- Level 1 + - Level 1-1 + +- Level 2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/long-paragraph.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/long-paragraph.md new file mode 100644 index 000000000000..aff50d7bbe69 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/long-paragraph.md @@ -0,0 +1 @@ +- This is a long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/long-paragraph.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/long-paragraph.md.prettier-snap new file mode 100644 index 000000000000..aff50d7bbe69 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/long-paragraph.md.prettier-snap @@ -0,0 +1 @@ +- This is a long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/loose.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/loose.md new file mode 100644 index 000000000000..07615d04ff36 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/loose.md @@ -0,0 +1,11 @@ +- 123 + + - abc + +- 456 + + - def + +- 789 + + - ghi diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/loose.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/loose.md.prettier-snap new file mode 100644 index 000000000000..d9cb689ad7e7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/loose.md.prettier-snap @@ -0,0 +1,8 @@ +- 123 + - abc + +- 456 + - def + +- 789 + - ghi diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/multiline.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/multiline.md new file mode 100644 index 000000000000..0d5c4704e35f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/multiline.md @@ -0,0 +1,3 @@ +- 123 + 456 + 789 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/multiline.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/multiline.md.prettier-snap new file mode 100644 index 000000000000..0d5c4704e35f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/multiline.md.prettier-snap @@ -0,0 +1,3 @@ +- 123 + 456 + 789 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-checkbox.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-checkbox.md new file mode 100644 index 000000000000..f98995d13621 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-checkbox.md @@ -0,0 +1,11 @@ +* parent list item parent list item parent list item parent list item parent list item parent list item + + * child list item child list item child list item child list item child list item child list item + + paragraph paragraph paragraph paragraph paragraph paragraph paragraph paragraph paragraph + +* [x] parent task list item parent task list item parent task list item parent task list item + + * [x] child task list item child task list item child task list item child task list item + + paragraph paragraph paragraph paragraph paragraph paragraph paragraph paragraph paragraph diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-checkbox.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-checkbox.md.prettier-snap new file mode 100644 index 000000000000..05fad8181a78 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-checkbox.md.prettier-snap @@ -0,0 +1,9 @@ +- parent list item parent list item parent list item parent list item parent list item parent list item + - child list item child list item child list item child list item child list item child list item + + paragraph paragraph paragraph paragraph paragraph paragraph paragraph paragraph paragraph + +- [x] parent task list item parent task list item parent task list item parent task list item + - [x] child task list item child task list item child task list item child task list item + + paragraph paragraph paragraph paragraph paragraph paragraph paragraph paragraph paragraph diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-tab.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-tab.md new file mode 100644 index 000000000000..13fe02602b58 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-tab.md @@ -0,0 +1,15 @@ +# List with 1 tab indentation and `-` +- Top level list item 1 +- Top level list item 2 + - Nested List item 1 + - Nested List item 2 + - Sub-Nested List item 1 + - Sub-Nested List item 2 + +# List with 1 tab indentation and `*` +* Top level list item 1 +* Top level list item 2 + * Nested List item 1 + * Nested List item 2 + * Sub-Nested List item 1 + * Sub-Nested List item 2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-tab.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-tab.md.prettier-snap new file mode 100644 index 000000000000..32b5392fd101 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested-tab.md.prettier-snap @@ -0,0 +1,17 @@ +# List with 1 tab indentation and `-` + +- Top level list item 1 +- Top level list item 2 + - Nested List item 1 + - Nested List item 2 + - Sub-Nested List item 1 + - Sub-Nested List item 2 + +# List with 1 tab indentation and `*` + +- Top level list item 1 +- Top level list item 2 + - Nested List item 1 + - Nested List item 2 + _ Sub-Nested List item 1 + _ Sub-Nested List item 2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested.md new file mode 100644 index 000000000000..280c4d7c2757 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested.md @@ -0,0 +1,3 @@ +- Level 1 + - Level 2 + - Level 3 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested.md.prettier-snap new file mode 100644 index 000000000000..280c4d7c2757 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/nested.md.prettier-snap @@ -0,0 +1,3 @@ +- Level 1 + - Level 2 + - Level 3 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/ordered.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/ordered.md new file mode 100644 index 000000000000..d4b3b7e7fb9e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/ordered.md @@ -0,0 +1,3 @@ +1. 123 +1. 456 +1. 789 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/ordered.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/ordered.md.prettier-snap new file mode 100644 index 000000000000..d4b3b7e7fb9e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/ordered.md.prettier-snap @@ -0,0 +1,3 @@ +1. 123 +1. 456 +1. 789 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/separate.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/separate.md new file mode 100644 index 000000000000..040d6ee9d2a5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/separate.md @@ -0,0 +1,7 @@ +- 123 +- 123 +- 123 + +* 123 +* 123 +* 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/separate.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/separate.md.prettier-snap new file mode 100644 index 000000000000..040d6ee9d2a5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/separate.md.prettier-snap @@ -0,0 +1,7 @@ +- 123 +- 123 +- 123 + +* 123 +* 123 +* 123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/simple.md new file mode 100644 index 000000000000..a9b4dce9699b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/simple.md @@ -0,0 +1,3 @@ +- 123 +- 456 +- 789 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/simple.md.prettier-snap new file mode 100644 index 000000000000..a9b4dce9699b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/simple.md.prettier-snap @@ -0,0 +1,3 @@ +- 123 +- 456 +- 789 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/start.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/start.md new file mode 100644 index 000000000000..b58f3551fa88 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/start.md @@ -0,0 +1,98 @@ +5. abc +6. def +7. ghi + +--- + +0. abc +0. def +0. ghi + +--- + +1. abc +1. def +1. ghi + +--- + +2. abc +2. def +2. ghi + +--- + +0. abc +1. def +2. ghi + +--- + +0. abc +1. def +1. ghi + +--- + +1. abc +2. def +3. ghi + +--- + +2. abc +3. def +4. ghi + +--- + +999. abc +145. def +69. ghi + +--- + +0. abc + +--- + +1. abc + +--- + +2. abc + +--- + +999. abc + +--- + +0. abc +1. def + +--- + +1. abc +2. def + +--- + + +1. abc +1. def + +--- + +2. abc +3. def + +--- + +999. abc +1. def + +--- + +999. abc +2. def diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/start.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/start.md.prettier-snap new file mode 100644 index 000000000000..bba798e2eecf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/start.md.prettier-snap @@ -0,0 +1,97 @@ +5. abc +6. def +7. ghi + +--- + +0. abc +1. def +2. ghi + +--- + +1. abc +1. def +1. ghi + +--- + +2. abc +3. def +4. ghi + +--- + +0. abc +1. def +2. ghi + +--- + +0. abc +1. def +1. ghi + +--- + +1. abc +2. def +3. ghi + +--- + +2. abc +3. def +4. ghi + +--- + +999. abc +1000. def +1001. ghi + +--- + +0. abc + +--- + +1. abc + +--- + +2. abc + +--- + +999. abc + +--- + +0. abc +1. def + +--- + +1. abc +2. def + +--- + +1. abc +1. def + +--- + +2. abc +3. def + +--- + +999. abc +1. def + +--- + +999. abc +1000. def diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/tab.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/tab.md new file mode 100644 index 000000000000..55699cdb66d9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/tab.md @@ -0,0 +1,23 @@ +* Text + + [title](link) + +* Text + + - foo + - foo + - bar + +* Text + + # foo + +* Text + + ``` + foo + ``` + +* Text + + `foo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/tab.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/tab.md.prettier-snap new file mode 100644 index 000000000000..c3d5166b6e60 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/tab.md.prettier-snap @@ -0,0 +1,22 @@ +- Text + + [title](link) + +- Text + - foo + - foo + - bar + +- Text + + # foo + +- Text + + ``` + foo + ``` + +- Text + + `foo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/unordered.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/unordered.md new file mode 100644 index 000000000000..df254df52df9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/unordered.md @@ -0,0 +1,5 @@ +- first line + - second line indented +- third line + - fourth line + - fifth line diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/unordered.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/unordered.md.prettier-snap new file mode 100644 index 000000000000..dec4f3eb0b19 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/list/unordered.md.prettier-snap @@ -0,0 +1,5 @@ +- first line + - second line indented +- third line + - fourth line + - fifth line diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/long-table/long-table.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/long-table/long-table.md new file mode 100644 index 000000000000..57ff8ab25fe5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/long-table/long-table.md @@ -0,0 +1,13 @@ +| Property | Description | Type | Default | +| -------- | ----------- | ---- | ------- | +| bordered | Toggles rendering of the border around the list | boolean | false | +| footer | List footer renderer | string\|ReactNode | - | +| grid | The grid type of list. You can set grid to something like {gutter: 16, column: 4} | object | - | +| header | List header renderer | string\|ReactNode | - | +| itemLayout | The layout of list, default is `horizontal`, If a vertical list is desired, set the itemLayout property to `vertical` | string | - | +| rowKey | Item's unique key, could be a string or function that returns a string | string\|Function(record):string | `key` | +| loading | Shows a loading indicator while the contents of the list are being fetched | boolean\|[object](https://ant.design/components/spin-cn/#API) ([more](https://github.com/ant-design/ant-design/issues/8659)) | false | +| loadMore | Shows a load more content | string\|ReactNode | - | +| locale | i18n text including empty text | object | emptyText: 'No Data'
| +| pagination | Pagination [config](https://ant.design/components/pagination/), hide it by setting it to false | boolean \| object | false | +| split | Toggles rendering of the split under the list item | boolean | true | \ No newline at end of file diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/long-table/long-table.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/long-table/long-table.md.prettier-snap new file mode 100644 index 000000000000..52a666d69989 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/long-table/long-table.md.prettier-snap @@ -0,0 +1,13 @@ +| Property | Description | Type | Default | +| ---------- | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------- | +| bordered | Toggles rendering of the border around the list | boolean | false | +| footer | List footer renderer | string\|ReactNode | - | +| grid | The grid type of list. You can set grid to something like {gutter: 16, column: 4} | object | - | +| header | List header renderer | string\|ReactNode | - | +| itemLayout | The layout of list, default is `horizontal`, If a vertical list is desired, set the itemLayout property to `vertical` | string | - | +| rowKey | Item's unique key, could be a string or function that returns a string | string\|Function(record):string | `key` | +| loading | Shows a loading indicator while the contents of the list are being fetched | boolean\|[object](https://ant.design/components/spin-cn/#API) ([more](https://github.com/ant-design/ant-design/issues/8659)) | false | +| loadMore | Shows a load more content | string\|ReactNode | - | +| locale | i18n text including empty text | object | emptyText: 'No Data'
| +| pagination | Pagination [config](https://ant.design/components/pagination/), hide it by setting it to false | boolean \| object | false | +| split | Toggles rendering of the split under the list item | boolean | true | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/real-world-case.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/real-world-case.md new file mode 100644 index 000000000000..a0dbaaea200e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/real-world-case.md @@ -0,0 +1,894 @@ +# Prettier + +[![Build Status](https://travis-ci.org/prettier/prettier.svg?branch=master)](https://travis-ci.org/prettier/prettier) +[![Codecov](https://img.shields.io/codecov/c/github/prettier/prettier.svg)](https://codecov.io/gh/prettier/prettier) +[![NPM version](https://img.shields.io/npm/v/prettier.svg)](https://www.npmjs.com/package/prettier) +[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](#badge) + +Prettier is an opinionated code formatter with support for: +* JavaScript, including [ES2017](https://github.com/tc39/proposals/blob/master/finished-proposals.md) +* [JSX](https://facebook.github.io/jsx/) +* [Flow](https://flow.org/) +* [TypeScript](https://www.typescriptlang.org/) +* CSS, [Less](http://lesscss.org/), and [SCSS](http://sass-lang.com) +* [JSON](http://json.org/) +* [GraphQL](http://graphql.org/) + +It removes all original styling[\*](#styling-footnote) and ensures that all outputted code +conforms to a consistent style. (See this [blog post](http://jlongster.com/A-Prettier-Formatter)) + +
+Table of Contents + + + + + +* [What does Prettier do?](#what-does-prettier-do) +* [Why Prettier?](#why-prettier) + + [Building and enforcing a style guide](#building-and-enforcing-a-style-guide) + + [Helping Newcomers](#helping-newcomers) + + [Writing code](#writing-code) + + [Easy to adopt](#easy-to-adopt) + + [Clean up an existing codebase](#clean-up-an-existing-codebase) + + [Ride the hype train](#ride-the-hype-train) +* [How does it compare to ESLint (or TSLint, stylelint...)?](#how-does-it-compare-to-eslint-or-tslint-stylelint) +* [Usage](#usage) + + [CLI](#cli) + + [ESLint](#eslint) + + [Pre-commit Hook](#pre-commit-hook) + + [API](#api) + + [Excluding code from formatting](#excluding-code-from-formatting) +* [Options](#options) + + [Print Width](#print-width) + + [Tab Width](#tab-width) + + [Tabs](#tabs) + + [Semicolons](#semicolons) + + [Quotes](#quotes) + + [Trailing Commas](#trailing-commas) + + [Bracket Spacing](#bracket-spacing) + + [JSX Brackets](#jsx-brackets) + + [Range](#range) + + [Parser](#parser) + + [Filepath](#filepath) +* [Configuration File](#configuration-file) + + [Basic Configuration](#basic-configuration) + + [Configuration Overrides](#configuration-overrides) + + [Configuration Schema](#configuration-schema) +* [Editor Integration](#editor-integration) + + [Atom](#atom) + + [Emacs](#emacs) + + [Vim](#vim) + + [Visual Studio Code](#visual-studio-code) + + [Visual Studio](#visual-studio) + + [Sublime Text](#sublime-text) + + [JetBrains WebStorm, PHPStorm, PyCharm...](#jetbrains-webstorm-phpstorm-pycharm) +* [Language Support](#language-support) +* [Related Projects](#related-projects) +* [Technical Details](#technical-details) +* [Badge](#badge) +* [Contributing](#contributing) + + + +
+ +-------------------------------------------------------------------------------- + +## What does Prettier do? + +Prettier takes your code and reprints it from scratch by taking the line length into account. + +For example, take the following code: + +```js +foo(arg1, arg2, arg3, arg4); +``` + +It fits in a single line so it's going to stay as is. However, we've all run into this situation: + + +```js +foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne()); +``` + +Suddenly our previous format for calling function breaks down because this is too long. Prettier is going to do the painstaking work of reprinting it like that for you: + +```js +foo( + reallyLongArg(), + omgSoManyParameters(), + IShouldRefactorThis(), + isThereSeriouslyAnotherOne() +); +``` + +Prettier enforces a consistent code **style** (i.e. code formatting that won't affect the AST) across your entire codebase because it disregards the original styling[\*](#styling-footnote) by parsing it away and re-printing the parsed AST with its own rules that take the maximum line length +into account, wrapping code when necessary. + +\*_Well actually, some +original styling is preserved when practical—see [empty lines] and [multi-line +objects]._ + +[empty lines]:Rationale.md#empty-lines +[multi-line objects]:Rationale.md#multi-line-objects + +If you want to learn more, these two conference talks are great introductions: + + + + +## Why Prettier? + +### Building and enforcing a style guide + +By far the biggest reason for adopting Prettier is to stop all the on-going debates over styles. It is generally accepted that having a common style guide is valuable for a project and team but getting there is a very painful and unrewarding process. People get very emotional around particular ways of writing code and nobody likes spending time writing and receiving nits. +- “We want to free mental threads and end discussions around style. While sometimes fruitful, these discussions are for the most part wasteful.” +- “Literally had an engineer go through a huge effort of cleaning up all of our code because we were debating ternary style for the longest time and were inconsistent about it. It was dumb, but it was a weird on-going "great debate" that wasted lots of little back and forth bits. It's far easier for us all to agree now: just run Prettier, and go with that style.” +- “Getting tired telling people how to style their product code.” +- “Our top reason was to stop wasting our time debating style nits.” +- “Having a githook set up has reduced the amount of style issues in PRs that result in broken builds due to ESLint rules or things I have to nit-pick or clean up later.” +- “I don't want anybody to nitpick any other person ever again.” +- “It reminds me of how Steve Jobs used to wear the same clothes every day because he has a million decisions to make and he didn't want to be bothered to make trivial ones like picking out clothes. I think Prettier is like that.” + +### Helping Newcomers + +Prettier is usually introduced by people with experience in the current codebase and JavaScript but the people that disproportionally benefit from it are newcomers to the codebase. One may think that it's only useful for people with very limited programming experience, but we've seen it quicken the ramp up time from experienced engineers joining the company, as they likely used a different coding style before, and developers coming from a different programming language. +- “My motivations for using Prettier are: appearing that I know how to write JavaScript well.” +- “I always put spaces in the wrong place, now I don't have to worry about it anymore.” +- “When you're a beginner you're making a lot of mistakes caused by the syntax. Thanks to Prettier, you can reduce these mistakes and save a lot of time to focus on what really matters.” +- “As a teacher, I will also tell to my students to install Prettier to help them to learn the JS syntax and have readable files.” + +### Writing code + +What usually happens once people are using Prettier is that they realize that they actually spend a lot of time and mental energy formatting their code. With Prettier editor integration, you can just press that magic key binding and poof, the code is formatted. This is an eye opening experience if anything else. +- “I want to write code. Not spend cycles on formatting.” +- “It removed 5% that sucks in our daily life - aka formatting” +- “We're in 2017 and it's still painful to break a call into multiple lines when you happen to add an argument that makes it go over the 80 columns limit :(“ + +### Easy to adopt + +We've worked very hard to use the least controversial coding styles, went through many rounds of fixing all the edge cases and polished the getting started experience. When you're ready to push Prettier into your codebase, not only should it be painless for you to do it technically but the newly formatted codebase should not generate major controversy and be accepted painlessly by your co-workers. +- “It's low overhead. We were able to throw Prettier at very different kinds of repos without much work.” +- “It's been mostly bug free. Had there been major styling issues during the course of implementation we would have been wary about throwing this at our JS codebase. I'm happy to say that's not the case.” +- “Everyone runs it as part of their pre commit scripts, a couple of us use the editor on save extensions as well.” +- “It's fast, against one of our larger JS codebases we were able to run Prettier in under 13 seconds.” +- “The biggest benefit for Prettier for us was being able to format the entire code base at once.” + +### Clean up an existing codebase + +Since coming up with a coding style and enforcing it is a big undertaking, it often slips through the cracks and you are left working on inconsistent codebases. Running Prettier in this case is a quick win, the codebase is now uniform and easier to read without spending hardly any time. +- “Take a look at the code :) I just need to restore sanity.” +- “We inherited a ~2000 module ES6 code base, developed by 20 different developers over 18 months, in a global team. Felt like such a win without much research.” + +### Ride the hype train + +Purely technical aspects of the projects aren't the only thing people look into when choosing to adopt Prettier. Who built and uses it and how quickly it spreads through the community has a non-trivial impact. +- “The amazing thing, for me, is: 1) Announced 2 months ago. 2) Already adopted by, it seems, every major JS project. 3) 7000 stars, 100,000 npm downloads/mo” +- “Was built by the same people as React & React Native.” +- “I like to be part of the hot new things.” +- “Because soon enough people are gonna ask for it.” + +A few of the [many projects](https://www.npmjs.com/browse/depended/prettier) using Prettier: + + + + + + + + + + + + +

React
React

Jest
Jest

Yarn
Yarn

Babel
Babel

Zeit
Zeit

Webpack-cli
Webpack-cli

+ + +## How does it compare to ESLint (or TSLint, stylelint...)? + +Linters have two categories of rules: + +**Formatting rules**: eg: [max-len](http://eslint.org/docs/rules/max-len), [no-mixed-spaces-and-tabs](http://eslint.org/docs/rules/no-mixed-spaces-and-tabs), [keyword-spacing](http://eslint.org/docs/rules/keyword-spacing), [comma-style](http://eslint.org/docs/rules/comma-style)... + +Prettier alleviates the need for this whole category of rules! Prettier is going to reprint the entire program from scratch in a consistent way, so it's not possible for the programmer to make a mistake there anymore :) + +**Code-quality rules**: eg [no-unused-vars](http://eslint.org/docs/rules/no-unused-vars), [no-extra-bind](http://eslint.org/docs/rules/no-extra-bind), [no-implicit-globals](http://eslint.org/docs/rules/no-implicit-globals), [prefer-promise-reject-errors](http://eslint.org/docs/rules/prefer-promise-reject-errors)... + +Prettier does nothing to help with those kind of rules. They are also the most important ones provided by linters as they are likely to catch real bugs with your code! + + +## Usage + +Install: + +``` +yarn add prettier --dev --exact +``` + +You can install it globally if you like: + +``` +yarn global add prettier +``` + +*We're using `yarn` but you can use `npm` if you like:* + +``` +npm install --save-dev --save-exact prettier +# or globally +npm install --global prettier +``` + +> We recommend pinning an exact version of prettier in your `package.json` +> as we introduce stylistic changes in patch releases. + +### CLI + +Run Prettier through the CLI with this script. Run it without any +arguments to see the [options](#options). + +To format a file in-place, use `--write`. You may want to consider +committing your code before doing that, just in case. + +```bash +prettier [opts] [filename ...] +``` + +In practice, this may look something like: + +```bash +prettier --single-quote --trailing-comma es5 --write "{app,__{tests,mocks}__}/**/*.js" +``` + +Don't forget the quotes around the globs! The quotes make sure that Prettier +expands the globs rather than your shell, for cross-platform usage. +The [glob syntax from the glob module](https://github.com/isaacs/node-glob/blob/master/README.md#glob-primer) +is used. + +#### `--debug-check` + +If you're worried that Prettier will change the correctness of your code, add `--debug-check` to the command. +This will cause Prettier to print an error message if it detects that code correctness might have changed. +Note that `--write` cannot be used with `--debug-check`. + +#### `--find-config-path` and `--config` + +If you are repeatedly formatting individual files with `prettier`, you will incur a small performance cost +when prettier attempts to look up a [configuration file](#configuration-file). In order to skip this, you may +ask prettier to find the config file once, and re-use it later on. + +```bash +prettier --find-config-path ./my/file.js +./my/.prettierrc +``` + +This will provide you with a path to the configuration file, which you can pass to `--config`: + +```bash +prettier --config ./my/.prettierrc --write ./my/file.js +``` + +You can also use `--config` if your configuration file lives somewhere where prettier cannot find it, +such as a `config/` directory. + +If you don't have a configuration file, or want to ignore it if it does exist, +you can pass `--no-config` instead. + +#### `--ignore-path` + +Path to a file containing patterns that describe files to ignore. By default, prettier looks for `./.prettierignore`. + +#### `--require-pragma` + +Require a special comment, called a pragma, to be present in the file's first docblock comment in order for prettier to format it. +```js +/** + * @prettier + */ +``` + +Valid pragmas are `@prettier` and `@format`. + +#### `--list-different` + +Another useful flag is `--list-different` (or `-l`) which prints the filenames of files that are different from Prettier formatting. If there are differences the script errors out, which is useful in a CI scenario. + +```bash +prettier --single-quote --list-different "src/**/*.js" +``` + +#### `--no-config` + +Do not look for a configuration file. The default settings will be used. + +#### `--config-precedence` + +Defines how config file should be evaluated in combination of CLI options. + +**cli-override (default)** + +CLI options take precedence over config file + +**file-override** + +Config file take precedence over CLI options + +**prefer-file** + +If a config file is found will evaluate it and ignore other CLI options. If no config file is found CLI options will evaluate as normal. + +This option adds support to editor integrations where users define their default configuration but want to respect project specific configuration. + +#### `--with-node-modules` + +Prettier CLI will ignore files located in `node_modules` directory. To opt-out from this behavior use `--with-node-modules` flag. + +#### `--write` + +This rewrites all processed files in place. This is comparable to the `eslint --fix` workflow. + +### ESLint + +If you are using ESLint, integrating Prettier to your workflow is straightforward: + +Just add Prettier as an ESLint rule using [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier). + +```js +yarn add --dev prettier eslint-plugin-prettier + +// .eslintrc.json +{ + "plugins": [ + "prettier" + ], + "rules": { + "prettier/prettier": "error" + } +} +``` + +We also recommend that you use [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) to disable all the existing formatting rules. It's a one liner that can be added on-top of any existing ESLint configuration. + +``` +$ yarn add --dev eslint-config-prettier +``` + +.eslintrc.json: + +```json +{ + "extends": [ + "prettier" + ] +} +``` + + +### Pre-commit Hook + +You can use Prettier with a pre-commit tool. This can re-format your files that are marked as "staged" via `git add` before you commit. + +##### Option 1. [lint-staged](https://github.com/okonet/lint-staged) + +Install it along with [husky](https://github.com/typicode/husky): + +```bash +yarn add lint-staged husky --dev +``` + +and add this config to your `package.json`: + +```json +{ + "scripts": { + "precommit": "lint-staged" + }, + "lint-staged": { + "*.{js,json,css}": [ + "prettier --write", + "git add" + ] + } +} +``` +There is a limitation where if you stage specific lines this approach will stage the whole file after regardless. See this [issue](https://github.com/okonet/lint-staged/issues/62) for more info. + +See https://github.com/okonet/lint-staged#configuration for more details about how you can configure lint-staged. + + +##### Option 2. [pre-commit](https://github.com/pre-commit/pre-commit) + +Copy the following config into your `.pre-commit-config.yaml` file: + +```yaml + + - repo: https://github.com/prettier/prettier + sha: '' # Use the sha or tag you want to point at + hooks: + - id: prettier + +``` + +Find more info from [here](https://pre-commit.com). + +##### Option 3. bash script + +Alternately you can save this script as `.git/hooks/pre-commit` and give it execute permission: + +```bash +#!/bin/sh +jsfiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.jsx\?$' | tr '\n' ' ') +[ -z "$jsfiles" ] && exit 0 + +# Prettify all staged .js files +echo "$jsfiles" | xargs ./node_modules/.bin/prettier --write + +# Add back the modified/prettified files to staging +echo "$jsfiles" | xargs git add + +exit 0 +``` + +### API + +```js +const prettier = require("prettier"); +``` + +#### `prettier.format(source [, options])` + +`format` is used to format text using Prettier. [Options](#options) may be provided to override the defaults. + +```js +prettier.format("foo ( );", { semi: false }); +// -> "foo()" +``` + +#### `prettier.check(source [, options])` + +`check` checks to see if the file has been formatted with Prettier given those options and returns a `Boolean`. +This is similar to the `--list-different` parameter in the CLI and is useful for running Prettier in CI scenarios. + +#### `prettier.formatWithCursor(source [, options])` + +`formatWithCursor` both formats the code, and translates a cursor position from unformatted code to formatted code. +This is useful for editor integrations, to prevent the cursor from moving when code is formatted. + +The `cursorOffset` option should be provided, to specify where the cursor is. + +```js +prettier.formatWithCursor(" 1", { cursorOffset: 2 }); +// -> { formatted: '1;\n', cursorOffset: 1 } +``` + +#### `prettier.resolveConfig([filePath [, options]])` + +`resolveConfig` can be used to resolve configuration for a given source file. +The function optionally accepts an input file path as an argument, which defaults to the current working directory. +A promise is returned which will resolve to: +* An options object, providing a [config file](#configuration-file) was found. +* `null`, if no file was found. + +The promise will be rejected if there was an error parsing the configuration file. + +If `options.useCache` is `false`, all caching will be bypassed. + +```js +const text = fs.readFileSync(filePath, "utf8"); +prettier.resolveConfig(filePath).then(options => { + const formatted = prettier.format(text, options); +}) +``` + +Use `prettier.resolveConfig.sync([filePath [, options]])` if you'd like to use sync version. + +#### `prettier.clearConfigCache()` + +As you repeatedly call `resolveConfig`, the file system structure will be cached for performance. +This function will clear the cache. Generally this is only needed for editor integrations that +know that the file system has changed since the last format took place. + +#### Custom Parser API + +If you need to make modifications to the AST (such as codemods), or you want to provide an alternate parser, you can do so by setting the `parser` option to a function. The function signature of the parser function is: +```js +(text: string, parsers: object, options: object) => AST; +``` + +Prettier's built-in parsers are exposed as properties on the `parsers` argument. + +```js +prettier.format("lodash ( )", { + parser(text, { babylon }) { + const ast = babylon(text); + ast.program.body[0].expression.callee.name = "_"; + return ast; + } +}); +// -> "_();\n" +``` + +The `--parser` CLI option may be a path to a node.js module exporting a parse function. + +### Excluding code from formatting + +A JavaScript comment of `// prettier-ignore` will exclude the next node in the abstract syntax tree from formatting. + +For example: + +```js +matrix( + 1, 0, 0, + 0, 1, 0, + 0, 0, 1 +) + +// prettier-ignore +matrix( + 1, 0, 0, + 0, 1, 0, + 0, 0, 1 +) +``` + +will be transformed to: + +```js +matrix(1, 0, 0, 0, 1, 0, 0, 0, 1); + +// prettier-ignore +matrix( + 1, 0, 0, + 0, 1, 0, + 0, 0, 1 +) +``` + +## Options +Prettier ships with a handful of customizable format options, usable in both the CLI and API. + +### Print Width +Specify the line length that the printer will wrap on. + +> **For readability we recommend against using more than 80 characters:** +> +>In code styleguides, maximum line length rules are often set to 100 or 120. However, when humans write code, they don't strive to reach the maximum number of columns on every line. Developers often use whitespace to break up long lines for readability. In practice, the average line length often ends up well below the maximum. +> +> Prettier, on the other hand, strives to fit the most code into every line. With the print width set to 120, prettier may produce overly compact, or otherwise undesirable code. + +Default | CLI Override | API Override +--------|--------------|------------- +`80` | `--print-width ` | `printWidth: ` + +### Tab Width +Specify the number of spaces per indentation-level. + +Default | CLI Override | API Override +--------|--------------|------------- + `2` | `--tab-width ` | `tabWidth: ` + +### Tabs +Indent lines with tabs instead of spaces + +Default | CLI Override | API Override +--------|--------------|------------- +`false` | `--use-tabs` | `useTabs: ` + +### Semicolons +Print semicolons at the ends of statements. + +Valid options: + + * `true` - Add a semicolon at the end of every statement. + * `false` - Only add semicolons at the beginning of lines that may introduce ASI failures. + +Default | CLI Override | API Override +--------|--------------|------------- +`true` | `--no-semi` | `semi: ` + +### Quotes +Use single quotes instead of double quotes. + +Notes: +* Quotes in JSX will always be double and ignore this setting. +* If the number of quotes outweighs the other quote, the quote which is less used will be used to format the string - Example: `"I'm double quoted"` results in `"I'm double quoted"` and `"This \"example\" is single quoted"` results in `'This "example" is single quoted'`. + +Default | CLI Override | API Override +--------|--------------|------------- +`false` | `--single-quote` | `singleQuote: ` + +### Trailing Commas +Print trailing commas wherever possible when multi-line. (A single-line array, +for example, never gets trailing commas.) + +Valid options: + * `"none"` - No trailing commas. + * `"es5"` - Trailing commas where valid in ES5 (objects, arrays, etc.) + * `"all"` - Trailing commas wherever possible (including function arguments). This requires node 8 or a [transform](https://babeljs.io/docs/plugins/syntax-trailing-function-commas/). + +Default | CLI Override | API Override +--------|--------------|------------- +`"none"` | --trailing-comma | trailingComma: "" + +### Bracket Spacing +Print spaces between brackets in object literals. + +Valid options: + * `true` - Example: `{ foo: bar }`. + * `false` - Example: `{foo: bar}`. + +Default | CLI Override | API Override +--------|--------------|------------- +`true` | `--no-bracket-spacing` | `bracketSpacing: ` + +### JSX Brackets +Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). + +Default | CLI Override | API Override +--------|--------------|------------- +`false` | `--jsx-bracket-same-line` | `jsxBracketSameLine: ` + +### Range +Format only a segment of a file. + +These two options can be used to format code starting and ending at a given character offset (inclusive and exclusive, respectively). The range will extend: +* Backwards to the start of the first line containing the selected statement. +* Forwards to the end of the selected statement. + +Default | CLI Override | API Override +--------|--------------|------------- +`0` | `--range-start `| `rangeStart: ` +`Infinity` | `--range-end ` | `rangeEnd: ` + +### Parser +Specify which parser to use. + +Both the `babylon` and `flow` parsers support the same set of JavaScript features (including Flow). Prettier automatically infers the parser from the input file path, so you shouldn't have to change this setting. + +Built-in parsers: + * [`babylon`](https://github.com/babel/babylon/) + * [`flow`](https://github.com/facebook/flow/tree/master/src/parser) + * [`typescript`](https://github.com/eslint/typescript-eslint-parser) _Since v1.4.0_ + * [`postcss`](https://github.com/postcss/postcss) _Since v1.4.0_ + * [`json`](https://github.com/babel/babylon/tree/f09eb3200f57ea94d51c2a5b1facf2149fb406bf#babylonparseexpressioncode-options) _Since v1.5.0_ + * [`graphql`](https://github.com/graphql/graphql-js/tree/master/src/language) _Since v1.5.0_ + +[Custom parsers](#custom-parser-api) are also supported. _Since v1.5.0_ + +Default | CLI Override | API Override +--------|--------------|------------- +`babylon` | `--parser `
`--parser ./my-parser` | `parser: ""`
`parser: require("./my-parser")` + +### Filepath +Specify the input filepath. This will be used to do parser inference. + +For example, the following will use `postcss` parser: + +```bash +cat foo | prettier --stdin-filepath foo.css +``` + +Default | CLI Override | API Override +--------|--------------|------------- +None | `--stdin-filepath ` | `filepath: ""` + +### Require pragma +Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful +when gradually transitioning large, unformatted codebases to prettier. + +For example, a file with the following as its first comment will be formatted when `--require-pragma` is supplied: + +```js +/** + * @prettier + */ +``` + +or + +```js +/** + * @format + */ +``` + +Default | CLI Override | API Override +--------|--------------|------------- +`false` | `--require-pragma` | `requirePragma: ` + +## Configuration File + +Prettier uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for configuration file support. +This means you can configure prettier via: + +* A `.prettierrc` file, written in YAML or JSON, with optional extensions: `.yaml/.yml/.json/.js`. +* A `prettier.config.js` file that exports an object. +* A `"prettier"` key in your `package.json` file. + +The configuration file will be resolved starting from the location of the file being formatted, +and searching up the file tree until a config file is (or isn't) found. + +The options to the configuration file are the same the [API options](#options). + +### Basic Configuration + +JSON: + +```json +// .prettierrc +{ + "printWidth": 100, + "parser": "flow" +} +``` + +YAML: + +```yaml +# .prettierrc +printWidth: 100 +parser: flow +``` + +### Configuration Overrides + +Prettier borrows eslint's [override format](http://eslint.org/docs/user-guide/configuring#example-configuration). +This allows you to apply configuration to specific files. + +JSON: + +```json +{ + "semi": false, + "overrides": [{ + "files": "*.test.js", + "options": { + "semi": true + } + }] +} +``` + +YAML: + +```yaml +semi: false +overrides: +- files: "*.test.js" + options: + semi: true +``` + +`files` is required for each override, and may be a string or array of strings. +`excludeFiles` may be optionally provided to exclude files for a given rule, and may also be a string or array of strings. + +To get prettier to format its own `.prettierrc` file, you can do: + +```json +{ + "overrides": [{ + "files": ".prettierrc", + "options": { "parser": "json" } + }] +} +``` + +For more information on how to use the CLI to locate a file, see the [CLI](#cli) section. + +### Configuration Schema + +If you'd like a JSON schema to validate your configuration, one is available here: https://www.schemastore.org/prettierrc. + +## Editor Integration + +### Atom + +Atom users can simply install the [prettier-atom](https://github.com/prettier/prettier-atom) package and use +`Ctrl+Alt+F` to format a file (or format on save if enabled). + +### Emacs + +Emacs users should see [this repository](https://github.com/prettier/prettier-emacs) +for on-demand formatting. + +### Vim + +Vim users can simply install either [sbdchd](https://github.com/sbdchd)/[neoformat](https://github.com/sbdchd/neoformat), [w0rp](https://github.com/w0rp)/[ale](https://github.com/w0rp/ale), or [prettier](https://github.com/prettier)/[vim-prettier](https://github.com/prettier/vim-prettier), for more details see [this directory](https://github.com/prettier/prettier/tree/master/editors/vim). + +### Visual Studio Code + +Can be installed using the extension sidebar. Search for `Prettier - JavaScript formatter`. + +Can also be installed using `ext install prettier-vscode`. + +[Check its repository for configuration and shortcuts](https://github.com/prettier/prettier-vscode) + +### Visual Studio + +Install the [JavaScript Prettier extension](https://github.com/madskristensen/JavaScriptPrettier). + +### Sublime Text + +Sublime Text support is available through Package Control and +the [JsPrettier](https://packagecontrol.io/packages/JsPrettier) plug-in. + +### JetBrains WebStorm, PHPStorm, PyCharm... + +See the [WebStorm +guide](https://github.com/jlongster/prettier/tree/master/editors/webstorm/README.md). + +## Language Support + +Prettier attempts to support all JavaScript language features, +including non-standardized ones. By default it uses the +[Babylon](https://github.com/babel/babylon) parser with all language +features enabled, but you can also use the +[Flow](https://github.com/facebook/flow) parser with the +`parser` API or `--parser` CLI [option](#options). + +All of JSX and Flow syntax is supported. In fact, the test suite in +`tests/flow` *is* the entire Flow test suite and they all pass. + +Prettier also supports [TypeScript](https://www.typescriptlang.org/), CSS, [Less](http://lesscss.org/), [SCSS](http://sass-lang.com), [JSON](http://json.org/), and [GraphQL](http://graphql.org/). + +The minimum version of TypeScript supported is 2.1.3 as it introduces the ability to have leading `|` for type definitions which prettier outputs. + +## Related Projects + +- [`eslint-plugin-prettier`](https://github.com/prettier/eslint-plugin-prettier) plugs Prettier into your ESLint workflow +- [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) turns off all ESLint rules that are unnecessary or might conflict with Prettier +- [`prettier-eslint`](https://github.com/prettier/prettier-eslint) +passes `prettier` output to `eslint --fix` +- [`prettier-stylelint`](https://github.com/hugomrdias/prettier-stylelint) +passes `prettier` output to `stylelint --fix` +- [`prettier-standard`](https://github.com/sheerun/prettier-standard) +uses `prettier` and `prettier-eslint` to format code with standard rules +- [`prettier-standard-formatter`](https://github.com/dtinth/prettier-standard-formatter) +passes `prettier` output to `standard --fix` +- [`prettier-miscellaneous`](https://github.com/arijs/prettier-miscellaneous) +`prettier` with a few minor extra options +- [`neutrino-preset-prettier`](https://github.com/SpencerCDixon/neutrino-preset-prettier) allows you to use Prettier as a Neutrino preset +- [`prettier_d`](https://github.com/josephfrazier/prettier_d.js) runs Prettier as a server to avoid Node.js startup delay. It also supports configuration via `.prettierrc`, `package.json`, and `.editorconfig`. +- [`Prettier Bookmarklet`](https://prettier.glitch.me/) provides a bookmarklet and exposes a REST API for Prettier that allows to format CodeMirror editor in your browser +- [`prettier-github`](https://github.com/jgierer12/prettier-github) formats code in GitHub comments +- [`rollup-plugin-prettier`](https://github.com/mjeanroy/rollup-plugin-prettier) allows you to use Prettier with Rollup +- [`markdown-magic-prettier`](https://github.com/camacho/markdown-magic-prettier) allows you to use Prettier to format JS [codeblocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/) in Markdown files via [Markdown Magic](https://github.com/DavidWells/markdown-magic) +- [`tslint-plugin-prettier`](https://github.com/ikatyang/tslint-plugin-prettier) runs Prettier as a TSLint rule and reports differences as individual TSLint issues +- [`tslint-config-prettier`](https://github.com/alexjoverm/tslint-config-prettier) use TSLint with Prettier without any conflict + +## Technical Details + +This printer is a fork of +[recast](https://github.com/benjamn/recast)'s printer with its +algorithm replaced by the one described by Wadler in "[A prettier +printer](http://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf)". +There still may be leftover code from recast that needs to be cleaned +up. + +The basic idea is that the printer takes an AST and returns an +intermediate representation of the output, and the printer uses that +to generate a string. The advantage is that the printer can "measure" +the IR and see if the output is going to fit on a line, and break if +not. + +This means that most of the logic of printing an AST involves +generating an abstract representation of the output involving certain +commands. For example, `concat(["(", line, arg, line ")"])` would +represent a concatenation of opening parens, an argument, and closing +parens. But if that doesn't fit on one line, the printer can break +where `line` is specified. + +More (rough) details can be found in [commands.md](commands.md). + +## Badge + +Show the world you're using *Prettier* → [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) + +```md +[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) +``` + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md). diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/real-world-case.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/real-world-case.md.prettier-snap new file mode 100644 index 000000000000..ee7f8c12ec7a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/real-world-case.md.prettier-snap @@ -0,0 +1,918 @@ +# Prettier + +[![Build Status](https://travis-ci.org/prettier/prettier.svg?branch=master)](https://travis-ci.org/prettier/prettier) +[![Codecov](https://img.shields.io/codecov/c/github/prettier/prettier.svg)](https://codecov.io/gh/prettier/prettier) +[![NPM version](https://img.shields.io/npm/v/prettier.svg)](https://www.npmjs.com/package/prettier) +[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](#badge) + +Prettier is an opinionated code formatter with support for: + +- JavaScript, including [ES2017](https://github.com/tc39/proposals/blob/master/finished-proposals.md) +- [JSX](https://facebook.github.io/jsx/) +- [Flow](https://flow.org/) +- [TypeScript](https://www.typescriptlang.org/) +- CSS, [Less](http://lesscss.org/), and [SCSS](http://sass-lang.com) +- [JSON](http://json.org/) +- [GraphQL](http://graphql.org/) + +It removes all original styling[\*](#styling-footnote) and ensures that all outputted code +conforms to a consistent style. (See this [blog post](http://jlongster.com/A-Prettier-Formatter)) + +
+Table of Contents + + + + + +- [What does Prettier do?](#what-does-prettier-do) +- [Why Prettier?](#why-prettier) + - [Building and enforcing a style guide](#building-and-enforcing-a-style-guide) + - [Helping Newcomers](#helping-newcomers) + - [Writing code](#writing-code) + - [Easy to adopt](#easy-to-adopt) + - [Clean up an existing codebase](#clean-up-an-existing-codebase) + - [Ride the hype train](#ride-the-hype-train) +- [How does it compare to ESLint (or TSLint, stylelint...)?](#how-does-it-compare-to-eslint-or-tslint-stylelint) +- [Usage](#usage) + - [CLI](#cli) + - [ESLint](#eslint) + - [Pre-commit Hook](#pre-commit-hook) + - [API](#api) + - [Excluding code from formatting](#excluding-code-from-formatting) +- [Options](#options) + - [Print Width](#print-width) + - [Tab Width](#tab-width) + - [Tabs](#tabs) + - [Semicolons](#semicolons) + - [Quotes](#quotes) + - [Trailing Commas](#trailing-commas) + - [Bracket Spacing](#bracket-spacing) + - [JSX Brackets](#jsx-brackets) + - [Range](#range) + - [Parser](#parser) + - [Filepath](#filepath) +- [Configuration File](#configuration-file) + - [Basic Configuration](#basic-configuration) + - [Configuration Overrides](#configuration-overrides) + - [Configuration Schema](#configuration-schema) +- [Editor Integration](#editor-integration) + - [Atom](#atom) + - [Emacs](#emacs) + - [Vim](#vim) + - [Visual Studio Code](#visual-studio-code) + - [Visual Studio](#visual-studio) + - [Sublime Text](#sublime-text) + - [JetBrains WebStorm, PHPStorm, PyCharm...](#jetbrains-webstorm-phpstorm-pycharm) +- [Language Support](#language-support) +- [Related Projects](#related-projects) +- [Technical Details](#technical-details) +- [Badge](#badge) +- [Contributing](#contributing) + + + +
+ +--- + +## What does Prettier do? + +Prettier takes your code and reprints it from scratch by taking the line length into account. + +For example, take the following code: + +```js +foo(arg1, arg2, arg3, arg4); +``` + +It fits in a single line so it's going to stay as is. However, we've all run into this situation: + + +```js +foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne()); +``` + +Suddenly our previous format for calling function breaks down because this is too long. Prettier is going to do the painstaking work of reprinting it like that for you: + +```js +foo( + reallyLongArg(), + omgSoManyParameters(), + IShouldRefactorThis(), + isThereSeriouslyAnotherOne() +); +``` + +Prettier enforces a consistent code **style** (i.e. code formatting that won't affect the AST) across your entire codebase because it disregards the original styling[\*](#styling-footnote) by parsing it away and re-printing the parsed AST with its own rules that take the maximum line length +into account, wrapping code when necessary. + +\*_Well actually, some +original styling is preserved when practical—see [empty lines] and [multi-line +objects]._ + +[empty lines]: Rationale.md#empty-lines +[multi-line objects]: Rationale.md#multi-line-objects + +If you want to learn more, these two conference talks are great introductions: + + + +## Why Prettier? + +### Building and enforcing a style guide + +By far the biggest reason for adopting Prettier is to stop all the on-going debates over styles. It is generally accepted that having a common style guide is valuable for a project and team but getting there is a very painful and unrewarding process. People get very emotional around particular ways of writing code and nobody likes spending time writing and receiving nits. + +- “We want to free mental threads and end discussions around style. While sometimes fruitful, these discussions are for the most part wasteful.” +- “Literally had an engineer go through a huge effort of cleaning up all of our code because we were debating ternary style for the longest time and were inconsistent about it. It was dumb, but it was a weird on-going "great debate" that wasted lots of little back and forth bits. It's far easier for us all to agree now: just run Prettier, and go with that style.” +- “Getting tired telling people how to style their product code.” +- “Our top reason was to stop wasting our time debating style nits.” +- “Having a githook set up has reduced the amount of style issues in PRs that result in broken builds due to ESLint rules or things I have to nit-pick or clean up later.” +- “I don't want anybody to nitpick any other person ever again.” +- “It reminds me of how Steve Jobs used to wear the same clothes every day because he has a million decisions to make and he didn't want to be bothered to make trivial ones like picking out clothes. I think Prettier is like that.” + +### Helping Newcomers + +Prettier is usually introduced by people with experience in the current codebase and JavaScript but the people that disproportionally benefit from it are newcomers to the codebase. One may think that it's only useful for people with very limited programming experience, but we've seen it quicken the ramp up time from experienced engineers joining the company, as they likely used a different coding style before, and developers coming from a different programming language. + +- “My motivations for using Prettier are: appearing that I know how to write JavaScript well.” +- “I always put spaces in the wrong place, now I don't have to worry about it anymore.” +- “When you're a beginner you're making a lot of mistakes caused by the syntax. Thanks to Prettier, you can reduce these mistakes and save a lot of time to focus on what really matters.” +- “As a teacher, I will also tell to my students to install Prettier to help them to learn the JS syntax and have readable files.” + +### Writing code + +What usually happens once people are using Prettier is that they realize that they actually spend a lot of time and mental energy formatting their code. With Prettier editor integration, you can just press that magic key binding and poof, the code is formatted. This is an eye opening experience if anything else. + +- “I want to write code. Not spend cycles on formatting.” +- “It removed 5% that sucks in our daily life - aka formatting” +- “We're in 2017 and it's still painful to break a call into multiple lines when you happen to add an argument that makes it go over the 80 columns limit :(“ + +### Easy to adopt + +We've worked very hard to use the least controversial coding styles, went through many rounds of fixing all the edge cases and polished the getting started experience. When you're ready to push Prettier into your codebase, not only should it be painless for you to do it technically but the newly formatted codebase should not generate major controversy and be accepted painlessly by your co-workers. + +- “It's low overhead. We were able to throw Prettier at very different kinds of repos without much work.” +- “It's been mostly bug free. Had there been major styling issues during the course of implementation we would have been wary about throwing this at our JS codebase. I'm happy to say that's not the case.” +- “Everyone runs it as part of their pre commit scripts, a couple of us use the editor on save extensions as well.” +- “It's fast, against one of our larger JS codebases we were able to run Prettier in under 13 seconds.” +- “The biggest benefit for Prettier for us was being able to format the entire code base at once.” + +### Clean up an existing codebase + +Since coming up with a coding style and enforcing it is a big undertaking, it often slips through the cracks and you are left working on inconsistent codebases. Running Prettier in this case is a quick win, the codebase is now uniform and easier to read without spending hardly any time. + +- “Take a look at the code :) I just need to restore sanity.” +- “We inherited a ~2000 module ES6 code base, developed by 20 different developers over 18 months, in a global team. Felt like such a win without much research.” + +### Ride the hype train + +Purely technical aspects of the projects aren't the only thing people look into when choosing to adopt Prettier. Who built and uses it and how quickly it spreads through the community has a non-trivial impact. + +- “The amazing thing, for me, is: 1) Announced 2 months ago. 2) Already adopted by, it seems, every major JS project. 3) 7000 stars, 100,000 npm downloads/mo” +- “Was built by the same people as React & React Native.” +- “I like to be part of the hot new things.” +- “Because soon enough people are gonna ask for it.” + +A few of the [many projects](https://www.npmjs.com/browse/depended/prettier) using Prettier: + + + + + + + + + + + + +

React
React

Jest
Jest

Yarn
Yarn

Babel
Babel

Zeit
Zeit

Webpack-cli
Webpack-cli

+ +## How does it compare to ESLint (or TSLint, stylelint...)? + +Linters have two categories of rules: + +**Formatting rules**: eg: [max-len](http://eslint.org/docs/rules/max-len), [no-mixed-spaces-and-tabs](http://eslint.org/docs/rules/no-mixed-spaces-and-tabs), [keyword-spacing](http://eslint.org/docs/rules/keyword-spacing), [comma-style](http://eslint.org/docs/rules/comma-style)... + +Prettier alleviates the need for this whole category of rules! Prettier is going to reprint the entire program from scratch in a consistent way, so it's not possible for the programmer to make a mistake there anymore :) + +**Code-quality rules**: eg [no-unused-vars](http://eslint.org/docs/rules/no-unused-vars), [no-extra-bind](http://eslint.org/docs/rules/no-extra-bind), [no-implicit-globals](http://eslint.org/docs/rules/no-implicit-globals), [prefer-promise-reject-errors](http://eslint.org/docs/rules/prefer-promise-reject-errors)... + +Prettier does nothing to help with those kind of rules. They are also the most important ones provided by linters as they are likely to catch real bugs with your code! + +## Usage + +Install: + +``` +yarn add prettier --dev --exact +``` + +You can install it globally if you like: + +``` +yarn global add prettier +``` + +_We're using `yarn` but you can use `npm` if you like:_ + +``` +npm install --save-dev --save-exact prettier +# or globally +npm install --global prettier +``` + +> We recommend pinning an exact version of prettier in your `package.json` +> as we introduce stylistic changes in patch releases. + +### CLI + +Run Prettier through the CLI with this script. Run it without any +arguments to see the [options](#options). + +To format a file in-place, use `--write`. You may want to consider +committing your code before doing that, just in case. + +```bash +prettier [opts] [filename ...] +``` + +In practice, this may look something like: + +```bash +prettier --single-quote --trailing-comma es5 --write "{app,__{tests,mocks}__}/**/*.js" +``` + +Don't forget the quotes around the globs! The quotes make sure that Prettier +expands the globs rather than your shell, for cross-platform usage. +The [glob syntax from the glob module](https://github.com/isaacs/node-glob/blob/master/README.md#glob-primer) +is used. + +#### `--debug-check` + +If you're worried that Prettier will change the correctness of your code, add `--debug-check` to the command. +This will cause Prettier to print an error message if it detects that code correctness might have changed. +Note that `--write` cannot be used with `--debug-check`. + +#### `--find-config-path` and `--config` + +If you are repeatedly formatting individual files with `prettier`, you will incur a small performance cost +when prettier attempts to look up a [configuration file](#configuration-file). In order to skip this, you may +ask prettier to find the config file once, and re-use it later on. + +```bash +prettier --find-config-path ./my/file.js +./my/.prettierrc +``` + +This will provide you with a path to the configuration file, which you can pass to `--config`: + +```bash +prettier --config ./my/.prettierrc --write ./my/file.js +``` + +You can also use `--config` if your configuration file lives somewhere where prettier cannot find it, +such as a `config/` directory. + +If you don't have a configuration file, or want to ignore it if it does exist, +you can pass `--no-config` instead. + +#### `--ignore-path` + +Path to a file containing patterns that describe files to ignore. By default, prettier looks for `./.prettierignore`. + +#### `--require-pragma` + +Require a special comment, called a pragma, to be present in the file's first docblock comment in order for prettier to format it. + +```js +/** + * @prettier + */ +``` + +Valid pragmas are `@prettier` and `@format`. + +#### `--list-different` + +Another useful flag is `--list-different` (or `-l`) which prints the filenames of files that are different from Prettier formatting. If there are differences the script errors out, which is useful in a CI scenario. + +```bash +prettier --single-quote --list-different "src/**/*.js" +``` + +#### `--no-config` + +Do not look for a configuration file. The default settings will be used. + +#### `--config-precedence` + +Defines how config file should be evaluated in combination of CLI options. + +**cli-override (default)** + +CLI options take precedence over config file + +**file-override** + +Config file take precedence over CLI options + +**prefer-file** + +If a config file is found will evaluate it and ignore other CLI options. If no config file is found CLI options will evaluate as normal. + +This option adds support to editor integrations where users define their default configuration but want to respect project specific configuration. + +#### `--with-node-modules` + +Prettier CLI will ignore files located in `node_modules` directory. To opt-out from this behavior use `--with-node-modules` flag. + +#### `--write` + +This rewrites all processed files in place. This is comparable to the `eslint --fix` workflow. + +### ESLint + +If you are using ESLint, integrating Prettier to your workflow is straightforward: + +Just add Prettier as an ESLint rule using [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier). + +```js +yarn add --dev prettier eslint-plugin-prettier + +// .eslintrc.json +{ + "plugins": [ + "prettier" + ], + "rules": { + "prettier/prettier": "error" + } +} +``` + +We also recommend that you use [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) to disable all the existing formatting rules. It's a one liner that can be added on-top of any existing ESLint configuration. + +``` +$ yarn add --dev eslint-config-prettier +``` + +.eslintrc.json: + +```json +{ + "extends": [ + "prettier" + ] +} +``` + +### Pre-commit Hook + +You can use Prettier with a pre-commit tool. This can re-format your files that are marked as "staged" via `git add` before you commit. + +##### Option 1. [lint-staged](https://github.com/okonet/lint-staged) + +Install it along with [husky](https://github.com/typicode/husky): + +```bash +yarn add lint-staged husky --dev +``` + +and add this config to your `package.json`: + +```json +{ + "scripts": { + "precommit": "lint-staged" + }, + "lint-staged": { + "*.{js,json,css}": [ + "prettier --write", + "git add" + ] + } +} +``` + +There is a limitation where if you stage specific lines this approach will stage the whole file after regardless. See this [issue](https://github.com/okonet/lint-staged/issues/62) for more info. + +See https://github.com/okonet/lint-staged#configuration for more details about how you can configure lint-staged. + +##### Option 2. [pre-commit](https://github.com/pre-commit/pre-commit) + +Copy the following config into your `.pre-commit-config.yaml` file: + +```yaml + + - repo: https://github.com/prettier/prettier + sha: '' # Use the sha or tag you want to point at + hooks: + - id: prettier + +``` + +Find more info from [here](https://pre-commit.com). + +##### Option 3. bash script + +Alternately you can save this script as `.git/hooks/pre-commit` and give it execute permission: + +```bash +#!/bin/sh +jsfiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.jsx\?$' | tr '\n' ' ') +[ -z "$jsfiles" ] && exit 0 + +# Prettify all staged .js files +echo "$jsfiles" | xargs ./node_modules/.bin/prettier --write + +# Add back the modified/prettified files to staging +echo "$jsfiles" | xargs git add + +exit 0 +``` + +### API + +```js +const prettier = require("prettier"); +``` + +#### `prettier.format(source [, options])` + +`format` is used to format text using Prettier. [Options](#options) may be provided to override the defaults. + +```js +prettier.format("foo ( );", { semi: false }); +// -> "foo()" +``` + +#### `prettier.check(source [, options])` + +`check` checks to see if the file has been formatted with Prettier given those options and returns a `Boolean`. +This is similar to the `--list-different` parameter in the CLI and is useful for running Prettier in CI scenarios. + +#### `prettier.formatWithCursor(source [, options])` + +`formatWithCursor` both formats the code, and translates a cursor position from unformatted code to formatted code. +This is useful for editor integrations, to prevent the cursor from moving when code is formatted. + +The `cursorOffset` option should be provided, to specify where the cursor is. + +```js +prettier.formatWithCursor(" 1", { cursorOffset: 2 }); +// -> { formatted: '1;\n', cursorOffset: 1 } +``` + +#### `prettier.resolveConfig([filePath [, options]])` + +`resolveConfig` can be used to resolve configuration for a given source file. +The function optionally accepts an input file path as an argument, which defaults to the current working directory. +A promise is returned which will resolve to: + +- An options object, providing a [config file](#configuration-file) was found. +- `null`, if no file was found. + +The promise will be rejected if there was an error parsing the configuration file. + +If `options.useCache` is `false`, all caching will be bypassed. + +```js +const text = fs.readFileSync(filePath, "utf8"); +prettier.resolveConfig(filePath).then(options => { + const formatted = prettier.format(text, options); +}) +``` + +Use `prettier.resolveConfig.sync([filePath [, options]])` if you'd like to use sync version. + +#### `prettier.clearConfigCache()` + +As you repeatedly call `resolveConfig`, the file system structure will be cached for performance. +This function will clear the cache. Generally this is only needed for editor integrations that +know that the file system has changed since the last format took place. + +#### Custom Parser API + +If you need to make modifications to the AST (such as codemods), or you want to provide an alternate parser, you can do so by setting the `parser` option to a function. The function signature of the parser function is: + +```js +(text: string, parsers: object, options: object) => AST; +``` + +Prettier's built-in parsers are exposed as properties on the `parsers` argument. + +```js +prettier.format("lodash ( )", { + parser(text, { babylon }) { + const ast = babylon(text); + ast.program.body[0].expression.callee.name = "_"; + return ast; + } +}); +// -> "_();\n" +``` + +The `--parser` CLI option may be a path to a node.js module exporting a parse function. + +### Excluding code from formatting + +A JavaScript comment of `// prettier-ignore` will exclude the next node in the abstract syntax tree from formatting. + +For example: + +```js +matrix( + 1, 0, 0, + 0, 1, 0, + 0, 0, 1 +) + +// prettier-ignore +matrix( + 1, 0, 0, + 0, 1, 0, + 0, 0, 1 +) +``` + +will be transformed to: + +```js +matrix(1, 0, 0, 0, 1, 0, 0, 0, 1); + +// prettier-ignore +matrix( + 1, 0, 0, + 0, 1, 0, + 0, 0, 1 +) +``` + +## Options + +Prettier ships with a handful of customizable format options, usable in both the CLI and API. + +### Print Width + +Specify the line length that the printer will wrap on. + +> **For readability we recommend against using more than 80 characters:** +> +> In code styleguides, maximum line length rules are often set to 100 or 120. However, when humans write code, they don't strive to reach the maximum number of columns on every line. Developers often use whitespace to break up long lines for readability. In practice, the average line length often ends up well below the maximum. +> +> Prettier, on the other hand, strives to fit the most code into every line. With the print width set to 120, prettier may produce overly compact, or otherwise undesirable code. + +| Default | CLI Override | API Override | +| ------- | --------------------- | ------------------- | +| `80` | `--print-width ` | `printWidth: ` | + +### Tab Width + +Specify the number of spaces per indentation-level. + +| Default | CLI Override | API Override | +| ------- | ------------------- | ----------------- | +| `2` | `--tab-width ` | `tabWidth: ` | + +### Tabs + +Indent lines with tabs instead of spaces + +| Default | CLI Override | API Override | +| ------- | ------------ | ----------------- | +| `false` | `--use-tabs` | `useTabs: ` | + +### Semicolons + +Print semicolons at the ends of statements. + +Valid options: + +- `true` - Add a semicolon at the end of every statement. +- `false` - Only add semicolons at the beginning of lines that may introduce ASI failures. + +| Default | CLI Override | API Override | +| ------- | ------------ | -------------- | +| `true` | `--no-semi` | `semi: ` | + +### Quotes + +Use single quotes instead of double quotes. + +Notes: + +- Quotes in JSX will always be double and ignore this setting. +- If the number of quotes outweighs the other quote, the quote which is less used will be used to format the string - Example: `"I'm double quoted"` results in `"I'm double quoted"` and `"This \"example\" is single quoted"` results in `'This "example" is single quoted'`. + +| Default | CLI Override | API Override | +| ------- | ---------------- | --------------------- | +| `false` | `--single-quote` | `singleQuote: ` | + +### Trailing Commas + +Print trailing commas wherever possible when multi-line. (A single-line array, +for example, never gets trailing commas.) + +Valid options: + +- `"none"` - No trailing commas. +- `"es5"` - Trailing commas where valid in ES5 (objects, arrays, etc.) +- `"all"` - Trailing commas wherever possible (including function arguments). This requires node 8 or a [transform](https://babeljs.io/docs/plugins/syntax-trailing-function-commas/). + +| Default | CLI Override | API Override | +| -------- | ------------------------------------------------------ | ------------------------------------------------------ | +| `"none"` | --trailing-comma | trailingComma: "" | + +### Bracket Spacing + +Print spaces between brackets in object literals. + +Valid options: + +- `true` - Example: `{ foo: bar }`. +- `false` - Example: `{foo: bar}`. + +| Default | CLI Override | API Override | +| ------- | ---------------------- | ------------------------ | +| `true` | `--no-bracket-spacing` | `bracketSpacing: ` | + +### JSX Brackets + +Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). + +| Default | CLI Override | API Override | +| ------- | ------------------------- | ---------------------------- | +| `false` | `--jsx-bracket-same-line` | `jsxBracketSameLine: ` | + +### Range + +Format only a segment of a file. + +These two options can be used to format code starting and ending at a given character offset (inclusive and exclusive, respectively). The range will extend: + +- Backwards to the start of the first line containing the selected statement. +- Forwards to the end of the selected statement. + +| Default | CLI Override | API Override | +| ---------- | --------------------- | ------------------- | +| `0` | `--range-start ` | `rangeStart: ` | +| `Infinity` | `--range-end ` | `rangeEnd: ` | + +### Parser + +Specify which parser to use. + +Both the `babylon` and `flow` parsers support the same set of JavaScript features (including Flow). Prettier automatically infers the parser from the input file path, so you shouldn't have to change this setting. + +Built-in parsers: + +- [`babylon`](https://github.com/babel/babylon/) +- [`flow`](https://github.com/facebook/flow/tree/master/src/parser) +- [`typescript`](https://github.com/eslint/typescript-eslint-parser) _Since v1.4.0_ +- [`postcss`](https://github.com/postcss/postcss) _Since v1.4.0_ +- [`json`](https://github.com/babel/babylon/tree/f09eb3200f57ea94d51c2a5b1facf2149fb406bf#babylonparseexpressioncode-options) _Since v1.5.0_ +- [`graphql`](https://github.com/graphql/graphql-js/tree/master/src/language) _Since v1.5.0_ + +[Custom parsers](#custom-parser-api) are also supported. _Since v1.5.0_ + +| Default | CLI Override | API Override | +| --------- | ----------------------------------------------- | ---------------------------------------------------------- | +| `babylon` | `--parser `
`--parser ./my-parser` | `parser: ""`
`parser: require("./my-parser")` | + +### Filepath + +Specify the input filepath. This will be used to do parser inference. + +For example, the following will use `postcss` parser: + +```bash +cat foo | prettier --stdin-filepath foo.css +``` + +| Default | CLI Override | API Override | +| ------- | --------------------------- | ---------------------- | +| None | `--stdin-filepath ` | `filepath: ""` | + +### Require pragma + +Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful +when gradually transitioning large, unformatted codebases to prettier. + +For example, a file with the following as its first comment will be formatted when `--require-pragma` is supplied: + +```js +/** + * @prettier + */ +``` + +or + +```js +/** + * @format + */ +``` + +| Default | CLI Override | API Override | +| ------- | ------------------ | ----------------------- | +| `false` | `--require-pragma` | `requirePragma: ` | + +## Configuration File + +Prettier uses [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) for configuration file support. +This means you can configure prettier via: + +- A `.prettierrc` file, written in YAML or JSON, with optional extensions: `.yaml/.yml/.json/.js`. +- A `prettier.config.js` file that exports an object. +- A `"prettier"` key in your `package.json` file. + +The configuration file will be resolved starting from the location of the file being formatted, +and searching up the file tree until a config file is (or isn't) found. + +The options to the configuration file are the same the [API options](#options). + +### Basic Configuration + +JSON: + +```json +// .prettierrc +{ + "printWidth": 100, + "parser": "flow" +} +``` + +YAML: + +```yaml +# .prettierrc +printWidth: 100 +parser: flow +``` + +### Configuration Overrides + +Prettier borrows eslint's [override format](http://eslint.org/docs/user-guide/configuring#example-configuration). +This allows you to apply configuration to specific files. + +JSON: + +```json +{ + "semi": false, + "overrides": [{ + "files": "*.test.js", + "options": { + "semi": true + } + }] +} +``` + +YAML: + +```yaml +semi: false +overrides: +- files: "*.test.js" + options: + semi: true +``` + +`files` is required for each override, and may be a string or array of strings. +`excludeFiles` may be optionally provided to exclude files for a given rule, and may also be a string or array of strings. + +To get prettier to format its own `.prettierrc` file, you can do: + +```json +{ + "overrides": [{ + "files": ".prettierrc", + "options": { "parser": "json" } + }] +} +``` + +For more information on how to use the CLI to locate a file, see the [CLI](#cli) section. + +### Configuration Schema + +If you'd like a JSON schema to validate your configuration, one is available here: https://www.schemastore.org/prettierrc. + +## Editor Integration + +### Atom + +Atom users can simply install the [prettier-atom](https://github.com/prettier/prettier-atom) package and use +`Ctrl+Alt+F` to format a file (or format on save if enabled). + +### Emacs + +Emacs users should see [this repository](https://github.com/prettier/prettier-emacs) +for on-demand formatting. + +### Vim + +Vim users can simply install either [sbdchd](https://github.com/sbdchd)/[neoformat](https://github.com/sbdchd/neoformat), [w0rp](https://github.com/w0rp)/[ale](https://github.com/w0rp/ale), or [prettier](https://github.com/prettier)/[vim-prettier](https://github.com/prettier/vim-prettier), for more details see [this directory](https://github.com/prettier/prettier/tree/master/editors/vim). + +### Visual Studio Code + +Can be installed using the extension sidebar. Search for `Prettier - JavaScript formatter`. + +Can also be installed using `ext install prettier-vscode`. + +[Check its repository for configuration and shortcuts](https://github.com/prettier/prettier-vscode) + +### Visual Studio + +Install the [JavaScript Prettier extension](https://github.com/madskristensen/JavaScriptPrettier). + +### Sublime Text + +Sublime Text support is available through Package Control and +the [JsPrettier](https://packagecontrol.io/packages/JsPrettier) plug-in. + +### JetBrains WebStorm, PHPStorm, PyCharm... + +See the [WebStorm +guide](https://github.com/jlongster/prettier/tree/master/editors/webstorm/README.md). + +## Language Support + +Prettier attempts to support all JavaScript language features, +including non-standardized ones. By default it uses the +[Babylon](https://github.com/babel/babylon) parser with all language +features enabled, but you can also use the +[Flow](https://github.com/facebook/flow) parser with the +`parser` API or `--parser` CLI [option](#options). + +All of JSX and Flow syntax is supported. In fact, the test suite in +`tests/flow` _is_ the entire Flow test suite and they all pass. + +Prettier also supports [TypeScript](https://www.typescriptlang.org/), CSS, [Less](http://lesscss.org/), [SCSS](http://sass-lang.com), [JSON](http://json.org/), and [GraphQL](http://graphql.org/). + +The minimum version of TypeScript supported is 2.1.3 as it introduces the ability to have leading `|` for type definitions which prettier outputs. + +## Related Projects + +- [`eslint-plugin-prettier`](https://github.com/prettier/eslint-plugin-prettier) plugs Prettier into your ESLint workflow +- [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) turns off all ESLint rules that are unnecessary or might conflict with Prettier +- [`prettier-eslint`](https://github.com/prettier/prettier-eslint) + passes `prettier` output to `eslint --fix` +- [`prettier-stylelint`](https://github.com/hugomrdias/prettier-stylelint) + passes `prettier` output to `stylelint --fix` +- [`prettier-standard`](https://github.com/sheerun/prettier-standard) + uses `prettier` and `prettier-eslint` to format code with standard rules +- [`prettier-standard-formatter`](https://github.com/dtinth/prettier-standard-formatter) + passes `prettier` output to `standard --fix` +- [`prettier-miscellaneous`](https://github.com/arijs/prettier-miscellaneous) + `prettier` with a few minor extra options +- [`neutrino-preset-prettier`](https://github.com/SpencerCDixon/neutrino-preset-prettier) allows you to use Prettier as a Neutrino preset +- [`prettier_d`](https://github.com/josephfrazier/prettier_d.js) runs Prettier as a server to avoid Node.js startup delay. It also supports configuration via `.prettierrc`, `package.json`, and `.editorconfig`. +- [`Prettier Bookmarklet`](https://prettier.glitch.me/) provides a bookmarklet and exposes a REST API for Prettier that allows to format CodeMirror editor in your browser +- [`prettier-github`](https://github.com/jgierer12/prettier-github) formats code in GitHub comments +- [`rollup-plugin-prettier`](https://github.com/mjeanroy/rollup-plugin-prettier) allows you to use Prettier with Rollup +- [`markdown-magic-prettier`](https://github.com/camacho/markdown-magic-prettier) allows you to use Prettier to format JS [codeblocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/) in Markdown files via [Markdown Magic](https://github.com/DavidWells/markdown-magic) +- [`tslint-plugin-prettier`](https://github.com/ikatyang/tslint-plugin-prettier) runs Prettier as a TSLint rule and reports differences as individual TSLint issues +- [`tslint-config-prettier`](https://github.com/alexjoverm/tslint-config-prettier) use TSLint with Prettier without any conflict + +## Technical Details + +This printer is a fork of +[recast](https://github.com/benjamn/recast)'s printer with its +algorithm replaced by the one described by Wadler in "[A prettier +printer](http://homepages.inf.ed.ac.uk/wadler/papers/prettier/prettier.pdf)". +There still may be leftover code from recast that needs to be cleaned +up. + +The basic idea is that the printer takes an AST and returns an +intermediate representation of the output, and the printer uses that +to generate a string. The advantage is that the printer can "measure" +the IR and see if the output is going to fit on a line, and break if +not. + +This means that most of the logic of printing an AST involves +generating an abstract representation of the output involving certain +commands. For example, `concat(["(", line, arg, line ")"])` would +represent a concatenation of opening parens, an argument, and closing +parens. But if that doesn't fit on one line, the printer can break +where `line` is specified. + +More (rough) details can be found in [commands.md](commands.md). + +## Badge + +Show the world you're using _Prettier_ → [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) + +```md +[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) +``` + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md). diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/test-case.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/test-case.md new file mode 100644 index 000000000000..1b328acbe763 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/test-case.md @@ -0,0 +1,205 @@ +[View raw (TEST.md)](https://raw.github.com/adamschwartz/github-markdown-kitchen-sink/master/README.md) + +This is a paragraph. + + This is a paragraph. + + + +Header 1 +======== + +Header 2 +-------- + + Header 1 + ======== + + Header 2 + -------- + + + +# Header 1 +## Header 2 +### Header 3 +#### Header 4 +##### Header 5 +###### Header 6 + + # Header 1 + ## Header 2 + ### Header 3 + #### Header 4 + ##### Header 5 + ###### Header 6 + + + +# Header 1 # +## Header 2 ## +### Header 3 ### +#### Header 4 #### +##### Header 5 ##### +###### Header 6 ###### + + # Header 1 # + ## Header 2 ## + ### Header 3 ### + #### Header 4 #### + ##### Header 5 ##### + ###### Header 6 ###### + + + +> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. + + > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. + + + +> ## This is a header. +> 1. This is the first list item. +> 2. This is the second list item. +> +> Here's some example code: +> +> Markdown.generate(); + + > ## This is a header. + > 1. This is the first list item. + > 2. This is the second list item. + > + > Here's some example code: + > + > Markdown.generate(); + + + + +- Red +- Green +- Blue + + ++ Red ++ Green ++ Blue + + +* Red +* Green +* Blue + + +```markdown +- Red +- Green +- Blue + ++ Red ++ Green ++ Blue + +* Red +* Green +* Blue +``` + + + +1. Buy flour and salt +1. Mix together with water +1. Bake + +```markdown +1. Buy flour and salt +1. Mix together with water +1. Bake +``` + + + +Paragraph: + + Code + + + + Paragraph: + + Code + + + +* * * + +*** + +***** + +- - - + +--------------------------------------- + + * * * + + *** + + ***** + + - - - + + --------------------------------------- + + + +This is [an example](http://example.com "Example") link. + +[This link](http://example.com) has no title attr. + +These is [an] [example] of two shortcut reference-style links. + +This is [an example][id] reference-style link. + +[id]: http://example.com "Optional Title" + + This is [an example](http://example.com "Example") link. + + [This link](http://example.com) has no title attr. + + These is [an] [example] of two shortcut reference-style links. + + This is [an example][id] reference-style link. + + [id]: http://example.com "Optional Title" + + + +*single asterisks* + +_single underscores_ + +**double asterisks** + +__double underscores__ + + *single asterisks* + + _single underscores_ + + **double asterisks** + + __double underscores__ + + + +This paragraph has some `code` in it. + + This paragraph has some `code` in it. + + + +![Alt Text](http://placehold.it/200x50 "Image Title") + + ![Alt Text](http://placehold.it/200x50 "Image Title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/test-case.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/test-case.md.prettier-snap new file mode 100644 index 000000000000..8c258d6d2d86 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/markdown/test-case.md.prettier-snap @@ -0,0 +1,184 @@ +[View raw (TEST.md)](https://raw.github.com/adamschwartz/github-markdown-kitchen-sink/master/README.md) + +This is a paragraph. + + This is a paragraph. + +# Header 1 + +## Header 2 + + Header 1 + ======== + + Header 2 + -------- + +# Header 1 + +## Header 2 + +### Header 3 + +#### Header 4 + +##### Header 5 + +###### Header 6 + + # Header 1 + ## Header 2 + ### Header 3 + #### Header 4 + ##### Header 5 + ###### Header 6 + +# Header 1 + +## Header 2 + +### Header 3 + +#### Header 4 + +##### Header 5 + +###### Header 6 + + # Header 1 # + ## Header 2 ## + ### Header 3 ### + #### Header 4 #### + ##### Header 5 ##### + ###### Header 6 ###### + +> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. + + > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. + +> ## This is a header. +> +> 1. This is the first list item. +> 2. This is the second list item. +> +> Here's some example code: +> +> Markdown.generate(); + + > ## This is a header. + > 1. This is the first list item. + > 2. This is the second list item. + > + > Here's some example code: + > + > Markdown.generate(); + +- Red +- Green +- Blue + +* Red +* Green +* Blue + +- Red +- Green +- Blue + +```markdown +- Red +- Green +- Blue + ++ Red ++ Green ++ Blue + +* Red +* Green +* Blue +``` + +1. Buy flour and salt +1. Mix together with water +1. Bake + +```markdown +1. Buy flour and salt +1. Mix together with water +1. Bake +``` + +Paragraph: + + Code + + + + Paragraph: + + Code + +--- + +--- + +--- + +--- + +--- + + * * * + + *** + + ***** + + - - - + + --------------------------------------- + +This is [an example](http://example.com "Example") link. + +[This link](http://example.com) has no title attr. + +These is [an] [example] of two shortcut reference-style links. + +This is [an example][id] reference-style link. + +[id]: http://example.com "Optional Title" + + This is [an example](http://example.com "Example") link. + + [This link](http://example.com) has no title attr. + + These is [an] [example] of two shortcut reference-style links. + + This is [an example][id] reference-style link. + + [id]: http://example.com "Optional Title" + +_single asterisks_ + +_single underscores_ + +**double asterisks** + +**double underscores** + + *single asterisks* + + _single underscores_ + + **double asterisks** + + __double underscores__ + +This paragraph has some `code` in it. + + This paragraph has some `code` in it. + +![Alt Text](http://placehold.it/200x50 "Image Title") + + ![Alt Text](http://placehold.it/200x50 "Image Title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/dollar-sign.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/dollar-sign.md new file mode 100644 index 000000000000..f26d1c2356fc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/dollar-sign.md @@ -0,0 +1,7 @@ +$ + +\$ + +\\$ + +\\\$ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/dollar-sign.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/dollar-sign.md.prettier-snap new file mode 100644 index 000000000000..f26d1c2356fc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/dollar-sign.md.prettier-snap @@ -0,0 +1,7 @@ +$ + +\$ + +\\$ + +\\\$ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/empty-block.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/empty-block.md new file mode 100644 index 000000000000..c0fb62790fe7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/empty-block.md @@ -0,0 +1,2 @@ +$$ +$$ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/empty-block.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/empty-block.md.prettier-snap new file mode 100644 index 000000000000..c0fb62790fe7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/empty-block.md.prettier-snap @@ -0,0 +1,2 @@ +$$ +$$ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/math-like.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/math-like.md new file mode 100644 index 000000000000..95e606e37b68 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/math-like.md @@ -0,0 +1,3 @@ +$10 - $20 + +Paragraph with $14 million. But if more $dollars on the same line... diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/math-like.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/math-like.md.prettier-snap new file mode 100644 index 000000000000..2f9979133e73 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/math-like.md.prettier-snap @@ -0,0 +1,3 @@ +$10 - $20 + +Paragraph with $14 million. But if more $dollars on the same line... diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/remark-math.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/remark-math.md new file mode 100644 index 000000000000..dbf1828d8192 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/remark-math.md @@ -0,0 +1,84 @@ + + +$$ +\beta+\gamma +$$ + +--- + +$\alpha\$ + +--- + +\$\alpha\$ + +--- + +\\$\alpha$ + +--- + +`$`\alpha$ + +--- + +$\alpha`$` foo + +--- + +$`\alpha`$ + +--- + +$\alpha\$$ + +--- + +$$ +\alpha\$ +$$ + +--- + +tango +$$ +\alpha +$$ + +--- + +$$\\alpha$$ + +--- + +$$\alpha$$ +$$ +\alpha\beta +$$ + +--- + +> $$ +> \alpha\beta +> $$ + +--- + + $$$ + \alpha + $$$ + +--- + +$$ must +\alpha +$$ + +--- + +$$ +\alpha +$$ +``` +code fence +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/remark-math.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/remark-math.md.prettier-snap new file mode 100644 index 000000000000..e8f4a159c2b9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/math/remark-math.md.prettier-snap @@ -0,0 +1,88 @@ + + +$$ +\beta+\gamma +$$ + +--- + +$\alpha\$ + +--- + +\$\alpha\$ + +--- + +\\$\alpha$ + +--- + +`$`\alpha$ + +--- + +$\alpha`$` foo + +--- + +$`\alpha`$ + +--- + +$\alpha\$$ + +--- + +$$ +\alpha\$ +$$ + +--- + +tango + +$$ +\alpha +$$ + +--- + +$$\\alpha$$ + +--- + +$$\alpha$$ + +$$ +\alpha\beta +$$ + +--- + +> $$ +> \alpha\beta +> $$ + +--- + +$$ + \alpha +$$ + +--- + +$$ +must +\alpha +$$ + +--- + +$$ +\alpha +$$ + +``` +code fence +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-css/css-comment.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-css/css-comment.md new file mode 100644 index 000000000000..59a3168a9326 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-css/css-comment.md @@ -0,0 +1,24 @@ +```pcss +.Avatar { + /* ... */ + + &__image { + /* ... */ + + @container (width > 100px) { + /* + Change some styles on the image element when the container is + wider than 100px + */ + } + } + + @container (aspect-ratio > 3) { + /* Change styles on the avatar itself, when the aspect-ratio is grater than 3 */ + } + + @container (width > 100px) and (height > 100px) { + /* ... */ + } +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-css/css-comment.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-css/css-comment.md.prettier-snap new file mode 100644 index 000000000000..59a3168a9326 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-css/css-comment.md.prettier-snap @@ -0,0 +1,24 @@ +```pcss +.Avatar { + /* ... */ + + &__image { + /* ... */ + + @container (width > 100px) { + /* + Change some styles on the image element when the container is + wider than 100px + */ + } + } + + @container (aspect-ratio > 3) { + /* Change styles on the avatar itself, when the aspect-ratio is grater than 3 */ + } + + @container (width > 100px) and (height > 100px) { + /* ... */ + } +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/9734.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/9734.md new file mode 100644 index 000000000000..d57da526ca89 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/9734.md @@ -0,0 +1,49 @@ +Markdown + +```js +"test" +``` + +```js +'test' +``` + +```js +`test` +``` + +```js +false +``` + +```js +true +``` + +```js +null +``` + +```js +[] +``` + +```js +{} +``` + +```js +5 +``` + +```js +Infinity +``` + +```js +NaN +``` + +```js +undefined +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/9734.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/9734.md.prettier-snap new file mode 100644 index 000000000000..d57da526ca89 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/9734.md.prettier-snap @@ -0,0 +1,49 @@ +Markdown + +```js +"test" +``` + +```js +'test' +``` + +```js +`test` +``` + +```js +false +``` + +```js +true +``` + +```js +null +``` + +```js +[] +``` + +```js +{} +``` + +```js +5 +``` + +```js +Infinity +``` + +```js +NaN +``` + +```js +undefined +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/jsx-comment.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/jsx-comment.md new file mode 100644 index 000000000000..9db8944d91d6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/jsx-comment.md @@ -0,0 +1,12 @@ +```jsx +const Foo = () => { + return ( +
+ {/* + This links to a page that does not yet exist. + */} +
+
+ ); +}; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/jsx-comment.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/jsx-comment.md.prettier-snap new file mode 100644 index 000000000000..f8d7d8bc38b8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/jsx-comment.md.prettier-snap @@ -0,0 +1,12 @@ +```jsx +const Foo = () => { + return ( +
+ {/* + This links to a page that does not yet exist. + */} +
+
+ ); +}; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/meta-in-code-block.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/meta-in-code-block.md new file mode 100644 index 000000000000..e532478e1da5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/meta-in-code-block.md @@ -0,0 +1,23 @@ +## plain js block + +```js +console.log ( "hello world" ); +``` + +## js block with meta + +```js {cmd=node .line-numbers} +console.log ( "hello world" ); +``` + +## js block with meta but no space (the language should not be detected) + +```js{cmd=node .line-numbers} +console.log ( "hello world" ); +``` + +## js block with meta and extra spaces (only the first set of spaces should be changed) + +```js cmd=node something="a b" +console.log ( "hello world" ); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/meta-in-code-block.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/meta-in-code-block.md.prettier-snap new file mode 100644 index 000000000000..7f971d3268dc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/meta-in-code-block.md.prettier-snap @@ -0,0 +1,23 @@ +## plain js block + +```js +console.log ( "hello world" ); +``` + +## js block with meta + +```js {cmd=node .line-numbers} +console.log ( "hello world" ); +``` + +## js block with meta but no space (the language should not be detected) + +```js{cmd=node .line-numbers} +console.log ( "hello world" ); +``` + +## js block with meta and extra spaces (only the first set of spaces should be changed) + +```js cmd=node something="a b" +console.log ( "hello world" ); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/trailing-comma.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/trailing-comma.md new file mode 100644 index 000000000000..8ea8ca7a9b3d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/trailing-comma.md @@ -0,0 +1,12 @@ +### Some heading + +```js +someFunctionCall( + foo, + bar, + foobar, + sometehingReallyLongAndHairy, + somethingElse, + breakNow, +); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/trailing-comma.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/trailing-comma.md.prettier-snap new file mode 100644 index 000000000000..8ea8ca7a9b3d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-js/trailing-comma.md.prettier-snap @@ -0,0 +1,12 @@ +### Some heading + +```js +someFunctionCall( + foo, + bar, + foobar, + sometehingReallyLongAndHairy, + somethingElse, + breakNow, +); +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/invalid-json.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/invalid-json.md new file mode 100644 index 000000000000..4c4e7236b893 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/invalid-json.md @@ -0,0 +1,4 @@ + +```json +packages\the-hub\cypress\fixtures\gridConfiguration.json +``` \ No newline at end of file diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/invalid-json.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/invalid-json.md.prettier-snap new file mode 100644 index 000000000000..bc22a296ac49 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/invalid-json.md.prettier-snap @@ -0,0 +1,5 @@ + + +```json +packages\the-hub\cypress\fixtures\gridConfiguration.json +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/jsonc.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/jsonc.md new file mode 100644 index 000000000000..dcdb21449c62 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/jsonc.md @@ -0,0 +1,6 @@ +```jsonc + // comment +{ + "foo" : "bar" +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/jsonc.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/jsonc.md.prettier-snap new file mode 100644 index 000000000000..dcdb21449c62 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/jsonc.md.prettier-snap @@ -0,0 +1,6 @@ +```jsonc + // comment +{ + "foo" : "bar" +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/trailing_comma.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/trailing_comma.md new file mode 100644 index 000000000000..7c992821b30f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/trailing_comma.md @@ -0,0 +1,5 @@ +```json +{ + "foo": "bar" +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/trailing_comma.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/trailing_comma.md.prettier-snap new file mode 100644 index 000000000000..7c992821b30f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/multiparser-json/trailing_comma.md.prettier-snap @@ -0,0 +1,5 @@ +```json +{ + "foo": "bar" +} +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/cjk.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/cjk.md new file mode 100644 index 000000000000..5d7dc6d1fd98 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/cjk.md @@ -0,0 +1,19 @@ +這是一段很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長的段落 + +這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph! + +全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白 + +This ia an english paragraph with a CJK quote "中文". + +This ia an english paragraph with a CJK quote “中文“. + +扩展运算符(spread)是三个点(`...`)。 + +::: warning 注意 +该网站在国外无法访问,故以下演示无效 +::: + +IVS 麻󠄁羽󠄀‼️ + +⿰あ⿱あ⿲あ⿳あ⿴あ⿵あ⿶あ⿷あ⿸あ⿹あ⿺あ⿻あ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/cjk.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/cjk.md.prettier-snap new file mode 100644 index 000000000000..5d7dc6d1fd98 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/cjk.md.prettier-snap @@ -0,0 +1,19 @@ +這是一段很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長的段落 + +這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph! + +全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白 + +This ia an english paragraph with a CJK quote "中文". + +This ia an english paragraph with a CJK quote “中文“. + +扩展运算符(spread)是三个点(`...`)。 + +::: warning 注意 +该网站在国外无法访问,故以下演示无效 +::: + +IVS 麻󠄁羽󠄀‼️ + +⿰あ⿱あ⿲あ⿳あ⿴あ⿵あ⿶あ⿷あ⿸あ⿹あ⿺あ⿻あ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/inline-nodes.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/inline-nodes.md new file mode 100644 index 000000000000..10f1ec9ef175 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/inline-nodes.md @@ -0,0 +1 @@ +It removes all original styling[*](#styling-footnote) and ensures that all outputted code conforms to a consistent style. (See this [blog post](http://jlongster.com/A-Prettier-Formatter)) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/inline-nodes.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/inline-nodes.md.prettier-snap new file mode 100644 index 000000000000..763fdb2be7f5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/inline-nodes.md.prettier-snap @@ -0,0 +1 @@ +It removes all original styling[\*](#styling-footnote) and ensures that all outputted code conforms to a consistent style. (See this [blog post](http://jlongster.com/A-Prettier-Formatter)) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/lorem.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/lorem.md new file mode 100644 index 000000000000..b9b87ad1f2ce --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/lorem.md @@ -0,0 +1,10 @@ +Hic dicta et recusandae incidunt. Reiciendis saepe voluptatem tempore rem aut. +Iusto sapiente impedit. Laudantium ut id non et aperiam ab. + +Sit minus architecto quas quibusdam sed ipsam aut eum. +Dolores tempora reiciendis magni blanditiis laborum aliquid rem corporis enim. Et consectetur quo sed excepturi soluta repudiandae commodi id. +Eum possimus optio distinctio incidunt quasi optio culpa accusamus. +Architecto esse ut aut autem ullam consequatur reiciendis aliquid dolorum. + +Et quam mollitia velit iste enim exercitationem nemo. +Hic dignissimos eos et. Eos eos consequatur. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/lorem.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/lorem.md.prettier-snap new file mode 100644 index 000000000000..9bd74b8da7ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/lorem.md.prettier-snap @@ -0,0 +1,10 @@ +Hic dicta et recusandae incidunt. Reiciendis saepe voluptatem tempore rem aut. +Iusto sapiente impedit. Laudantium ut id non et aperiam ab. + +Sit minus architecto quas quibusdam sed ipsam aut eum. +Dolores tempora reiciendis magni blanditiis laborum aliquid rem corporis enim. Et consectetur quo sed excepturi soluta repudiandae commodi id. +Eum possimus optio distinctio incidunt quasi optio culpa accusamus. +Architecto esse ut aut autem ullam consequatur reiciendis aliquid dolorum. + +Et quam mollitia velit iste enim exercitationem nemo. +Hic dignissimos eos et. Eos eos consequatur. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/simple.md new file mode 100644 index 000000000000..4978f6e5102b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/simple.md @@ -0,0 +1 @@ +This is a long long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/simple.md.prettier-snap new file mode 100644 index 000000000000..4978f6e5102b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/simple.md.prettier-snap @@ -0,0 +1 @@ +This is a long long long long long long long long long long long long long long long paragraph. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/special-prefix.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/special-prefix.md new file mode 100644 index 000000000000..8307ada320f8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/special-prefix.md @@ -0,0 +1,21 @@ +abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc - abc abc abc + +## Supported Rules + +- [no-disabled-tests](/packages/eslint-plugin-jest/docs/rules/no-disabled-tests.md) - disallow disabled tests. +- [no-focused-tests](/packages/eslint-plugin-jest/docs/rules/no-focused-tests.md) - disallow focused tests. +- [no-identical-title](/packages/eslint-plugin-jest/docs/rules/no-identical-title.md) - disallow identical titles. +- [valid-expect](/packages/eslint-plugin-jest/docs/rules/valid-expect.md) - ensure expect is called correctly. + +## Supported Rules + +* [no-disabled-tests](/packages/eslint-plugin-jest/docs/rules/no-disabled-tests.md) + - disallow disabled tests. +* [no-focused-tests](/packages/eslint-plugin-jest/docs/rules/no-focused-tests.md) + - disallow focused tests. +* [no-identical-title](/packages/eslint-plugin-jest/docs/rules/no-identical-title.md) + - disallow identical titles. +* [valid-expect](/packages/eslint-plugin-jest/docs/rules/valid-expect.md) - + ensure expect is called correctly. + +She grew up in an isolated village in the 19th century and met her father aged 29. Oh no, why are we in a numbered list now? diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/special-prefix.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/special-prefix.md.prettier-snap new file mode 100644 index 000000000000..8c0a3c60f5a5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/special-prefix.md.prettier-snap @@ -0,0 +1,21 @@ +abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc - abc abc abc + +## Supported Rules + +- [no-disabled-tests](/packages/eslint-plugin-jest/docs/rules/no-disabled-tests.md) - disallow disabled tests. +- [no-focused-tests](/packages/eslint-plugin-jest/docs/rules/no-focused-tests.md) - disallow focused tests. +- [no-identical-title](/packages/eslint-plugin-jest/docs/rules/no-identical-title.md) - disallow identical titles. +- [valid-expect](/packages/eslint-plugin-jest/docs/rules/valid-expect.md) - ensure expect is called correctly. + +## Supported Rules + +- [no-disabled-tests](/packages/eslint-plugin-jest/docs/rules/no-disabled-tests.md) + - disallow disabled tests. +- [no-focused-tests](/packages/eslint-plugin-jest/docs/rules/no-focused-tests.md) + - disallow focused tests. +- [no-identical-title](/packages/eslint-plugin-jest/docs/rules/no-identical-title.md) + - disallow identical titles. +- [valid-expect](/packages/eslint-plugin-jest/docs/rules/valid-expect.md) - + ensure expect is called correctly. + +She grew up in an isolated village in the 19th century and met her father aged 29. Oh no, why are we in a numbered list now? diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/whitespace.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/whitespace.md new file mode 100644 index 000000000000..6177e0375fcd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/whitespace.md @@ -0,0 +1,7 @@ + + +keep these words together keep these words together keep these words together keep these words together + + + +keep these words together keep these words together keep these words together keep these words together diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/whitespace.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/whitespace.md.prettier-snap new file mode 100644 index 000000000000..6177e0375fcd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/paragraph/whitespace.md.prettier-snap @@ -0,0 +1,7 @@ + + +keep these words together keep these words together keep these words together keep these words together + + + +keep these words together keep these words together keep these words together keep these words together diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-328.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-328.md new file mode 100644 index 000000000000..347253a07996 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-328.md @@ -0,0 +1 @@ +`foo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-328.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-328.md.prettier-snap new file mode 100644 index 000000000000..347253a07996 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-328.md.prettier-snap @@ -0,0 +1 @@ +`foo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-329.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-329.md new file mode 100644 index 000000000000..e3e641bdfe7d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-329.md @@ -0,0 +1 @@ +`` foo ` bar `` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-329.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-329.md.prettier-snap new file mode 100644 index 000000000000..24d72df80837 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-329.md.prettier-snap @@ -0,0 +1 @@ +``foo ` bar`` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-330.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-330.md new file mode 100644 index 000000000000..ee4b7cc34e57 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-330.md @@ -0,0 +1 @@ +` `` ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-330.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-330.md.prettier-snap new file mode 100644 index 000000000000..ee4b7cc34e57 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-330.md.prettier-snap @@ -0,0 +1 @@ +` `` ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-331.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-331.md new file mode 100644 index 000000000000..6c9de46347a2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-331.md @@ -0,0 +1 @@ +` `` ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-331.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-331.md.prettier-snap new file mode 100644 index 000000000000..6c9de46347a2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-331.md.prettier-snap @@ -0,0 +1 @@ +` `` ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-332.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-332.md new file mode 100644 index 000000000000..909d79a6b866 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-332.md @@ -0,0 +1 @@ +` a` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-332.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-332.md.prettier-snap new file mode 100644 index 000000000000..909d79a6b866 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-332.md.prettier-snap @@ -0,0 +1 @@ +` a` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-333.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-333.md new file mode 100644 index 000000000000..b426fea8b3b1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-333.md @@ -0,0 +1 @@ +` b ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-333.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-333.md.prettier-snap new file mode 100644 index 000000000000..b426fea8b3b1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-333.md.prettier-snap @@ -0,0 +1 @@ +` b ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-334.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-334.md new file mode 100644 index 000000000000..d13e0862fe6b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-334.md @@ -0,0 +1,2 @@ +` ` +` ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-334.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-334.md.prettier-snap new file mode 100644 index 000000000000..d13e0862fe6b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-334.md.prettier-snap @@ -0,0 +1,2 @@ +` ` +` ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-335.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-335.md new file mode 100644 index 000000000000..40e518a3a115 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-335.md @@ -0,0 +1,5 @@ +`` +foo +bar +baz +`` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-335.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-335.md.prettier-snap new file mode 100644 index 000000000000..7cd2037f91d8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-335.md.prettier-snap @@ -0,0 +1,3 @@ +`foo +bar +baz` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-336.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-336.md new file mode 100644 index 000000000000..acb9529d5eb2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-336.md @@ -0,0 +1,3 @@ +`` +foo +`` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-336.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-336.md.prettier-snap new file mode 100644 index 000000000000..7b7d205b7e92 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-336.md.prettier-snap @@ -0,0 +1 @@ +`foo ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-337.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-337.md new file mode 100644 index 000000000000..86cb9f0f146b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-337.md @@ -0,0 +1,2 @@ +`foo bar +baz` \ No newline at end of file diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-337.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-337.md.prettier-snap new file mode 100644 index 000000000000..d05bb9a9b431 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/commonmark-0.30-example-337.md.prettier-snap @@ -0,0 +1,2 @@ +`foo bar +baz` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-1.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-1.md new file mode 100644 index 000000000000..127d93a9f580 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-1.md @@ -0,0 +1 @@ + foo baz bim diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-1.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-1.md.prettier-snap new file mode 100644 index 000000000000..2e20f5de5f6a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-1.md.prettier-snap @@ -0,0 +1 @@ + foo baz bim diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-10.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-10.md new file mode 100644 index 000000000000..b67b87e469fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-10.md @@ -0,0 +1,2 @@ +- `one +- two` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-10.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-10.md.prettier-snap new file mode 100644 index 000000000000..b67b87e469fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-10.md.prettier-snap @@ -0,0 +1,2 @@ +- `one +- two` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-100.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-100.md new file mode 100644 index 000000000000..364585347179 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-100.md @@ -0,0 +1,5 @@ + ``` + aaa + aaa + aaa + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-100.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-100.md.prettier-snap new file mode 100644 index 000000000000..93305d70a193 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-100.md.prettier-snap @@ -0,0 +1,5 @@ +``` +aaa + aaa +aaa +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-101.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-101.md new file mode 100644 index 000000000000..ca22e6f39569 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-101.md @@ -0,0 +1,3 @@ + ``` + aaa + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-101.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-101.md.prettier-snap new file mode 100644 index 000000000000..ca22e6f39569 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-101.md.prettier-snap @@ -0,0 +1,3 @@ + ``` + aaa + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-102.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-102.md new file mode 100644 index 000000000000..397d3729edd8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-102.md @@ -0,0 +1,3 @@ +``` +aaa + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-102.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-102.md.prettier-snap new file mode 100644 index 000000000000..6ca038e8614b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-102.md.prettier-snap @@ -0,0 +1,3 @@ +``` +aaa +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-103.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-103.md new file mode 100644 index 000000000000..7f8fea721aa0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-103.md @@ -0,0 +1,3 @@ + ``` +aaa + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-103.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-103.md.prettier-snap new file mode 100644 index 000000000000..6ca038e8614b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-103.md.prettier-snap @@ -0,0 +1,3 @@ +``` +aaa +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-104.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-104.md new file mode 100644 index 000000000000..5b6c807aede3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-104.md @@ -0,0 +1,3 @@ +``` +aaa + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-104.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-104.md.prettier-snap new file mode 100644 index 000000000000..b8fea5a71f52 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-104.md.prettier-snap @@ -0,0 +1,4 @@ +```` +aaa + ``` +```` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-105.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-105.md new file mode 100644 index 000000000000..ba2b02dfa742 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-105.md @@ -0,0 +1,2 @@ +``` ``` +aaa diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-105.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-105.md.prettier-snap new file mode 100644 index 000000000000..cee56e29aa1a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-105.md.prettier-snap @@ -0,0 +1,2 @@ +` ` +aaa diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-106.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-106.md new file mode 100644 index 000000000000..769a5821b970 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-106.md @@ -0,0 +1,3 @@ +~~~~~~ +aaa +~~~ ~~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-106.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-106.md.prettier-snap new file mode 100644 index 000000000000..ceae40b89d2e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-106.md.prettier-snap @@ -0,0 +1,4 @@ +``` +aaa +~~~ ~~ +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-107.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-107.md new file mode 100644 index 000000000000..a06dd73aef9c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-107.md @@ -0,0 +1,5 @@ +foo +``` +bar +``` +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-107.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-107.md.prettier-snap new file mode 100644 index 000000000000..9ac81194f064 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-107.md.prettier-snap @@ -0,0 +1,7 @@ +foo + +``` +bar +``` + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-108.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-108.md new file mode 100644 index 000000000000..0a2f8df26d68 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-108.md @@ -0,0 +1,6 @@ +foo +--- +~~~ +bar +~~~ +# baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-108.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-108.md.prettier-snap new file mode 100644 index 000000000000..829d5b16b2d9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-108.md.prettier-snap @@ -0,0 +1,7 @@ +## foo + +``` +bar +``` + +# baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-109.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-109.md new file mode 100644 index 000000000000..01b30b6e6cfe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-109.md @@ -0,0 +1,5 @@ +```ruby +def foo(x) + return 3 +end +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-109.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-109.md.prettier-snap new file mode 100644 index 000000000000..01b30b6e6cfe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-109.md.prettier-snap @@ -0,0 +1,5 @@ +```ruby +def foo(x) + return 3 +end +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-11.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-11.md new file mode 100644 index 000000000000..22ff355ce7db --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-11.md @@ -0,0 +1,5 @@ + + +*** +--- +___ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-11.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-11.md.prettier-snap new file mode 100644 index 000000000000..50d28c3f098a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-11.md.prettier-snap @@ -0,0 +1,7 @@ + + +--- + +--- + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-110.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-110.md new file mode 100644 index 000000000000..04649182f4a1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-110.md @@ -0,0 +1,5 @@ +~~~~ ruby startline=3 $%@#$ +def foo(x) + return 3 +end +~~~~~~~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-110.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-110.md.prettier-snap new file mode 100644 index 000000000000..086fba5b270e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-110.md.prettier-snap @@ -0,0 +1,5 @@ +```ruby startline=3 $%@#$ +def foo(x) + return 3 +end +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-111.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-111.md new file mode 100644 index 000000000000..920f6d82985a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-111.md @@ -0,0 +1,2 @@ +````; +```` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-111.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-111.md.prettier-snap new file mode 100644 index 000000000000..bfa454f8988b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-111.md.prettier-snap @@ -0,0 +1,3 @@ +```; + +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-112.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-112.md new file mode 100644 index 000000000000..ae1dfbc3b4d7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-112.md @@ -0,0 +1,2 @@ +``` aa ``` +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-112.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-112.md.prettier-snap new file mode 100644 index 000000000000..4b3de0d9a1f0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-112.md.prettier-snap @@ -0,0 +1,2 @@ +`aa` +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-113.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-113.md new file mode 100644 index 000000000000..68d463ff490b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-113.md @@ -0,0 +1,3 @@ +``` +``` aaa +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-113.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-113.md.prettier-snap new file mode 100644 index 000000000000..aed861239b80 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-113.md.prettier-snap @@ -0,0 +1,3 @@ +```` +``` aaa +```` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-114.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-114.md new file mode 100644 index 000000000000..e282d36aee4f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-114.md @@ -0,0 +1,9 @@ + + + + +
+ hi +
+ +okay. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-114.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-114.md.prettier-snap new file mode 100644 index 000000000000..e282d36aee4f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-114.md.prettier-snap @@ -0,0 +1,9 @@ + + + + +
+ hi +
+ +okay. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-115.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-115.md new file mode 100644 index 000000000000..5ab030196423 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-115.md @@ -0,0 +1,3 @@ +
+ *hello* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-115.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-115.md.prettier-snap new file mode 100644 index 000000000000..5ab030196423 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-115.md.prettier-snap @@ -0,0 +1,3 @@ + +*foo* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-116.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-116.md.prettier-snap new file mode 100644 index 000000000000..74abcc1757db --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-116.md.prettier-snap @@ -0,0 +1,2 @@ +
+*foo* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-117.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-117.md new file mode 100644 index 000000000000..ce594fcd305d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-117.md @@ -0,0 +1,5 @@ +
+ +*Markdown* + +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-117.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-117.md.prettier-snap new file mode 100644 index 000000000000..0efb190d6905 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-117.md.prettier-snap @@ -0,0 +1,5 @@ +
+ +_Markdown_ + +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-118.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-118.md new file mode 100644 index 000000000000..467af26862a4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-118.md @@ -0,0 +1,3 @@ +
+
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-118.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-118.md.prettier-snap new file mode 100644 index 000000000000..467af26862a4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-118.md.prettier-snap @@ -0,0 +1,3 @@ +
+
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-119.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-119.md new file mode 100644 index 000000000000..310e21ce0f41 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-119.md @@ -0,0 +1,3 @@ +
+
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-119.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-119.md.prettier-snap new file mode 100644 index 000000000000..310e21ce0f41 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-119.md.prettier-snap @@ -0,0 +1,3 @@ +
+
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-12.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-12.md new file mode 100644 index 000000000000..c0f97649a812 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-12.md @@ -0,0 +1 @@ ++++ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-12.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-12.md.prettier-snap new file mode 100644 index 000000000000..c0f97649a812 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-12.md.prettier-snap @@ -0,0 +1 @@ ++++ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-120.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-120.md new file mode 100644 index 000000000000..f8d0f9739f8e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-120.md @@ -0,0 +1,4 @@ +
+*foo* + +*bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-120.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-120.md.prettier-snap new file mode 100644 index 000000000000..8e63edca5459 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-120.md.prettier-snap @@ -0,0 +1,4 @@ +
+*foo* + +_bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-121.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-121.md new file mode 100644 index 000000000000..46a4696002c2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-121.md @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-124.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-124.md.prettier-snap new file mode 100644 index 000000000000..b7236a3c86fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-124.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-125.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-125.md new file mode 100644 index 000000000000..dda56d443a4a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-125.md @@ -0,0 +1,3 @@ +
+foo +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-125.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-125.md.prettier-snap new file mode 100644 index 000000000000..dda56d443a4a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-125.md.prettier-snap @@ -0,0 +1,3 @@ +
+foo +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-126.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-126.md new file mode 100644 index 000000000000..b4a1d876fc52 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-126.md @@ -0,0 +1,4 @@ +
+``` c +int x = 33; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-126.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-126.md.prettier-snap new file mode 100644 index 000000000000..b4a1d876fc52 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-126.md.prettier-snap @@ -0,0 +1,4 @@ +
+``` c +int x = 33; +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-127.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-127.md new file mode 100644 index 000000000000..b5572f59025b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-127.md @@ -0,0 +1,3 @@ + +*bar* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-127.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-127.md.prettier-snap new file mode 100644 index 000000000000..b5572f59025b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-127.md.prettier-snap @@ -0,0 +1,3 @@ + +*bar* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-128.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-128.md new file mode 100644 index 000000000000..16b73ac880e2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-128.md @@ -0,0 +1,3 @@ + +*bar* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-128.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-128.md.prettier-snap new file mode 100644 index 000000000000..16b73ac880e2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-128.md.prettier-snap @@ -0,0 +1,3 @@ + +*bar* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-129.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-129.md new file mode 100644 index 000000000000..7220bb6cafde --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-129.md @@ -0,0 +1,3 @@ + +*bar* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-129.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-129.md.prettier-snap new file mode 100644 index 000000000000..7220bb6cafde --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-129.md.prettier-snap @@ -0,0 +1,3 @@ + +*bar* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-13.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-13.md new file mode 100644 index 000000000000..4b19a81fe986 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-13.md @@ -0,0 +1 @@ +=== diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-13.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-13.md.prettier-snap new file mode 100644 index 000000000000..4b19a81fe986 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-13.md.prettier-snap @@ -0,0 +1 @@ +=== diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-130.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-130.md new file mode 100644 index 000000000000..9aa54c71d60e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-130.md @@ -0,0 +1,2 @@ + +*bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-130.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-130.md.prettier-snap new file mode 100644 index 000000000000..9aa54c71d60e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-130.md.prettier-snap @@ -0,0 +1,2 @@ + +*bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-131.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-131.md new file mode 100644 index 000000000000..fb282da656a7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-131.md @@ -0,0 +1,3 @@ + +*foo* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-131.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-131.md.prettier-snap new file mode 100644 index 000000000000..fb282da656a7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-131.md.prettier-snap @@ -0,0 +1,3 @@ + +*foo* + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-132.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-132.md new file mode 100644 index 000000000000..4eea85b14441 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-132.md @@ -0,0 +1,5 @@ + + +*foo* + + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-132.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-132.md.prettier-snap new file mode 100644 index 000000000000..dd99d24aa62e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-132.md.prettier-snap @@ -0,0 +1,5 @@ + + +_foo_ + + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-133.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-133.md new file mode 100644 index 000000000000..175a2d3f5832 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-133.md @@ -0,0 +1 @@ +*foo* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-133.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-133.md.prettier-snap new file mode 100644 index 000000000000..3dd5f51e7f52 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-133.md.prettier-snap @@ -0,0 +1 @@ +_foo_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-134.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-134.md new file mode 100644 index 000000000000..946242a2f450 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-134.md @@ -0,0 +1,6 @@ +

+import Text.HTML.TagSoup
+
+main :: IO ()
+main = print $ parseTags tags
+
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-134.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-134.md.prettier-snap new file mode 100644 index 000000000000..946242a2f450 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-134.md.prettier-snap @@ -0,0 +1,6 @@ +

+import Text.HTML.TagSoup
+
+main :: IO ()
+main = print $ parseTags tags
+
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-135.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-135.md new file mode 100644 index 000000000000..fbe48f46e04f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-135.md @@ -0,0 +1,5 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-135.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-135.md.prettier-snap new file mode 100644 index 000000000000..fbe48f46e04f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-135.md.prettier-snap @@ -0,0 +1,5 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-136.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-136.md new file mode 100644 index 000000000000..7d6867d4ba92 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-136.md @@ -0,0 +1,6 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-136.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-136.md.prettier-snap new file mode 100644 index 000000000000..7d6867d4ba92 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-136.md.prettier-snap @@ -0,0 +1,6 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-137.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-137.md new file mode 100644 index 000000000000..2b68b152055d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-137.md @@ -0,0 +1,4 @@ + +*foo* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-140.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-140.md.prettier-snap new file mode 100644 index 000000000000..24b34c067562 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-140.md.prettier-snap @@ -0,0 +1,3 @@ + + +_foo_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-141.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-141.md new file mode 100644 index 000000000000..4f7c0a8fef65 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-141.md @@ -0,0 +1,2 @@ +*bar* +*baz* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-141.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-141.md.prettier-snap new file mode 100644 index 000000000000..dbac1dde82bd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-141.md.prettier-snap @@ -0,0 +1,3 @@ +*bar* + +_baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-142.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-142.md new file mode 100644 index 000000000000..b5ce27703da3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-142.md @@ -0,0 +1,3 @@ +1. *bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-142.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-142.md.prettier-snap new file mode 100644 index 000000000000..b5ce27703da3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-142.md.prettier-snap @@ -0,0 +1,3 @@ +1. *bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-143.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-143.md new file mode 100644 index 000000000000..b2cdb20e216c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-143.md @@ -0,0 +1,4 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-143.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-143.md.prettier-snap new file mode 100644 index 000000000000..b2cdb20e216c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-143.md.prettier-snap @@ -0,0 +1,4 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-144.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-144.md new file mode 100644 index 000000000000..5a7942884596 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-144.md @@ -0,0 +1,5 @@ +'; + +?> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-144.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-144.md.prettier-snap new file mode 100644 index 000000000000..5a7942884596 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-144.md.prettier-snap @@ -0,0 +1,5 @@ +'; + +?> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-145.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-145.md new file mode 100644 index 000000000000..0e76edd65b7b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-145.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-145.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-145.md.prettier-snap new file mode 100644 index 000000000000..0e76edd65b7b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-145.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-146.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-146.md new file mode 100644 index 000000000000..bd3b74794eed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-146.md @@ -0,0 +1,12 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-146.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-146.md.prettier-snap new file mode 100644 index 000000000000..bd3b74794eed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-146.md.prettier-snap @@ -0,0 +1,12 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-147.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-147.md new file mode 100644 index 000000000000..92223f258365 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-147.md @@ -0,0 +1,3 @@ + + + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-147.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-147.md.prettier-snap new file mode 100644 index 000000000000..92223f258365 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-147.md.prettier-snap @@ -0,0 +1,3 @@ + + + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-148.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-148.md new file mode 100644 index 000000000000..dd382f65b574 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-148.md @@ -0,0 +1,3 @@ +
+ +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-148.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-148.md.prettier-snap new file mode 100644 index 000000000000..dd382f65b574 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-148.md.prettier-snap @@ -0,0 +1,3 @@ +
+ +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-149.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-149.md new file mode 100644 index 000000000000..0aba0264512f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-149.md @@ -0,0 +1,4 @@ +Foo +
+bar +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-149.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-149.md.prettier-snap new file mode 100644 index 000000000000..6d55829f740a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-149.md.prettier-snap @@ -0,0 +1,5 @@ +Foo + +
+bar +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-15.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-15.md new file mode 100644 index 000000000000..0af99d3baf6c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-15.md @@ -0,0 +1,5 @@ + + + *** + *** + *** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-15.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-15.md.prettier-snap new file mode 100644 index 000000000000..50d28c3f098a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-15.md.prettier-snap @@ -0,0 +1,7 @@ + + +--- + +--- + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-150.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-150.md new file mode 100644 index 000000000000..f4af5f4433fd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-150.md @@ -0,0 +1,4 @@ +
+bar +
+*foo* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-150.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-150.md.prettier-snap new file mode 100644 index 000000000000..f4af5f4433fd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-150.md.prettier-snap @@ -0,0 +1,4 @@ +
+bar +
+*foo* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-151.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-151.md new file mode 100644 index 000000000000..d046b6af986d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-151.md @@ -0,0 +1,3 @@ +Foo + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-151.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-151.md.prettier-snap new file mode 100644 index 000000000000..d046b6af986d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-151.md.prettier-snap @@ -0,0 +1,3 @@ +Foo + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-152.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-152.md new file mode 100644 index 000000000000..d8da5f2ca95d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-152.md @@ -0,0 +1,5 @@ +
+ +*Emphasized* text. + +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-152.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-152.md.prettier-snap new file mode 100644 index 000000000000..4e4281404c7a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-152.md.prettier-snap @@ -0,0 +1,5 @@ +
+ +_Emphasized_ text. + +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-153.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-153.md new file mode 100644 index 000000000000..fc2c003e29d0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-153.md @@ -0,0 +1,3 @@ +
+*Emphasized* text. +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-153.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-153.md.prettier-snap new file mode 100644 index 000000000000..fc2c003e29d0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-153.md.prettier-snap @@ -0,0 +1,3 @@ +
+*Emphasized* text. +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-154.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-154.md new file mode 100644 index 000000000000..16044219131c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-154.md @@ -0,0 +1,11 @@ + + + + + + + + +
+Hi +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-154.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-154.md.prettier-snap new file mode 100644 index 000000000000..16044219131c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-154.md.prettier-snap @@ -0,0 +1,11 @@ + + + + + + + + +
+Hi +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-155.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-155.md new file mode 100644 index 000000000000..fec604577808 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-155.md @@ -0,0 +1,11 @@ + + + + + + + + +
+ Hi +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-155.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-155.md.prettier-snap new file mode 100644 index 000000000000..fec604577808 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-155.md.prettier-snap @@ -0,0 +1,11 @@ + + + + + + + + +
+ Hi +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-156.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-156.md new file mode 100644 index 000000000000..e9f5ae25e176 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-156.md @@ -0,0 +1,3 @@ +[foo]: /url "title" + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-156.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-156.md.prettier-snap new file mode 100644 index 000000000000..e9f5ae25e176 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-156.md.prettier-snap @@ -0,0 +1,3 @@ +[foo]: /url "title" + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-157.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-157.md new file mode 100644 index 000000000000..ca71ac30d164 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-157.md @@ -0,0 +1,5 @@ + [foo]: + /url + 'the title' + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-157.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-157.md.prettier-snap new file mode 100644 index 000000000000..3857d85820cd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-157.md.prettier-snap @@ -0,0 +1,3 @@ +[foo]: /url "the title" + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-158.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-158.md new file mode 100644 index 000000000000..a8bb0d50849e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-158.md @@ -0,0 +1,3 @@ +[Foo*bar\]]:my_(url) 'title (with parens)' + +[Foo*bar\]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-158.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-158.md.prettier-snap new file mode 100644 index 000000000000..dd58b96a59af --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-158.md.prettier-snap @@ -0,0 +1,3 @@ +[Foo*bar\]]: my_(url) "title (with parens)" + +[Foo*bar\]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-159.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-159.md new file mode 100644 index 000000000000..408d9ceec91e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-159.md @@ -0,0 +1,5 @@ +[Foo bar]: + +'title' + +[Foo bar] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-159.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-159.md.prettier-snap new file mode 100644 index 000000000000..5fa8c7a8cebd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-159.md.prettier-snap @@ -0,0 +1,3 @@ +[Foo bar]: my%20url "title" + +[Foo bar] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-16.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-16.md new file mode 100644 index 000000000000..31901d515be5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-16.md @@ -0,0 +1 @@ + *** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-16.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-16.md.prettier-snap new file mode 100644 index 000000000000..31901d515be5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-16.md.prettier-snap @@ -0,0 +1 @@ + *** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-161.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-161.md new file mode 100644 index 000000000000..be79cdccf7d7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-161.md @@ -0,0 +1,5 @@ +[foo]: /url 'title + +with blank line' + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-161.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-161.md.prettier-snap new file mode 100644 index 000000000000..be79cdccf7d7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-161.md.prettier-snap @@ -0,0 +1,5 @@ +[foo]: /url 'title + +with blank line' + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-162.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-162.md new file mode 100644 index 000000000000..7de90e07243b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-162.md @@ -0,0 +1,4 @@ +[foo]: +/url + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-162.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-162.md.prettier-snap new file mode 100644 index 000000000000..3e705760f759 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-162.md.prettier-snap @@ -0,0 +1,3 @@ +[foo]: /url + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-163.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-163.md new file mode 100644 index 000000000000..4bd75a73affe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-163.md @@ -0,0 +1,3 @@ +[foo]: + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-163.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-163.md.prettier-snap new file mode 100644 index 000000000000..4bd75a73affe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-163.md.prettier-snap @@ -0,0 +1,3 @@ +[foo]: + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-164.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-164.md new file mode 100644 index 000000000000..93625cd0e997 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-164.md @@ -0,0 +1,3 @@ +[foo]: /url\bar\*baz "foo\"bar\baz" + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-164.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-164.md.prettier-snap new file mode 100644 index 000000000000..93625cd0e997 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-164.md.prettier-snap @@ -0,0 +1,3 @@ +[foo]: /url\bar\*baz "foo\"bar\baz" + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-165.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-165.md new file mode 100644 index 000000000000..2dbda61a1b31 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-165.md @@ -0,0 +1,3 @@ +[foo] + +[foo]: url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-165.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-165.md.prettier-snap new file mode 100644 index 000000000000..2dbda61a1b31 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-165.md.prettier-snap @@ -0,0 +1,3 @@ +[foo] + +[foo]: url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-166.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-166.md new file mode 100644 index 000000000000..04c90513a21d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-166.md @@ -0,0 +1,4 @@ +[foo] + +[foo]: first +[foo]: second diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-166.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-166.md.prettier-snap new file mode 100644 index 000000000000..04c90513a21d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-166.md.prettier-snap @@ -0,0 +1,4 @@ +[foo] + +[foo]: first +[foo]: second diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-167.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-167.md new file mode 100644 index 000000000000..55614582531e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-167.md @@ -0,0 +1,3 @@ +[FOO]: /url + +[Foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-167.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-167.md.prettier-snap new file mode 100644 index 000000000000..55614582531e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-167.md.prettier-snap @@ -0,0 +1,3 @@ +[FOO]: /url + +[Foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-168.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-168.md new file mode 100644 index 000000000000..a06253b66274 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-168.md @@ -0,0 +1,3 @@ +[ΑΓΩ]: /φου + +[αγω] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-168.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-168.md.prettier-snap new file mode 100644 index 000000000000..a06253b66274 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-168.md.prettier-snap @@ -0,0 +1,3 @@ +[ΑΓΩ]: /φου + +[αγω] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-169.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-169.md new file mode 100644 index 000000000000..6f04f5d92f4a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-169.md @@ -0,0 +1 @@ +[foo]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-169.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-169.md.prettier-snap new file mode 100644 index 000000000000..6f04f5d92f4a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-169.md.prettier-snap @@ -0,0 +1 @@ +[foo]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-17.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-17.md new file mode 100644 index 000000000000..1a3b8a135dbc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-17.md @@ -0,0 +1,2 @@ +Foo + *** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-17.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-17.md.prettier-snap new file mode 100644 index 000000000000..9c1c2340dbbe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-17.md.prettier-snap @@ -0,0 +1,2 @@ +Foo +\*\*\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-170.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-170.md new file mode 100644 index 000000000000..fbc22c2f9d91 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-170.md @@ -0,0 +1,4 @@ +[ +foo +]: /url +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-170.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-170.md.prettier-snap new file mode 100644 index 000000000000..b279a1a0572e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-170.md.prettier-snap @@ -0,0 +1,3 @@ +[ foo ]: /url + +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-171.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-171.md new file mode 100644 index 000000000000..a84d59d043fa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-171.md @@ -0,0 +1 @@ +[foo]: /url "title" ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-171.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-171.md.prettier-snap new file mode 100644 index 000000000000..a84d59d043fa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-171.md.prettier-snap @@ -0,0 +1 @@ +[foo]: /url "title" ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-172.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-172.md new file mode 100644 index 000000000000..e05429ba550c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-172.md @@ -0,0 +1,2 @@ +[foo]: /url +"title" ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-172.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-172.md.prettier-snap new file mode 100644 index 000000000000..e05429ba550c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-172.md.prettier-snap @@ -0,0 +1,2 @@ +[foo]: /url +"title" ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-173.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-173.md new file mode 100644 index 000000000000..85b4d162547c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-173.md @@ -0,0 +1,3 @@ + [foo]: /url "title" + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-173.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-173.md.prettier-snap new file mode 100644 index 000000000000..85b4d162547c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-173.md.prettier-snap @@ -0,0 +1,3 @@ + [foo]: /url "title" + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-174.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-174.md new file mode 100644 index 000000000000..4c4b05f684f8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-174.md @@ -0,0 +1,5 @@ +``` +[foo]: /url +``` + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-174.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-174.md.prettier-snap new file mode 100644 index 000000000000..4c4b05f684f8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-174.md.prettier-snap @@ -0,0 +1,5 @@ +``` +[foo]: /url +``` + +[foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-175.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-175.md new file mode 100644 index 000000000000..10980d82335c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-175.md @@ -0,0 +1,4 @@ +Foo +[bar]: /baz + +[bar] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-175.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-175.md.prettier-snap new file mode 100644 index 000000000000..10980d82335c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-175.md.prettier-snap @@ -0,0 +1,4 @@ +Foo +[bar]: /baz + +[bar] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-176.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-176.md new file mode 100644 index 000000000000..d084773d93d7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-176.md @@ -0,0 +1,3 @@ +# [Foo] +[foo]: /url +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-176.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-176.md.prettier-snap new file mode 100644 index 000000000000..d7573c971aca --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-176.md.prettier-snap @@ -0,0 +1,5 @@ +# [Foo] + +[foo]: /url + +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-177.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-177.md new file mode 100644 index 000000000000..cb4853a03244 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-177.md @@ -0,0 +1,8 @@ +[foo]: /foo-url "foo" +[bar]: /bar-url + "bar" +[baz]: /baz-url + +[foo], +[bar], +[baz] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-177.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-177.md.prettier-snap new file mode 100644 index 000000000000..4abe6056375c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-177.md.prettier-snap @@ -0,0 +1,7 @@ +[foo]: /foo-url "foo" +[bar]: /bar-url "bar" +[baz]: /baz-url + +[foo], +[bar], +[baz] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-178.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-178.md new file mode 100644 index 000000000000..8ab4291a3c9f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-178.md @@ -0,0 +1,3 @@ +[foo] + +> [foo]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-178.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-178.md.prettier-snap new file mode 100644 index 000000000000..8ab4291a3c9f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-178.md.prettier-snap @@ -0,0 +1,3 @@ +[foo] + +> [foo]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-179.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-179.md new file mode 100644 index 000000000000..6c5e673b04a0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-179.md @@ -0,0 +1,3 @@ +aaa + +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-179.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-179.md.prettier-snap new file mode 100644 index 000000000000..6c5e673b04a0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-179.md.prettier-snap @@ -0,0 +1,3 @@ +aaa + +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-18.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-18.md new file mode 100644 index 000000000000..cc632b22d3f4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-18.md @@ -0,0 +1 @@ +_____________________________________ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-18.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-18.md.prettier-snap new file mode 100644 index 000000000000..ed97d539c095 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-18.md.prettier-snap @@ -0,0 +1 @@ +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-180.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-180.md new file mode 100644 index 000000000000..28bf97078c4e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-180.md @@ -0,0 +1,5 @@ +aaa +bbb + +ccc +ddd diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-180.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-180.md.prettier-snap new file mode 100644 index 000000000000..28bf97078c4e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-180.md.prettier-snap @@ -0,0 +1,5 @@ +aaa +bbb + +ccc +ddd diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-181.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-181.md new file mode 100644 index 000000000000..8f4d107667c2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-181.md @@ -0,0 +1,4 @@ +aaa + + +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-181.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-181.md.prettier-snap new file mode 100644 index 000000000000..6c5e673b04a0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-181.md.prettier-snap @@ -0,0 +1,3 @@ +aaa + +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-182.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-182.md new file mode 100644 index 000000000000..93825c8fcc35 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-182.md @@ -0,0 +1,2 @@ + aaa + bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-182.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-182.md.prettier-snap new file mode 100644 index 000000000000..dbee0265d312 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-182.md.prettier-snap @@ -0,0 +1,2 @@ +aaa +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-183.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-183.md new file mode 100644 index 000000000000..0b011de4ffa4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-183.md @@ -0,0 +1,3 @@ +aaa + bbb + ccc diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-183.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-183.md.prettier-snap new file mode 100644 index 000000000000..1802a7474429 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-183.md.prettier-snap @@ -0,0 +1,3 @@ +aaa +bbb +ccc diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-184.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-184.md new file mode 100644 index 000000000000..db1e844b4701 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-184.md @@ -0,0 +1,2 @@ + aaa +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-184.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-184.md.prettier-snap new file mode 100644 index 000000000000..dbee0265d312 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-184.md.prettier-snap @@ -0,0 +1,2 @@ +aaa +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-185.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-185.md new file mode 100644 index 000000000000..9e16dcafc472 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-185.md @@ -0,0 +1,2 @@ + aaa +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-185.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-185.md.prettier-snap new file mode 100644 index 000000000000..a7d2d958a5dc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-185.md.prettier-snap @@ -0,0 +1,3 @@ + aaa + +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-186.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-186.md new file mode 100644 index 000000000000..28b12617b1e8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-186.md @@ -0,0 +1,2 @@ +aaa +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-186.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-186.md.prettier-snap new file mode 100644 index 000000000000..8d3a6bdc961a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-186.md.prettier-snap @@ -0,0 +1,2 @@ +aaa +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-187.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-187.md new file mode 100644 index 000000000000..d3d172ff02ea --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-187.md @@ -0,0 +1,8 @@ + + +aaa + + +# aaa + + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-187.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-187.md.prettier-snap new file mode 100644 index 000000000000..d4ba0449024a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-187.md.prettier-snap @@ -0,0 +1,3 @@ +aaa + +# aaa diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-188.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-188.md new file mode 100644 index 000000000000..2c7131792dff --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-188.md @@ -0,0 +1,3 @@ +> # Foo +> bar +> baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-188.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-188.md.prettier-snap new file mode 100644 index 000000000000..ae41feabe2c6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-188.md.prettier-snap @@ -0,0 +1,4 @@ +> # Foo +> +> bar +> baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-189.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-189.md new file mode 100644 index 000000000000..f266967c06c9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-189.md @@ -0,0 +1,3 @@ +># Foo +>bar +> baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-189.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-189.md.prettier-snap new file mode 100644 index 000000000000..ae41feabe2c6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-189.md.prettier-snap @@ -0,0 +1,4 @@ +> # Foo +> +> bar +> baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-19.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-19.md new file mode 100644 index 000000000000..bdae5b953d0f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-19.md @@ -0,0 +1 @@ + - - - diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-19.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-19.md.prettier-snap new file mode 100644 index 000000000000..ed97d539c095 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-19.md.prettier-snap @@ -0,0 +1 @@ +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-190.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-190.md new file mode 100644 index 000000000000..a004df1808f8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-190.md @@ -0,0 +1,3 @@ + > # Foo + > bar + > baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-190.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-190.md.prettier-snap new file mode 100644 index 000000000000..ae41feabe2c6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-190.md.prettier-snap @@ -0,0 +1,4 @@ +> # Foo +> +> bar +> baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-191.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-191.md new file mode 100644 index 000000000000..b0db6ad2fb47 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-191.md @@ -0,0 +1,3 @@ + > # Foo + > bar + > baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-191.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-191.md.prettier-snap new file mode 100644 index 000000000000..b0db6ad2fb47 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-191.md.prettier-snap @@ -0,0 +1,3 @@ + > # Foo + > bar + > baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-192.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-192.md new file mode 100644 index 000000000000..47a778db4269 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-192.md @@ -0,0 +1,3 @@ +> # Foo +> bar +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-192.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-192.md.prettier-snap new file mode 100644 index 000000000000..ae41feabe2c6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-192.md.prettier-snap @@ -0,0 +1,4 @@ +> # Foo +> +> bar +> baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-193.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-193.md new file mode 100644 index 000000000000..a80d4f542c36 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-193.md @@ -0,0 +1,3 @@ +> bar +baz +> foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-193.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-193.md.prettier-snap new file mode 100644 index 000000000000..14018bb582af --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-193.md.prettier-snap @@ -0,0 +1,3 @@ +> bar +> baz +> foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-194.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-194.md new file mode 100644 index 000000000000..7783c617e728 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-194.md @@ -0,0 +1,2 @@ +> foo +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-194.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-194.md.prettier-snap new file mode 100644 index 000000000000..ad52f2258517 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-194.md.prettier-snap @@ -0,0 +1,3 @@ +> foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-195.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-195.md new file mode 100644 index 000000000000..926a0dac4d1b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-195.md @@ -0,0 +1,2 @@ +> - foo +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-195.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-195.md.prettier-snap new file mode 100644 index 000000000000..b341f25569f2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-195.md.prettier-snap @@ -0,0 +1,3 @@ +> - foo + +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-196.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-196.md new file mode 100644 index 000000000000..7b22083c636c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-196.md @@ -0,0 +1,2 @@ +> foo + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-196.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-196.md.prettier-snap new file mode 100644 index 000000000000..cca481f90f7f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-196.md.prettier-snap @@ -0,0 +1,3 @@ +> foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-197.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-197.md new file mode 100644 index 000000000000..6a212ad099fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-197.md @@ -0,0 +1,3 @@ +> ``` +foo +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-197.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-197.md.prettier-snap new file mode 100644 index 000000000000..05cb90e8e300 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-197.md.prettier-snap @@ -0,0 +1,7 @@ +> ``` +> foo +> ``` + +``` + +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-198.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-198.md new file mode 100644 index 000000000000..1437587357ee --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-198.md @@ -0,0 +1,2 @@ +> foo + - bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-198.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-198.md.prettier-snap new file mode 100644 index 000000000000..249590ac589a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-198.md.prettier-snap @@ -0,0 +1,3 @@ +> foo + + - bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-199.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-199.md new file mode 100644 index 000000000000..d9e80f6f7602 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-199.md @@ -0,0 +1 @@ +> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-199.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-199.md.prettier-snap new file mode 100644 index 000000000000..d9e80f6f7602 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-199.md.prettier-snap @@ -0,0 +1 @@ +> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-2.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-2.md new file mode 100644 index 000000000000..e6d708720c2b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-2.md @@ -0,0 +1 @@ + foo baz bim diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-2.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-2.md.prettier-snap new file mode 100644 index 000000000000..6b032e14cbb7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-2.md.prettier-snap @@ -0,0 +1 @@ +foo baz bim diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-20.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-20.md new file mode 100644 index 000000000000..e4d114e9c80f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-20.md @@ -0,0 +1 @@ + ** * ** * ** * ** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-20.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-20.md.prettier-snap new file mode 100644 index 000000000000..ed97d539c095 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-20.md.prettier-snap @@ -0,0 +1 @@ +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-200.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-200.md new file mode 100644 index 000000000000..9e4862dc0b2e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-200.md @@ -0,0 +1,3 @@ +> +> +> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-200.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-200.md.prettier-snap new file mode 100644 index 000000000000..d9e80f6f7602 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-200.md.prettier-snap @@ -0,0 +1 @@ +> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-201.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-201.md new file mode 100644 index 000000000000..f535811721ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-201.md @@ -0,0 +1,3 @@ +> +> foo +> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-201.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-201.md.prettier-snap new file mode 100644 index 000000000000..ac3d793b3b17 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-201.md.prettier-snap @@ -0,0 +1 @@ +> foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-202.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-202.md new file mode 100644 index 000000000000..1756994ce280 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-202.md @@ -0,0 +1,3 @@ +> foo + +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-202.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-202.md.prettier-snap new file mode 100644 index 000000000000..1756994ce280 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-202.md.prettier-snap @@ -0,0 +1,3 @@ +> foo + +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-203.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-203.md new file mode 100644 index 000000000000..01fecee662ff --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-203.md @@ -0,0 +1,2 @@ +> foo +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-203.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-203.md.prettier-snap new file mode 100644 index 000000000000..01fecee662ff --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-203.md.prettier-snap @@ -0,0 +1,2 @@ +> foo +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-204.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-204.md new file mode 100644 index 000000000000..6459803db673 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-204.md @@ -0,0 +1,3 @@ +> foo +> +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-204.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-204.md.prettier-snap new file mode 100644 index 000000000000..6459803db673 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-204.md.prettier-snap @@ -0,0 +1,3 @@ +> foo +> +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-205.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-205.md new file mode 100644 index 000000000000..b2c2c133bde5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-205.md @@ -0,0 +1,2 @@ +foo +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-205.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-205.md.prettier-snap new file mode 100644 index 000000000000..8353010e25a3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-205.md.prettier-snap @@ -0,0 +1,3 @@ +foo + +> bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-206.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-206.md new file mode 100644 index 000000000000..33b56246d226 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-206.md @@ -0,0 +1,3 @@ +> aaa +*** +> bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-206.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-206.md.prettier-snap new file mode 100644 index 000000000000..10b30de2a799 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-206.md.prettier-snap @@ -0,0 +1,5 @@ +> aaa + +--- + +> bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-207.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-207.md new file mode 100644 index 000000000000..7a19b02db498 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-207.md @@ -0,0 +1,2 @@ +> bar +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-207.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-207.md.prettier-snap new file mode 100644 index 000000000000..02d009372990 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-207.md.prettier-snap @@ -0,0 +1,2 @@ +> bar +> baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-208.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-208.md new file mode 100644 index 000000000000..51be4f0a4a5c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-208.md @@ -0,0 +1,3 @@ +> bar + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-208.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-208.md.prettier-snap new file mode 100644 index 000000000000..51be4f0a4a5c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-208.md.prettier-snap @@ -0,0 +1,3 @@ +> bar + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-209.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-209.md new file mode 100644 index 000000000000..54ad244d24ac --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-209.md @@ -0,0 +1,3 @@ +> bar +> +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-209.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-209.md.prettier-snap new file mode 100644 index 000000000000..b7fc44127992 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-209.md.prettier-snap @@ -0,0 +1,3 @@ +> bar +> +> baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-21.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-21.md new file mode 100644 index 000000000000..187dfdeccf64 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-21.md @@ -0,0 +1 @@ +- - - - diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-21.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-21.md.prettier-snap new file mode 100644 index 000000000000..ed97d539c095 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-21.md.prettier-snap @@ -0,0 +1 @@ +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-210.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-210.md new file mode 100644 index 000000000000..64b7e0b5b18f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-210.md @@ -0,0 +1,2 @@ +> > > foo +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-210.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-210.md.prettier-snap new file mode 100644 index 000000000000..9ffd6ae42bab --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-210.md.prettier-snap @@ -0,0 +1,2 @@ +> > > foo +> > > bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-211.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-211.md new file mode 100644 index 000000000000..db76497e2e08 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-211.md @@ -0,0 +1,3 @@ +>>> foo +> bar +>>baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-211.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-211.md.prettier-snap new file mode 100644 index 000000000000..118f5743996a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-211.md.prettier-snap @@ -0,0 +1,3 @@ +> > > foo +> > > bar +> > > baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-212.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-212.md new file mode 100644 index 000000000000..9f84779037bb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-212.md @@ -0,0 +1,3 @@ +> code + +> not code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-212.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-212.md.prettier-snap new file mode 100644 index 000000000000..7eef07c3fcec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-212.md.prettier-snap @@ -0,0 +1,3 @@ +> code + +> not code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-213.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-213.md new file mode 100644 index 000000000000..d9cb4c53d7f7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-213.md @@ -0,0 +1,6 @@ +A paragraph +with two lines. + + indented code + +> A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-213.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-213.md.prettier-snap new file mode 100644 index 000000000000..d9cb4c53d7f7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-213.md.prettier-snap @@ -0,0 +1,6 @@ +A paragraph +with two lines. + + indented code + +> A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-214.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-214.md new file mode 100644 index 000000000000..fa8bddeced3a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-214.md @@ -0,0 +1,6 @@ +1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-214.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-214.md.prettier-snap new file mode 100644 index 000000000000..fa8bddeced3a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-214.md.prettier-snap @@ -0,0 +1,6 @@ +1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-215.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-215.md new file mode 100644 index 000000000000..18f534172d46 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-215.md @@ -0,0 +1,3 @@ +- one + +two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-215.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-215.md.prettier-snap new file mode 100644 index 000000000000..18f534172d46 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-215.md.prettier-snap @@ -0,0 +1,3 @@ +- one + +two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-216.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-216.md new file mode 100644 index 000000000000..988dd7a2493a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-216.md @@ -0,0 +1,3 @@ +- one + + two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-216.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-216.md.prettier-snap new file mode 100644 index 000000000000..988dd7a2493a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-216.md.prettier-snap @@ -0,0 +1,3 @@ +- one + + two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-217.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-217.md new file mode 100644 index 000000000000..9edbedd446a9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-217.md @@ -0,0 +1,3 @@ + - one + + two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-217.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-217.md.prettier-snap new file mode 100644 index 000000000000..988dd7a2493a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-217.md.prettier-snap @@ -0,0 +1,3 @@ +- one + + two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-218.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-218.md new file mode 100644 index 000000000000..6dbd5a3baf96 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-218.md @@ -0,0 +1,3 @@ + - one + + two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-218.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-218.md.prettier-snap new file mode 100644 index 000000000000..988dd7a2493a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-218.md.prettier-snap @@ -0,0 +1,3 @@ +- one + + two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-219.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-219.md new file mode 100644 index 000000000000..1da516497a4c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-219.md @@ -0,0 +1,3 @@ + > > 1. one +>> +>> two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-219.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-219.md.prettier-snap new file mode 100644 index 000000000000..da57ad51be7c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-219.md.prettier-snap @@ -0,0 +1,3 @@ +> > 1. one +> > +> > two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-22.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-22.md new file mode 100644 index 000000000000..5d0694d11545 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-22.md @@ -0,0 +1 @@ +- - - - diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-22.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-22.md.prettier-snap new file mode 100644 index 000000000000..ed97d539c095 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-22.md.prettier-snap @@ -0,0 +1 @@ +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-220.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-220.md new file mode 100644 index 000000000000..6d6270be68ac --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-220.md @@ -0,0 +1,3 @@ +>>- one +>> + > > two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-220.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-220.md.prettier-snap new file mode 100644 index 000000000000..064714699c75 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-220.md.prettier-snap @@ -0,0 +1,3 @@ +> > - one +> > +> > two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-221.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-221.md new file mode 100644 index 000000000000..35a3100786a9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-221.md @@ -0,0 +1,3 @@ +-one + +2.two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-221.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-221.md.prettier-snap new file mode 100644 index 000000000000..35a3100786a9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-221.md.prettier-snap @@ -0,0 +1,3 @@ +-one + +2.two diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-222.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-222.md new file mode 100644 index 000000000000..dfb6d78d02ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-222.md @@ -0,0 +1,24 @@ +- foo + + bar + +- foo + + + bar + +- ``` + foo + + + bar + ``` + +- baz + + + ``` + foo + + + bar + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-222.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-222.md.prettier-snap new file mode 100644 index 000000000000..273196869ce8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-222.md.prettier-snap @@ -0,0 +1,22 @@ +- foo + + bar + +- foo + + bar + +- ``` + foo + + + bar + ``` + +- baz + - ``` + foo + + + bar + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-223.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-223.md new file mode 100644 index 000000000000..a662b667359d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-223.md @@ -0,0 +1,9 @@ +1. foo + + ``` + bar + ``` + + baz + + > bam diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-223.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-223.md.prettier-snap new file mode 100644 index 000000000000..a662b667359d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-223.md.prettier-snap @@ -0,0 +1,9 @@ +1. foo + + ``` + bar + ``` + + baz + + > bam diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-224.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-224.md new file mode 100644 index 000000000000..a4d6c5e6450c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-224.md @@ -0,0 +1,5 @@ +- Foo + + bar + + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-224.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-224.md.prettier-snap new file mode 100644 index 000000000000..a4d6c5e6450c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-224.md.prettier-snap @@ -0,0 +1,5 @@ +- Foo + + bar + + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-225.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-225.md new file mode 100644 index 000000000000..5ec90793ecaa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-225.md @@ -0,0 +1,6 @@ +- Foo + + bar + + + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-225.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-225.md.prettier-snap new file mode 100644 index 000000000000..5ec90793ecaa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-225.md.prettier-snap @@ -0,0 +1,6 @@ +- Foo + + bar + + + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-226.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-226.md new file mode 100644 index 000000000000..050662381292 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-226.md @@ -0,0 +1 @@ +123456789. ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-226.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-226.md.prettier-snap new file mode 100644 index 000000000000..050662381292 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-226.md.prettier-snap @@ -0,0 +1 @@ +123456789. ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-227.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-227.md new file mode 100644 index 000000000000..9931f10c515f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-227.md @@ -0,0 +1 @@ +1234567890. not ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-227.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-227.md.prettier-snap new file mode 100644 index 000000000000..9931f10c515f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-227.md.prettier-snap @@ -0,0 +1 @@ +1234567890. not ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-228.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-228.md new file mode 100644 index 000000000000..67368998cbce --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-228.md @@ -0,0 +1 @@ +0. ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-228.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-228.md.prettier-snap new file mode 100644 index 000000000000..67368998cbce --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-228.md.prettier-snap @@ -0,0 +1 @@ +0. ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-229.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-229.md new file mode 100644 index 000000000000..af12c331bff5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-229.md @@ -0,0 +1 @@ +003. ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-229.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-229.md.prettier-snap new file mode 100644 index 000000000000..2023b16adcae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-229.md.prettier-snap @@ -0,0 +1 @@ +3. ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-23.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-23.md new file mode 100644 index 000000000000..f60ae73e9c46 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-23.md @@ -0,0 +1,5 @@ +_ _ _ _ a + +a------ + +---a--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-23.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-23.md.prettier-snap new file mode 100644 index 000000000000..dbeba2527484 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-23.md.prettier-snap @@ -0,0 +1,5 @@ +\_ \_ \_ \_ a + +a------ + +---a--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-230.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-230.md new file mode 100644 index 000000000000..00854190f167 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-230.md @@ -0,0 +1 @@ +-1. not ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-230.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-230.md.prettier-snap new file mode 100644 index 000000000000..00854190f167 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-230.md.prettier-snap @@ -0,0 +1 @@ +-1. not ok diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-231.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-231.md new file mode 100644 index 000000000000..13a6194cd95a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-231.md @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-231.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-231.md.prettier-snap new file mode 100644 index 000000000000..13a6194cd95a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-231.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-232.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-232.md new file mode 100644 index 000000000000..2599ba1321be --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-232.md @@ -0,0 +1,3 @@ + 10. foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-232.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-232.md.prettier-snap new file mode 100644 index 000000000000..6737d0545802 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-232.md.prettier-snap @@ -0,0 +1,3 @@ +10. foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-233.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-233.md new file mode 100644 index 000000000000..e44e794d1073 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-233.md @@ -0,0 +1,5 @@ + indented code + +paragraph + + more code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-233.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-233.md.prettier-snap new file mode 100644 index 000000000000..e44e794d1073 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-233.md.prettier-snap @@ -0,0 +1,5 @@ + indented code + +paragraph + + more code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-234.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-234.md new file mode 100644 index 000000000000..b3f3ecc9076b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-234.md @@ -0,0 +1,5 @@ +1. indented code + + paragraph + + more code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-234.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-234.md.prettier-snap new file mode 100644 index 000000000000..a94850c494f7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-234.md.prettier-snap @@ -0,0 +1,5 @@ +1. indented code + + paragraph + + more code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-235.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-235.md new file mode 100644 index 000000000000..b616a23dcc33 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-235.md @@ -0,0 +1,5 @@ +1. indented code + + paragraph + + more code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-235.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-235.md.prettier-snap new file mode 100644 index 000000000000..06c074bd8a56 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-235.md.prettier-snap @@ -0,0 +1,5 @@ +1. indented code + + paragraph + + more code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-236.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-236.md new file mode 100644 index 000000000000..2863bd49c248 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-236.md @@ -0,0 +1,3 @@ + foo + +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-236.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-236.md.prettier-snap new file mode 100644 index 000000000000..2db72cdd2067 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-236.md.prettier-snap @@ -0,0 +1,3 @@ +foo + +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-237.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-237.md new file mode 100644 index 000000000000..8f7062a313ca --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-237.md @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-237.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-237.md.prettier-snap new file mode 100644 index 000000000000..1b0f0ec034fc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-237.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-238.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-238.md new file mode 100644 index 000000000000..bae1eb7f236b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-238.md @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-238.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-238.md.prettier-snap new file mode 100644 index 000000000000..58871287f77a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-238.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-240.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-240.md new file mode 100644 index 000000000000..aec7969596da --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-240.md @@ -0,0 +1,3 @@ +- + + foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-240.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-240.md.prettier-snap new file mode 100644 index 000000000000..a4b65cdd2e99 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-240.md.prettier-snap @@ -0,0 +1 @@ +- foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-241.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-241.md new file mode 100644 index 000000000000..6cba1b2c4d2f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-241.md @@ -0,0 +1,3 @@ +- foo +- +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-241.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-241.md.prettier-snap new file mode 100644 index 000000000000..6cba1b2c4d2f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-241.md.prettier-snap @@ -0,0 +1,3 @@ +- foo +- +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-242.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-242.md new file mode 100644 index 000000000000..bd59a0b28e34 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-242.md @@ -0,0 +1,3 @@ +- foo +- +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-242.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-242.md.prettier-snap new file mode 100644 index 000000000000..6cba1b2c4d2f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-242.md.prettier-snap @@ -0,0 +1,3 @@ +- foo +- +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-243.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-243.md new file mode 100644 index 000000000000..b66e6e89ca82 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-243.md @@ -0,0 +1,3 @@ +1. foo +2. +3. bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-243.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-243.md.prettier-snap new file mode 100644 index 000000000000..b66e6e89ca82 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-243.md.prettier-snap @@ -0,0 +1,3 @@ +1. foo +2. +3. bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-244.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-244.md new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-244.md @@ -0,0 +1 @@ +* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-244.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-244.md.prettier-snap new file mode 100644 index 000000000000..39cdd0ded6df --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-244.md.prettier-snap @@ -0,0 +1 @@ +- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-245.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-245.md new file mode 100644 index 000000000000..3c36e94a485b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-245.md @@ -0,0 +1,6 @@ + 1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-245.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-245.md.prettier-snap new file mode 100644 index 000000000000..fa8bddeced3a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-245.md.prettier-snap @@ -0,0 +1,6 @@ +1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-246.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-246.md new file mode 100644 index 000000000000..fb9a5767410c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-246.md @@ -0,0 +1,6 @@ + 1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-246.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-246.md.prettier-snap new file mode 100644 index 000000000000..fa8bddeced3a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-246.md.prettier-snap @@ -0,0 +1,6 @@ +1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-247.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-247.md new file mode 100644 index 000000000000..570cd5c29491 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-247.md @@ -0,0 +1,6 @@ + 1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-247.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-247.md.prettier-snap new file mode 100644 index 000000000000..fa8bddeced3a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-247.md.prettier-snap @@ -0,0 +1,6 @@ +1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-248.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-248.md new file mode 100644 index 000000000000..d4dbb56bee73 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-248.md @@ -0,0 +1,6 @@ + 1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-248.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-248.md.prettier-snap new file mode 100644 index 000000000000..d4dbb56bee73 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-248.md.prettier-snap @@ -0,0 +1,6 @@ + 1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-249.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-249.md new file mode 100644 index 000000000000..b5967e853bb7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-249.md @@ -0,0 +1,6 @@ + 1. A paragraph +with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-249.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-249.md.prettier-snap new file mode 100644 index 000000000000..6090726341df --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-249.md.prettier-snap @@ -0,0 +1,6 @@ +1. A paragraph + with two lines. + + indented code + + > A block quote. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-25.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-25.md new file mode 100644 index 000000000000..53325381b889 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-25.md @@ -0,0 +1,3 @@ +- foo +*** +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-25.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-25.md.prettier-snap new file mode 100644 index 000000000000..5e7c1e1252fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-25.md.prettier-snap @@ -0,0 +1,5 @@ +- foo + +--- + +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-250.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-250.md new file mode 100644 index 000000000000..992395f9ace0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-250.md @@ -0,0 +1,2 @@ + 1. A paragraph + with two lines. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-250.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-250.md.prettier-snap new file mode 100644 index 000000000000..a97aa3d767a3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-250.md.prettier-snap @@ -0,0 +1,2 @@ +1. A paragraph + with two lines. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-251.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-251.md new file mode 100644 index 000000000000..dfde9e15c9c0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-251.md @@ -0,0 +1,2 @@ +> 1. > Blockquote +continued here. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-251.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-251.md.prettier-snap new file mode 100644 index 000000000000..604b2be9f2ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-251.md.prettier-snap @@ -0,0 +1,2 @@ +> 1. > Blockquote +> > continued here. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-252.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-252.md new file mode 100644 index 000000000000..8ed833fa2ae4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-252.md @@ -0,0 +1,2 @@ +> 1. > Blockquote +> continued here. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-252.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-252.md.prettier-snap new file mode 100644 index 000000000000..604b2be9f2ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-252.md.prettier-snap @@ -0,0 +1,2 @@ +> 1. > Blockquote +> > continued here. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-253.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-253.md new file mode 100644 index 000000000000..5cb3457ae452 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-253.md @@ -0,0 +1,3 @@ +- foo + - bar + - baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-253.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-253.md.prettier-snap new file mode 100644 index 000000000000..5cb3457ae452 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-253.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + - bar + - baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-254.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-254.md new file mode 100644 index 000000000000..695a24ccc933 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-254.md @@ -0,0 +1,3 @@ +- foo + - bar + - baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-254.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-254.md.prettier-snap new file mode 100644 index 000000000000..c34e2ee746d4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-254.md.prettier-snap @@ -0,0 +1,3 @@ +- foo +- bar +- baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-255.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-255.md new file mode 100644 index 000000000000..a3c37b51ef2f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-255.md @@ -0,0 +1,2 @@ +10) foo + - bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-255.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-255.md.prettier-snap new file mode 100644 index 000000000000..f4d3600228d6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-255.md.prettier-snap @@ -0,0 +1,2 @@ +10. foo + - bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-256.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-256.md new file mode 100644 index 000000000000..79dc4a107e6f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-256.md @@ -0,0 +1,2 @@ +10) foo + - bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-256.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-256.md.prettier-snap new file mode 100644 index 000000000000..9a908fdb3692 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-256.md.prettier-snap @@ -0,0 +1,3 @@ +10. foo + +- bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-257.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-257.md new file mode 100644 index 000000000000..ea9292901a3c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-257.md @@ -0,0 +1 @@ +- - foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-257.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-257.md.prettier-snap new file mode 100644 index 000000000000..ea9292901a3c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-257.md.prettier-snap @@ -0,0 +1 @@ +- - foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-258.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-258.md new file mode 100644 index 000000000000..ae09f697f18c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-258.md @@ -0,0 +1 @@ +1. - 2. foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-258.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-258.md.prettier-snap new file mode 100644 index 000000000000..ae09f697f18c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-258.md.prettier-snap @@ -0,0 +1 @@ +1. - 2. foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-259.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-259.md new file mode 100644 index 000000000000..211c7eb8b3e0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-259.md @@ -0,0 +1,4 @@ +- # Foo +- Bar + --- + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-259.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-259.md.prettier-snap new file mode 100644 index 000000000000..912f9a9eb3e2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-259.md.prettier-snap @@ -0,0 +1,3 @@ +- # Foo +- ## Bar + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-26.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-26.md new file mode 100644 index 000000000000..2220eb1d23f0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-26.md @@ -0,0 +1,3 @@ +Foo +*** +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-26.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-26.md.prettier-snap new file mode 100644 index 000000000000..603075407a9f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-26.md.prettier-snap @@ -0,0 +1,5 @@ +Foo + +--- + +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-260.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-260.md new file mode 100644 index 000000000000..6dd55b57400a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-260.md @@ -0,0 +1,3 @@ +- foo +- bar ++ baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-260.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-260.md.prettier-snap new file mode 100644 index 000000000000..6439c98d847d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-260.md.prettier-snap @@ -0,0 +1,4 @@ +- foo +- bar + +* baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-261.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-261.md new file mode 100644 index 000000000000..db513d8baeb8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-261.md @@ -0,0 +1,3 @@ +1. foo +2. bar +3) baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-261.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-261.md.prettier-snap new file mode 100644 index 000000000000..e490858478db --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-261.md.prettier-snap @@ -0,0 +1,4 @@ +1. foo +2. bar + +3) baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-262.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-262.md new file mode 100644 index 000000000000..00388851ce7b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-262.md @@ -0,0 +1,3 @@ +Foo +- bar +- baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-262.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-262.md.prettier-snap new file mode 100644 index 000000000000..caa4b3488abe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-262.md.prettier-snap @@ -0,0 +1,4 @@ +Foo + +- bar +- baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-263.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-263.md new file mode 100644 index 000000000000..bf99ee17d82e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-263.md @@ -0,0 +1,2 @@ +The number of windows in my house is +14. The number of doors is 6. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-263.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-263.md.prettier-snap new file mode 100644 index 000000000000..14f4f5ca3efa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-263.md.prettier-snap @@ -0,0 +1 @@ +The number of windows in my house is 14. The number of doors is 6. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-264.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-264.md new file mode 100644 index 000000000000..7e5eb8e25066 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-264.md @@ -0,0 +1,6 @@ +- foo + +- bar + + +- baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-264.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-264.md.prettier-snap new file mode 100644 index 000000000000..0dc78bf230cc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-264.md.prettier-snap @@ -0,0 +1,5 @@ +- foo + +- bar + +- baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-265.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-265.md new file mode 100644 index 000000000000..ba1fa695782e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-265.md @@ -0,0 +1,5 @@ +- foo + + + bar +- baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-265.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-265.md.prettier-snap new file mode 100644 index 000000000000..8fdaed034fab --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-265.md.prettier-snap @@ -0,0 +1,5 @@ +- foo + + bar + +- baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-266.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-266.md new file mode 100644 index 000000000000..98c55a4cde3f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-266.md @@ -0,0 +1,6 @@ +- foo + - bar + - baz + + + bim diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-266.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-266.md.prettier-snap new file mode 100644 index 000000000000..f6077749384d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-266.md.prettier-snap @@ -0,0 +1,5 @@ +- foo + - bar + - baz + + bim diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-267.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-267.md new file mode 100644 index 000000000000..b7e24153bc73 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-267.md @@ -0,0 +1,6 @@ +- foo +- bar + + +- baz +- bim diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-267.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-267.md.prettier-snap new file mode 100644 index 000000000000..97ef2ef43066 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-267.md.prettier-snap @@ -0,0 +1,5 @@ +- foo +- bar + +- baz +- bim diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-268.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-268.md new file mode 100644 index 000000000000..aac8f8bdeb97 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-268.md @@ -0,0 +1,8 @@ +- foo + + notcode + +- foo + + + code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-268.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-268.md.prettier-snap new file mode 100644 index 000000000000..4906afaf6c57 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-268.md.prettier-snap @@ -0,0 +1,7 @@ +- foo + + notcode + +- foo + + code diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-269.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-269.md new file mode 100644 index 000000000000..3b69f5fe71b3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-269.md @@ -0,0 +1,9 @@ +- a + - b + - c + - d + - e + - f + - g + - h +- i diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-269.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-269.md.prettier-snap new file mode 100644 index 000000000000..9e04965af75f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-269.md.prettier-snap @@ -0,0 +1,9 @@ +- a +- b +- c +- d +- e +- f +- g +- h +- i diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-27.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-27.md new file mode 100644 index 000000000000..a074babb3fda --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-27.md @@ -0,0 +1,3 @@ +Foo +--- +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-27.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-27.md.prettier-snap new file mode 100644 index 000000000000..e1605d429488 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-27.md.prettier-snap @@ -0,0 +1,3 @@ +## Foo + +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-271.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-271.md new file mode 100644 index 000000000000..8b097b3f7a31 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-271.md @@ -0,0 +1,4 @@ +- a +- b + +- c diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-271.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-271.md.prettier-snap new file mode 100644 index 000000000000..8b097b3f7a31 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-271.md.prettier-snap @@ -0,0 +1,4 @@ +- a +- b + +- c diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-272.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-272.md new file mode 100644 index 000000000000..53cfd3e1a579 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-272.md @@ -0,0 +1,4 @@ +* a +* + +* c diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-272.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-272.md.prettier-snap new file mode 100644 index 000000000000..ee1b2ddb0c79 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-272.md.prettier-snap @@ -0,0 +1,4 @@ +- a +- + +- c diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-273.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-273.md new file mode 100644 index 000000000000..0e9779fa7fe6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-273.md @@ -0,0 +1,5 @@ +- a +- b + + c +- d diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-273.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-273.md.prettier-snap new file mode 100644 index 000000000000..b2768a327014 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-273.md.prettier-snap @@ -0,0 +1,6 @@ +- a +- b + + c + +- d diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-274.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-274.md new file mode 100644 index 000000000000..6e7920b6cc47 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-274.md @@ -0,0 +1,5 @@ +- a +- b + + [ref]: /url +- d diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-274.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-274.md.prettier-snap new file mode 100644 index 000000000000..d71159f3a10f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-274.md.prettier-snap @@ -0,0 +1,6 @@ +- a +- b + + [ref]: /url + +- d diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-276.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-276.md new file mode 100644 index 000000000000..d966bed390a4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-276.md @@ -0,0 +1,5 @@ +- a + - b + + c +- d diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-276.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-276.md.prettier-snap new file mode 100644 index 000000000000..71f534c79118 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-276.md.prettier-snap @@ -0,0 +1,6 @@ +- a + - b + + c + +- d diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-277.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-277.md new file mode 100644 index 000000000000..c19b29033bc1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-277.md @@ -0,0 +1,4 @@ +* a + > b + > +* c diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-277.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-277.md.prettier-snap new file mode 100644 index 000000000000..6ecffd01ac78 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-277.md.prettier-snap @@ -0,0 +1,3 @@ +- a + > b +- c diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-278.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-278.md new file mode 100644 index 000000000000..35922caaac61 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-278.md @@ -0,0 +1,6 @@ +- a + > b + ``` + c + ``` +- d diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-278.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-278.md.prettier-snap new file mode 100644 index 000000000000..35922caaac61 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-278.md.prettier-snap @@ -0,0 +1,6 @@ +- a + > b + ``` + c + ``` +- d diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-279.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-279.md new file mode 100644 index 000000000000..46ae6f50f57e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-279.md @@ -0,0 +1 @@ +- a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-279.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-279.md.prettier-snap new file mode 100644 index 000000000000..46ae6f50f57e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-279.md.prettier-snap @@ -0,0 +1 @@ +- a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-28.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-28.md new file mode 100644 index 000000000000..1e624b446d9c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-28.md @@ -0,0 +1,3 @@ +* Foo +* * * +* Bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-28.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-28.md.prettier-snap new file mode 100644 index 000000000000..779ff0b86501 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-28.md.prettier-snap @@ -0,0 +1,5 @@ +- Foo + +--- + +- Bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-280.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-280.md new file mode 100644 index 000000000000..4426b8687111 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-280.md @@ -0,0 +1,2 @@ +- a + - b diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-280.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-280.md.prettier-snap new file mode 100644 index 000000000000..4426b8687111 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-280.md.prettier-snap @@ -0,0 +1,2 @@ +- a + - b diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-281.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-281.md new file mode 100644 index 000000000000..ecaf41deb51e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-281.md @@ -0,0 +1,5 @@ +1. ``` + foo + ``` + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-281.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-281.md.prettier-snap new file mode 100644 index 000000000000..ecaf41deb51e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-281.md.prettier-snap @@ -0,0 +1,5 @@ +1. ``` + foo + ``` + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-282.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-282.md new file mode 100644 index 000000000000..e70f3353a3dc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-282.md @@ -0,0 +1,4 @@ +* foo + * bar + + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-282.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-282.md.prettier-snap new file mode 100644 index 000000000000..d03161c56a06 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-282.md.prettier-snap @@ -0,0 +1,4 @@ +- foo + - bar + + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-283.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-283.md new file mode 100644 index 000000000000..2db4162cdbc6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-283.md @@ -0,0 +1,7 @@ +- a + - b + - c + +- d + - e + - f diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-283.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-283.md.prettier-snap new file mode 100644 index 000000000000..2db4162cdbc6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-283.md.prettier-snap @@ -0,0 +1,7 @@ +- a + - b + - c + +- d + - e + - f diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-284.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-284.md new file mode 100644 index 000000000000..ce5530a2a98e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-284.md @@ -0,0 +1 @@ +`hi`lo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-284.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-284.md.prettier-snap new file mode 100644 index 000000000000..ce5530a2a98e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-284.md.prettier-snap @@ -0,0 +1 @@ +`hi`lo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-285.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-285.md new file mode 100644 index 000000000000..ab7110f1e09f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-285.md @@ -0,0 +1 @@ +\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-285.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-285.md.prettier-snap new file mode 100644 index 000000000000..ab7110f1e09f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-285.md.prettier-snap @@ -0,0 +1 @@ +\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-286.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-286.md new file mode 100644 index 000000000000..403b25ec137c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-286.md @@ -0,0 +1 @@ +\ \A\a\ \3\φ\« diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-286.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-286.md.prettier-snap new file mode 100644 index 000000000000..4efeac93eff0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-286.md.prettier-snap @@ -0,0 +1 @@ +\ \A\a\ \3\φ\« diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-287.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-287.md new file mode 100644 index 000000000000..2589ca69350e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-287.md @@ -0,0 +1,8 @@ +\*not emphasized* +\
not a tag +\[not a link](/foo) +\`not code` +1\. not a list +\* not a list +\# not a heading +\[foo]: /url "not a reference" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-287.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-287.md.prettier-snap new file mode 100644 index 000000000000..44471493a0a6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-287.md.prettier-snap @@ -0,0 +1,7 @@ +\*not emphasized\* +\
not a tag +\[not a link](/foo) +\`not code` +1\. not a list \* not a list +\# not a heading +\[foo]: /url "not a reference" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-288.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-288.md new file mode 100644 index 000000000000..ebb163c74e30 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-288.md @@ -0,0 +1 @@ +\\*emphasis* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-288.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-288.md.prettier-snap new file mode 100644 index 000000000000..53f17d741228 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-288.md.prettier-snap @@ -0,0 +1 @@ +\\_emphasis_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-289.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-289.md new file mode 100644 index 000000000000..b9e729336d03 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-289.md @@ -0,0 +1,2 @@ +foo\ +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-289.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-289.md.prettier-snap new file mode 100644 index 000000000000..b9e729336d03 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-289.md.prettier-snap @@ -0,0 +1,2 @@ +foo\ +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-29.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-29.md new file mode 100644 index 000000000000..b3c371bb4779 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-29.md @@ -0,0 +1,2 @@ +- Foo +- * * * diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-29.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-29.md.prettier-snap new file mode 100644 index 000000000000..e1c7f1d1c12e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-29.md.prettier-snap @@ -0,0 +1,2 @@ +- Foo +- *** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-290.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-290.md new file mode 100644 index 000000000000..c33ed7318a1b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-290.md @@ -0,0 +1 @@ +`` \[\` `` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-290.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-290.md.prettier-snap new file mode 100644 index 000000000000..c33ed7318a1b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-290.md.prettier-snap @@ -0,0 +1 @@ +`` \[\` `` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-291.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-291.md new file mode 100644 index 000000000000..b77cb84901fd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-291.md @@ -0,0 +1 @@ + \[\] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-291.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-291.md.prettier-snap new file mode 100644 index 000000000000..b77cb84901fd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-291.md.prettier-snap @@ -0,0 +1 @@ + \[\] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-292.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-292.md new file mode 100644 index 000000000000..5f6c96929c54 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-292.md @@ -0,0 +1,3 @@ +~~~ +\[\] +~~~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-292.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-292.md.prettier-snap new file mode 100644 index 000000000000..37c9c57cacec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-292.md.prettier-snap @@ -0,0 +1,3 @@ +``` +\[\] +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-293.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-293.md new file mode 100644 index 000000000000..8617b525e152 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-293.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-293.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-293.md.prettier-snap new file mode 100644 index 000000000000..8617b525e152 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-293.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-294.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-294.md new file mode 100644 index 000000000000..5847573b1619 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-294.md @@ -0,0 +1 @@ +
diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-294.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-294.md.prettier-snap new file mode 100644 index 000000000000..5847573b1619 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-294.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-295.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-295.md new file mode 100644 index 000000000000..bb2564d8d21d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-295.md @@ -0,0 +1 @@ +[foo](/bar\* "ti\*tle") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-295.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-295.md.prettier-snap new file mode 100644 index 000000000000..2d0fecc5a81d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-295.md.prettier-snap @@ -0,0 +1 @@ +[foo](/bar* "ti*tle") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-296.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-296.md new file mode 100644 index 000000000000..a2075c7b1bf6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-296.md @@ -0,0 +1,3 @@ +[foo] + +[foo]: /bar\* "ti\*tle" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-296.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-296.md.prettier-snap new file mode 100644 index 000000000000..7fd292eafc02 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-296.md.prettier-snap @@ -0,0 +1,3 @@ +[foo] + +[foo]: /bar* "ti*tle" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-297.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-297.md new file mode 100644 index 000000000000..61e7eb1f1504 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-297.md @@ -0,0 +1,3 @@ +``` foo\+bar +foo +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-297.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-297.md.prettier-snap new file mode 100644 index 000000000000..b5096d0549b3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-297.md.prettier-snap @@ -0,0 +1,3 @@ +```foo+bar +foo +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-298.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-298.md new file mode 100644 index 000000000000..ec7a884c051a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-298.md @@ -0,0 +1,3 @@ +  & © Æ Ď +¾ ℋ ⅆ +∲ ≧̸ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-298.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-298.md.prettier-snap new file mode 100644 index 000000000000..32ac3d781af9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-298.md.prettier-snap @@ -0,0 +1,3 @@ +  & © Æ Ď +¾ ℋ ⅆ +∲ ≧̸ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-299.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-299.md new file mode 100644 index 000000000000..206e59dffeaa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-299.md @@ -0,0 +1 @@ +# Ӓ Ϡ � � diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-299.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-299.md.prettier-snap new file mode 100644 index 000000000000..206e59dffeaa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-299.md.prettier-snap @@ -0,0 +1 @@ +# Ӓ Ϡ � � diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-3.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-3.md new file mode 100644 index 000000000000..06ade40adb2c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-3.md @@ -0,0 +1,2 @@ + a a + ὐ a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-3.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-3.md.prettier-snap new file mode 100644 index 000000000000..06ade40adb2c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-3.md.prettier-snap @@ -0,0 +1,2 @@ + a a + ὐ a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-30.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-30.md new file mode 100644 index 000000000000..30ba6a834abe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-30.md @@ -0,0 +1,6 @@ +# foo +## foo +### foo +#### foo +##### foo +###### foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-30.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-30.md.prettier-snap new file mode 100644 index 000000000000..ead9ae18d7d8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-30.md.prettier-snap @@ -0,0 +1,11 @@ +# foo + +## foo + +### foo + +#### foo + +##### foo + +###### foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-300.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-300.md new file mode 100644 index 000000000000..b8ac4c19c48f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-300.md @@ -0,0 +1 @@ +" ആ ಫ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-300.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-300.md.prettier-snap new file mode 100644 index 000000000000..b8ac4c19c48f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-300.md.prettier-snap @@ -0,0 +1 @@ +" ആ ಫ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-301.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-301.md new file mode 100644 index 000000000000..28ec95e4fde7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-301.md @@ -0,0 +1,2 @@ +  &x; &#; &#x; +&ThisIsNotDefined; &hi?; diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-301.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-301.md.prettier-snap new file mode 100644 index 000000000000..28ec95e4fde7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-301.md.prettier-snap @@ -0,0 +1,2 @@ +  &x; &#; &#x; +&ThisIsNotDefined; &hi?; diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-302.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-302.md new file mode 100644 index 000000000000..5145bad99210 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-302.md @@ -0,0 +1 @@ +© diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-302.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-302.md.prettier-snap new file mode 100644 index 000000000000..5145bad99210 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-302.md.prettier-snap @@ -0,0 +1 @@ +© diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-303.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-303.md new file mode 100644 index 000000000000..a7d69fe639cb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-303.md @@ -0,0 +1 @@ +&MadeUpEntity; diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-303.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-303.md.prettier-snap new file mode 100644 index 000000000000..a7d69fe639cb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-303.md.prettier-snap @@ -0,0 +1 @@ +&MadeUpEntity; diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-304.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-304.md new file mode 100644 index 000000000000..f031b3ae0fcf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-304.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-304.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-304.md.prettier-snap new file mode 100644 index 000000000000..f031b3ae0fcf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-304.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-305.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-305.md new file mode 100644 index 000000000000..3a1facab72e5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-305.md @@ -0,0 +1 @@ +[foo](/föö "föö") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-305.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-305.md.prettier-snap new file mode 100644 index 000000000000..696c256e787d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-305.md.prettier-snap @@ -0,0 +1 @@ +[foo](/föö "föö") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-306.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-306.md new file mode 100644 index 000000000000..558785cfe442 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-306.md @@ -0,0 +1,3 @@ +[foo] + +[foo]: /föö "föö" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-306.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-306.md.prettier-snap new file mode 100644 index 000000000000..b91c4b80ab51 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-306.md.prettier-snap @@ -0,0 +1,3 @@ +[foo] + +[foo]: /föö "föö" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-307.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-307.md new file mode 100644 index 000000000000..a8bb7936b17d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-307.md @@ -0,0 +1,3 @@ +``` föö +foo +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-307.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-307.md.prettier-snap new file mode 100644 index 000000000000..f196f0521acd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-307.md.prettier-snap @@ -0,0 +1,3 @@ +```föö +foo +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-308.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-308.md new file mode 100644 index 000000000000..06b0cc251561 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-308.md @@ -0,0 +1 @@ +`föö` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-308.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-308.md.prettier-snap new file mode 100644 index 000000000000..06b0cc251561 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-308.md.prettier-snap @@ -0,0 +1 @@ +`föö` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-309.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-309.md new file mode 100644 index 000000000000..a9d2914b0c64 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-309.md @@ -0,0 +1 @@ + föfö diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-309.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-309.md.prettier-snap new file mode 100644 index 000000000000..a9d2914b0c64 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-309.md.prettier-snap @@ -0,0 +1 @@ + föfö diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-31.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-31.md new file mode 100644 index 000000000000..62a68de6d620 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-31.md @@ -0,0 +1 @@ +####### foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-31.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-31.md.prettier-snap new file mode 100644 index 000000000000..62a68de6d620 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-31.md.prettier-snap @@ -0,0 +1 @@ +####### foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-310.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-310.md new file mode 100644 index 000000000000..347253a07996 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-310.md @@ -0,0 +1 @@ +`foo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-310.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-310.md.prettier-snap new file mode 100644 index 000000000000..347253a07996 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-310.md.prettier-snap @@ -0,0 +1 @@ +`foo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-311.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-311.md new file mode 100644 index 000000000000..2f362f8dc085 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-311.md @@ -0,0 +1 @@ +`` foo ` bar `` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-311.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-311.md.prettier-snap new file mode 100644 index 000000000000..2e7f186f87bf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-311.md.prettier-snap @@ -0,0 +1 @@ +``foo ` bar `` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-312.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-312.md new file mode 100644 index 000000000000..ee4b7cc34e57 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-312.md @@ -0,0 +1 @@ +` `` ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-312.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-312.md.prettier-snap new file mode 100644 index 000000000000..ee4b7cc34e57 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-312.md.prettier-snap @@ -0,0 +1 @@ +` `` ` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-313.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-313.md new file mode 100644 index 000000000000..0b91b3f61d5d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-313.md @@ -0,0 +1,3 @@ +`` +foo +`` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-313.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-313.md.prettier-snap new file mode 100644 index 000000000000..347253a07996 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-313.md.prettier-snap @@ -0,0 +1 @@ +`foo` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-314.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-314.md new file mode 100644 index 000000000000..3ff02a6f0e15 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-314.md @@ -0,0 +1,2 @@ +`foo bar + baz` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-314.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-314.md.prettier-snap new file mode 100644 index 000000000000..3ff02a6f0e15 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-314.md.prettier-snap @@ -0,0 +1,2 @@ +`foo bar + baz` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-315.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-315.md new file mode 100644 index 000000000000..2c292197f6f9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-315.md @@ -0,0 +1 @@ +`foo `` bar` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-315.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-315.md.prettier-snap new file mode 100644 index 000000000000..2c292197f6f9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-315.md.prettier-snap @@ -0,0 +1 @@ +`foo `` bar` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-316.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-316.md new file mode 100644 index 000000000000..c06c57e1d9e0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-316.md @@ -0,0 +1 @@ +`foo\`bar` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-316.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-316.md.prettier-snap new file mode 100644 index 000000000000..c06c57e1d9e0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-316.md.prettier-snap @@ -0,0 +1 @@ +`foo\`bar` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-317.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-317.md new file mode 100644 index 000000000000..19839265f5ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-317.md @@ -0,0 +1 @@ +*foo`*` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-317.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-317.md.prettier-snap new file mode 100644 index 000000000000..bb3410a2abf6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-317.md.prettier-snap @@ -0,0 +1 @@ +_foo`_` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-318.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-318.md new file mode 100644 index 000000000000..583db7ebaeb1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-318.md @@ -0,0 +1 @@ +[not a `link](/foo`) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-318.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-318.md.prettier-snap new file mode 100644 index 000000000000..583db7ebaeb1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-318.md.prettier-snap @@ -0,0 +1 @@ +[not a `link](/foo`) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-319.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-319.md new file mode 100644 index 000000000000..73760e8e71d9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-319.md @@ -0,0 +1 @@ +`` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-319.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-319.md.prettier-snap new file mode 100644 index 000000000000..73760e8e71d9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-319.md.prettier-snap @@ -0,0 +1 @@ +`` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-32.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-32.md new file mode 100644 index 000000000000..ce2094aa441d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-32.md @@ -0,0 +1,3 @@ +#5 bolt + +#hashtag diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-32.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-32.md.prettier-snap new file mode 100644 index 000000000000..ce2094aa441d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-32.md.prettier-snap @@ -0,0 +1,3 @@ +#5 bolt + +#hashtag diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-320.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-320.md new file mode 100644 index 000000000000..d6f87630eafd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-320.md @@ -0,0 +1 @@ +` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-320.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-320.md.prettier-snap new file mode 100644 index 000000000000..d6f87630eafd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-320.md.prettier-snap @@ -0,0 +1 @@ +` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-321.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-321.md new file mode 100644 index 000000000000..f19ec8ad2378 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-321.md @@ -0,0 +1 @@ +`` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-321.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-321.md.prettier-snap new file mode 100644 index 000000000000..f19ec8ad2378 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-321.md.prettier-snap @@ -0,0 +1 @@ +`` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-322.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-322.md new file mode 100644 index 000000000000..d2257e8d96e9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-322.md @@ -0,0 +1 @@ +` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-322.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-322.md.prettier-snap new file mode 100644 index 000000000000..d2257e8d96e9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-322.md.prettier-snap @@ -0,0 +1 @@ +` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-324.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-324.md new file mode 100644 index 000000000000..53b90d3f5aba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-324.md @@ -0,0 +1 @@ +`foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-324.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-324.md.prettier-snap new file mode 100644 index 000000000000..53b90d3f5aba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-324.md.prettier-snap @@ -0,0 +1 @@ +`foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-325.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-325.md new file mode 100644 index 000000000000..2f2d5c91cd62 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-325.md @@ -0,0 +1 @@ +*foo bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-325.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-325.md.prettier-snap new file mode 100644 index 000000000000..3e153bcdd079 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-325.md.prettier-snap @@ -0,0 +1 @@ +_foo bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-326.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-326.md new file mode 100644 index 000000000000..f60b4adb9ac5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-326.md @@ -0,0 +1 @@ +a * foo bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-326.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-326.md.prettier-snap new file mode 100644 index 000000000000..deafe5b25145 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-326.md.prettier-snap @@ -0,0 +1 @@ +a _ foo bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-327.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-327.md new file mode 100644 index 000000000000..c1c9417c848c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-327.md @@ -0,0 +1 @@ +a*"foo"* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-327.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-327.md.prettier-snap new file mode 100644 index 000000000000..c1c9417c848c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-327.md.prettier-snap @@ -0,0 +1 @@ +a*"foo"* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-328.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-328.md new file mode 100644 index 000000000000..4ff89a73cd88 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-328.md @@ -0,0 +1 @@ +* a * diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-328.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-328.md.prettier-snap new file mode 100644 index 000000000000..a679ed41aaa3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-328.md.prettier-snap @@ -0,0 +1 @@ +_ a _ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-329.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-329.md new file mode 100644 index 000000000000..ea74be0098ca --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-329.md @@ -0,0 +1 @@ +foo*bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-329.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-329.md.prettier-snap new file mode 100644 index 000000000000..ea74be0098ca --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-329.md.prettier-snap @@ -0,0 +1 @@ +foo*bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-33.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-33.md new file mode 100644 index 000000000000..437e042fc792 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-33.md @@ -0,0 +1 @@ +# foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-33.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-33.md.prettier-snap new file mode 100644 index 000000000000..c2a839280e2e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-33.md.prettier-snap @@ -0,0 +1 @@ +# foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-330.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-330.md new file mode 100644 index 000000000000..3a5b49bc27d2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-330.md @@ -0,0 +1 @@ +5*6*78 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-330.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-330.md.prettier-snap new file mode 100644 index 000000000000..3a5b49bc27d2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-330.md.prettier-snap @@ -0,0 +1 @@ +5*6*78 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-331.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-331.md new file mode 100644 index 000000000000..3e153bcdd079 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-331.md @@ -0,0 +1 @@ +_foo bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-331.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-331.md.prettier-snap new file mode 100644 index 000000000000..3e153bcdd079 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-331.md.prettier-snap @@ -0,0 +1 @@ +_foo bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-332.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-332.md new file mode 100644 index 000000000000..fd4de9c1cd41 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-332.md @@ -0,0 +1 @@ +_ foo bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-332.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-332.md.prettier-snap new file mode 100644 index 000000000000..fd4de9c1cd41 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-332.md.prettier-snap @@ -0,0 +1 @@ +_ foo bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-333.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-333.md new file mode 100644 index 000000000000..95b60f7e9ed2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-333.md @@ -0,0 +1 @@ +a_"foo"_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-333.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-333.md.prettier-snap new file mode 100644 index 000000000000..c1c9417c848c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-333.md.prettier-snap @@ -0,0 +1 @@ +a*"foo"* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-334.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-334.md new file mode 100644 index 000000000000..cd1eaff436d4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-334.md @@ -0,0 +1 @@ +foo_bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-334.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-334.md.prettier-snap new file mode 100644 index 000000000000..ea74be0098ca --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-334.md.prettier-snap @@ -0,0 +1 @@ +foo*bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-335.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-335.md new file mode 100644 index 000000000000..9156e51278f7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-335.md @@ -0,0 +1 @@ +5_6_78 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-335.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-335.md.prettier-snap new file mode 100644 index 000000000000..9156e51278f7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-335.md.prettier-snap @@ -0,0 +1 @@ +5_6_78 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-336.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-336.md new file mode 100644 index 000000000000..8def792b2353 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-336.md @@ -0,0 +1 @@ +пристаням_стремятся_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-336.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-336.md.prettier-snap new file mode 100644 index 000000000000..d7e50ec28e04 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-336.md.prettier-snap @@ -0,0 +1 @@ +пристаням*стремятся* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-337.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-337.md new file mode 100644 index 000000000000..591faf9d1cfa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-337.md @@ -0,0 +1 @@ +aa_"bb"_cc diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-337.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-337.md.prettier-snap new file mode 100644 index 000000000000..5728e7824d69 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-337.md.prettier-snap @@ -0,0 +1 @@ +aa\_"bb"\_cc diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-338.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-338.md new file mode 100644 index 000000000000..7b3eb7fa3148 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-338.md @@ -0,0 +1 @@ +foo-_(bar)_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-338.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-338.md.prettier-snap new file mode 100644 index 000000000000..7b3eb7fa3148 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-338.md.prettier-snap @@ -0,0 +1 @@ +foo-_(bar)_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-339.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-339.md new file mode 100644 index 000000000000..b80ae664e584 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-339.md @@ -0,0 +1 @@ +_foo* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-339.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-339.md.prettier-snap new file mode 100644 index 000000000000..eb9bf4724946 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-339.md.prettier-snap @@ -0,0 +1 @@ +\_foo\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-34.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-34.md new file mode 100644 index 000000000000..000606eecbb2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-34.md @@ -0,0 +1 @@ +\## foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-34.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-34.md.prettier-snap new file mode 100644 index 000000000000..000606eecbb2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-34.md.prettier-snap @@ -0,0 +1 @@ +\## foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-340.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-340.md new file mode 100644 index 000000000000..352b70db34c7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-340.md @@ -0,0 +1 @@ +*foo bar * diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-340.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-340.md.prettier-snap new file mode 100644 index 000000000000..be9f7377a763 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-340.md.prettier-snap @@ -0,0 +1 @@ +_foo bar _ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-341.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-341.md new file mode 100644 index 000000000000..90faebb82a16 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-341.md @@ -0,0 +1,2 @@ +*foo bar +* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-341.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-341.md.prettier-snap new file mode 100644 index 000000000000..307906959955 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-341.md.prettier-snap @@ -0,0 +1,3 @@ +\*foo bar + +- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-342.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-342.md new file mode 100644 index 000000000000..871d970658ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-342.md @@ -0,0 +1 @@ +*(*foo) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-342.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-342.md.prettier-snap new file mode 100644 index 000000000000..871d970658ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-342.md.prettier-snap @@ -0,0 +1 @@ +*(*foo) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-343.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-343.md new file mode 100644 index 000000000000..744a7955cdcc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-343.md @@ -0,0 +1 @@ +*(*foo*)* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-343.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-343.md.prettier-snap new file mode 100644 index 000000000000..744a7955cdcc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-343.md.prettier-snap @@ -0,0 +1 @@ +*(*foo*)* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-344.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-344.md new file mode 100644 index 000000000000..ae7d79d87c1e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-344.md @@ -0,0 +1 @@ +*foo*bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-344.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-344.md.prettier-snap new file mode 100644 index 000000000000..ae7d79d87c1e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-344.md.prettier-snap @@ -0,0 +1 @@ +*foo*bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-345.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-345.md new file mode 100644 index 000000000000..be9f7377a763 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-345.md @@ -0,0 +1 @@ +_foo bar _ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-345.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-345.md.prettier-snap new file mode 100644 index 000000000000..be9f7377a763 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-345.md.prettier-snap @@ -0,0 +1 @@ +_foo bar _ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-346.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-346.md new file mode 100644 index 000000000000..56bef8723316 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-346.md @@ -0,0 +1 @@ +_(_foo) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-346.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-346.md.prettier-snap new file mode 100644 index 000000000000..6114a9ec2431 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-346.md.prettier-snap @@ -0,0 +1 @@ +\_(\_foo) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-347.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-347.md new file mode 100644 index 000000000000..e0c1daaa4973 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-347.md @@ -0,0 +1 @@ +_(_foo_)_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-347.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-347.md.prettier-snap new file mode 100644 index 000000000000..bc26755dd2c3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-347.md.prettier-snap @@ -0,0 +1 @@ +_(\_foo_)\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-348.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-348.md new file mode 100644 index 000000000000..022a1edc9250 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-348.md @@ -0,0 +1 @@ +_foo_bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-348.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-348.md.prettier-snap new file mode 100644 index 000000000000..a1c5c152e509 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-348.md.prettier-snap @@ -0,0 +1 @@ +\_foo_bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-349.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-349.md new file mode 100644 index 000000000000..62abc8e90221 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-349.md @@ -0,0 +1 @@ +_пристаням_стремятся diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-349.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-349.md.prettier-snap new file mode 100644 index 000000000000..9bf6e80912ed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-349.md.prettier-snap @@ -0,0 +1 @@ +*пристаням*стремятся diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-35.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-35.md new file mode 100644 index 000000000000..80a52a6bf8d4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-35.md @@ -0,0 +1 @@ +# foo *bar* \*baz\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-35.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-35.md.prettier-snap new file mode 100644 index 000000000000..279a63131e4c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-35.md.prettier-snap @@ -0,0 +1 @@ +# foo _bar_ \*baz\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-350.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-350.md new file mode 100644 index 000000000000..7a08cf5ac521 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-350.md @@ -0,0 +1 @@ +_foo_bar_baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-350.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-350.md.prettier-snap new file mode 100644 index 000000000000..7a08cf5ac521 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-350.md.prettier-snap @@ -0,0 +1 @@ +_foo_bar_baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-351.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-351.md new file mode 100644 index 000000000000..120d76784a81 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-351.md @@ -0,0 +1 @@ +_(bar)_. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-351.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-351.md.prettier-snap new file mode 100644 index 000000000000..120d76784a81 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-351.md.prettier-snap @@ -0,0 +1 @@ +_(bar)_. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-352.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-352.md new file mode 100644 index 000000000000..5df1c55badaf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-352.md @@ -0,0 +1 @@ +**foo bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-352.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-352.md.prettier-snap new file mode 100644 index 000000000000..5df1c55badaf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-352.md.prettier-snap @@ -0,0 +1 @@ +**foo bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-353.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-353.md new file mode 100644 index 000000000000..b2c3d9f81012 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-353.md @@ -0,0 +1 @@ +** foo bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-353.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-353.md.prettier-snap new file mode 100644 index 000000000000..b2c3d9f81012 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-353.md.prettier-snap @@ -0,0 +1 @@ +** foo bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-354.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-354.md new file mode 100644 index 000000000000..07d0f1c9face --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-354.md @@ -0,0 +1 @@ +a**"foo"** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-354.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-354.md.prettier-snap new file mode 100644 index 000000000000..07d0f1c9face --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-354.md.prettier-snap @@ -0,0 +1 @@ +a**"foo"** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-355.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-355.md new file mode 100644 index 000000000000..69898b925328 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-355.md @@ -0,0 +1 @@ +foo**bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-355.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-355.md.prettier-snap new file mode 100644 index 000000000000..69898b925328 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-355.md.prettier-snap @@ -0,0 +1 @@ +foo**bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-356.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-356.md new file mode 100644 index 000000000000..4a42d07935f0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-356.md @@ -0,0 +1 @@ +__foo bar__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-356.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-356.md.prettier-snap new file mode 100644 index 000000000000..5df1c55badaf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-356.md.prettier-snap @@ -0,0 +1 @@ +**foo bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-357.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-357.md new file mode 100644 index 000000000000..80cd52a726cd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-357.md @@ -0,0 +1 @@ +__ foo bar__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-357.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-357.md.prettier-snap new file mode 100644 index 000000000000..b2c3d9f81012 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-357.md.prettier-snap @@ -0,0 +1 @@ +** foo bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-358.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-358.md new file mode 100644 index 000000000000..65fbb8d541ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-358.md @@ -0,0 +1,2 @@ +__ +foo bar__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-358.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-358.md.prettier-snap new file mode 100644 index 000000000000..c49f2cfc2bed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-358.md.prettier-snap @@ -0,0 +1,2 @@ +** +foo bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-359.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-359.md new file mode 100644 index 000000000000..a179892bea87 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-359.md @@ -0,0 +1 @@ +a__"foo"__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-359.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-359.md.prettier-snap new file mode 100644 index 000000000000..07d0f1c9face --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-359.md.prettier-snap @@ -0,0 +1 @@ +a**"foo"** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-36.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-36.md new file mode 100644 index 000000000000..aca958340225 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-36.md @@ -0,0 +1 @@ +# foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-36.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-36.md.prettier-snap new file mode 100644 index 000000000000..c2a839280e2e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-36.md.prettier-snap @@ -0,0 +1 @@ +# foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-360.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-360.md new file mode 100644 index 000000000000..e4a192d1e904 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-360.md @@ -0,0 +1 @@ +foo__bar__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-360.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-360.md.prettier-snap new file mode 100644 index 000000000000..69898b925328 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-360.md.prettier-snap @@ -0,0 +1 @@ +foo**bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-361.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-361.md new file mode 100644 index 000000000000..f18fac88dfdf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-361.md @@ -0,0 +1 @@ +5__6__78 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-361.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-361.md.prettier-snap new file mode 100644 index 000000000000..966d2199aa20 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-361.md.prettier-snap @@ -0,0 +1 @@ +5**6**78 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-362.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-362.md new file mode 100644 index 000000000000..149e0941c229 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-362.md @@ -0,0 +1 @@ +пристаням__стремятся__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-362.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-362.md.prettier-snap new file mode 100644 index 000000000000..ea07d9a92263 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-362.md.prettier-snap @@ -0,0 +1 @@ +пристаням**стремятся** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-363.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-363.md new file mode 100644 index 000000000000..de02a407907f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-363.md @@ -0,0 +1 @@ +__foo, __bar__, baz__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-363.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-363.md.prettier-snap new file mode 100644 index 000000000000..7574b2e884a5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-363.md.prettier-snap @@ -0,0 +1 @@ +**foo, **bar**, baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-364.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-364.md new file mode 100644 index 000000000000..7a7751cab33b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-364.md @@ -0,0 +1 @@ +foo-__(bar)__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-364.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-364.md.prettier-snap new file mode 100644 index 000000000000..236a1cc1584b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-364.md.prettier-snap @@ -0,0 +1 @@ +foo-**(bar)** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-365.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-365.md new file mode 100644 index 000000000000..80174923c8e1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-365.md @@ -0,0 +1 @@ +**foo bar ** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-365.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-365.md.prettier-snap new file mode 100644 index 000000000000..80174923c8e1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-365.md.prettier-snap @@ -0,0 +1 @@ +**foo bar ** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-366.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-366.md new file mode 100644 index 000000000000..17df45979d66 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-366.md @@ -0,0 +1 @@ +**(**foo) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-366.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-366.md.prettier-snap new file mode 100644 index 000000000000..17df45979d66 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-366.md.prettier-snap @@ -0,0 +1 @@ +**(**foo) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-367.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-367.md new file mode 100644 index 000000000000..261a3189a03a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-367.md @@ -0,0 +1 @@ +*(**foo**)* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-367.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-367.md.prettier-snap new file mode 100644 index 000000000000..7dc4f17f9726 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-367.md.prettier-snap @@ -0,0 +1 @@ +_(**foo**)_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-368.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-368.md new file mode 100644 index 000000000000..29a53c025f05 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-368.md @@ -0,0 +1,2 @@ +**Gomphocarpus (*Gomphocarpus physocarpus*, syn. +*Asclepias physocarpa*)** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-368.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-368.md.prettier-snap new file mode 100644 index 000000000000..cb593a5fed86 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-368.md.prettier-snap @@ -0,0 +1,2 @@ +**Gomphocarpus (_Gomphocarpus physocarpus_, syn. +_Asclepias physocarpa_)** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-369.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-369.md new file mode 100644 index 000000000000..0a57ed112331 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-369.md @@ -0,0 +1 @@ +**foo "*bar*" foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-369.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-369.md.prettier-snap new file mode 100644 index 000000000000..0cc71e095043 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-369.md.prettier-snap @@ -0,0 +1 @@ +**foo "_bar_" foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-37.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-37.md new file mode 100644 index 000000000000..27db179d0085 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-37.md @@ -0,0 +1,3 @@ + ### foo + ## foo + # foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-37.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-37.md.prettier-snap new file mode 100644 index 000000000000..56c59e59809c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-37.md.prettier-snap @@ -0,0 +1,5 @@ +### foo + +## foo + +# foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-370.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-370.md new file mode 100644 index 000000000000..80890520a27d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-370.md @@ -0,0 +1 @@ +**foo**bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-370.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-370.md.prettier-snap new file mode 100644 index 000000000000..80890520a27d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-370.md.prettier-snap @@ -0,0 +1 @@ +**foo**bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-371.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-371.md new file mode 100644 index 000000000000..7399a53679da --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-371.md @@ -0,0 +1 @@ +__foo bar __ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-371.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-371.md.prettier-snap new file mode 100644 index 000000000000..80174923c8e1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-371.md.prettier-snap @@ -0,0 +1 @@ +**foo bar ** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-372.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-372.md new file mode 100644 index 000000000000..c89f62c1e321 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-372.md @@ -0,0 +1 @@ +__(__foo) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-372.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-372.md.prettier-snap new file mode 100644 index 000000000000..17df45979d66 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-372.md.prettier-snap @@ -0,0 +1 @@ +**(**foo) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-373.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-373.md new file mode 100644 index 000000000000..1e6311722933 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-373.md @@ -0,0 +1 @@ +_(__foo__)_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-373.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-373.md.prettier-snap new file mode 100644 index 000000000000..7dc4f17f9726 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-373.md.prettier-snap @@ -0,0 +1 @@ +_(**foo**)_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-374.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-374.md new file mode 100644 index 000000000000..02e7eb11ba2d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-374.md @@ -0,0 +1 @@ +__foo__bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-374.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-374.md.prettier-snap new file mode 100644 index 000000000000..80890520a27d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-374.md.prettier-snap @@ -0,0 +1 @@ +**foo**bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-375.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-375.md new file mode 100644 index 000000000000..ba2d93c1e7ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-375.md @@ -0,0 +1 @@ +__пристаням__стремятся diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-375.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-375.md.prettier-snap new file mode 100644 index 000000000000..d3b10f196bda --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-375.md.prettier-snap @@ -0,0 +1 @@ +**пристаням**стремятся diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-376.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-376.md new file mode 100644 index 000000000000..766e71498e75 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-376.md @@ -0,0 +1 @@ +__foo__bar__baz__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-376.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-376.md.prettier-snap new file mode 100644 index 000000000000..c06a2611f2cc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-376.md.prettier-snap @@ -0,0 +1 @@ +**foo**bar**baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-377.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-377.md new file mode 100644 index 000000000000..bf9a71e2aced --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-377.md @@ -0,0 +1 @@ +__(bar)__. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-377.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-377.md.prettier-snap new file mode 100644 index 000000000000..c1112805e25c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-377.md.prettier-snap @@ -0,0 +1 @@ +**(bar)**. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-378.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-378.md new file mode 100644 index 000000000000..18875e185daf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-378.md @@ -0,0 +1 @@ +*foo [bar](/url)* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-378.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-378.md.prettier-snap new file mode 100644 index 000000000000..fb1bc777ef14 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-378.md.prettier-snap @@ -0,0 +1 @@ +_foo [bar](/url)_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-379.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-379.md new file mode 100644 index 000000000000..8a0e32ad26e4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-379.md @@ -0,0 +1,2 @@ +*foo +bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-379.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-379.md.prettier-snap new file mode 100644 index 000000000000..c908e7481b71 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-379.md.prettier-snap @@ -0,0 +1,2 @@ +_foo +bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-38.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-38.md new file mode 100644 index 000000000000..b228975b5ece --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-38.md @@ -0,0 +1 @@ + # foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-38.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-38.md.prettier-snap new file mode 100644 index 000000000000..b228975b5ece --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-38.md.prettier-snap @@ -0,0 +1 @@ + # foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-380.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-380.md new file mode 100644 index 000000000000..b426f688bfd8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-380.md @@ -0,0 +1 @@ +_foo __bar__ baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-380.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-380.md.prettier-snap new file mode 100644 index 000000000000..d498da901af2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-380.md.prettier-snap @@ -0,0 +1 @@ +_foo **bar** baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-381.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-381.md new file mode 100644 index 000000000000..dba565a89fbe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-381.md @@ -0,0 +1 @@ +_foo _bar_ baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-381.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-381.md.prettier-snap new file mode 100644 index 000000000000..7c274a0746d5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-381.md.prettier-snap @@ -0,0 +1 @@ +_foo \_bar_ baz\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-382.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-382.md new file mode 100644 index 000000000000..039a04b2ce5b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-382.md @@ -0,0 +1 @@ +__foo_ bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-382.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-382.md.prettier-snap new file mode 100644 index 000000000000..066e98fdb1f9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-382.md.prettier-snap @@ -0,0 +1 @@ +\__foo_ bar\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-383.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-383.md new file mode 100644 index 000000000000..39c54b452058 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-383.md @@ -0,0 +1 @@ +*foo *bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-383.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-383.md.prettier-snap new file mode 100644 index 000000000000..ef0ea8a0c99f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-383.md.prettier-snap @@ -0,0 +1 @@ +*foo *bar\*\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-384.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-384.md new file mode 100644 index 000000000000..bc4e9514afe6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-384.md @@ -0,0 +1 @@ +*foo **bar** baz* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-384.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-384.md.prettier-snap new file mode 100644 index 000000000000..d498da901af2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-384.md.prettier-snap @@ -0,0 +1 @@ +_foo **bar** baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-385.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-385.md new file mode 100644 index 000000000000..12dcbd749f12 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-385.md @@ -0,0 +1 @@ +*foo**bar**baz* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-385.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-385.md.prettier-snap new file mode 100644 index 000000000000..0f47373871f9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-385.md.prettier-snap @@ -0,0 +1 @@ +_foo**bar**baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-386.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-386.md new file mode 100644 index 000000000000..5c256ecc91ac --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-386.md @@ -0,0 +1 @@ +***foo** bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-386.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-386.md.prettier-snap new file mode 100644 index 000000000000..132d7f3caff0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-386.md.prettier-snap @@ -0,0 +1 @@ +**\*foo** bar\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-387.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-387.md new file mode 100644 index 000000000000..24d37388c277 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-387.md @@ -0,0 +1 @@ +*foo **bar*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-387.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-387.md.prettier-snap new file mode 100644 index 000000000000..7a58d0860c03 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-387.md.prettier-snap @@ -0,0 +1 @@ +\*foo **bar\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-388.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-388.md new file mode 100644 index 000000000000..31e65ec1986a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-388.md @@ -0,0 +1 @@ +*foo**bar*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-388.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-388.md.prettier-snap new file mode 100644 index 000000000000..490b657f036c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-388.md.prettier-snap @@ -0,0 +1 @@ +\*foo**bar\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-39.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-39.md new file mode 100644 index 000000000000..d4727ce4f14b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-39.md @@ -0,0 +1,2 @@ +foo + # bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-39.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-39.md.prettier-snap new file mode 100644 index 000000000000..cf30e689a9d4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-39.md.prettier-snap @@ -0,0 +1 @@ +foo # bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-390.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-390.md new file mode 100644 index 000000000000..c25bb7be92ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-390.md @@ -0,0 +1 @@ +*foo [*bar*](/url)* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-390.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-390.md.prettier-snap new file mode 100644 index 000000000000..c25bb7be92ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-390.md.prettier-snap @@ -0,0 +1 @@ +*foo [*bar*](/url)* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-391.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-391.md new file mode 100644 index 000000000000..acb0385dba64 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-391.md @@ -0,0 +1 @@ +** is not an empty emphasis diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-391.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-391.md.prettier-snap new file mode 100644 index 000000000000..7d472c377d30 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-391.md.prettier-snap @@ -0,0 +1 @@ +\*\* is not an empty emphasis diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-392.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-392.md new file mode 100644 index 000000000000..f8b3dd4c8372 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-392.md @@ -0,0 +1 @@ +**** is not an empty strong emphasis diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-392.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-392.md.prettier-snap new file mode 100644 index 000000000000..bc6edafa7c2b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-392.md.prettier-snap @@ -0,0 +1 @@ +\*\*\*\* is not an empty strong emphasis diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-393.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-393.md new file mode 100644 index 000000000000..9d024624b87b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-393.md @@ -0,0 +1 @@ +**foo [bar](/url)** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-393.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-393.md.prettier-snap new file mode 100644 index 000000000000..9d024624b87b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-393.md.prettier-snap @@ -0,0 +1 @@ +**foo [bar](/url)** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-394.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-394.md new file mode 100644 index 000000000000..d76f3c1cf618 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-394.md @@ -0,0 +1,2 @@ +**foo +bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-394.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-394.md.prettier-snap new file mode 100644 index 000000000000..d76f3c1cf618 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-394.md.prettier-snap @@ -0,0 +1,2 @@ +**foo +bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-395.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-395.md new file mode 100644 index 000000000000..12f5c64b0bdc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-395.md @@ -0,0 +1 @@ +__foo _bar_ baz__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-395.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-395.md.prettier-snap new file mode 100644 index 000000000000..5ac89e5dfda4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-395.md.prettier-snap @@ -0,0 +1 @@ +**foo _bar_ baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-396.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-396.md new file mode 100644 index 000000000000..39f059a3f916 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-396.md @@ -0,0 +1 @@ +__foo __bar__ baz__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-396.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-396.md.prettier-snap new file mode 100644 index 000000000000..8383efba8ddc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-396.md.prettier-snap @@ -0,0 +1 @@ +**foo **bar** baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-397.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-397.md new file mode 100644 index 000000000000..3375ff1b8a9a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-397.md @@ -0,0 +1 @@ +____foo__ bar__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-397.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-397.md.prettier-snap new file mode 100644 index 000000000000..15b07cefc8a8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-397.md.prettier-snap @@ -0,0 +1 @@ +\_**\_foo** bar\_\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-398.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-398.md new file mode 100644 index 000000000000..a9624face977 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-398.md @@ -0,0 +1 @@ +**foo **bar**** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-398.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-398.md.prettier-snap new file mode 100644 index 000000000000..0b159a0b1791 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-398.md.prettier-snap @@ -0,0 +1 @@ +**foo **bar\*\*\*\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-399.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-399.md new file mode 100644 index 000000000000..dbca1bcf5d4b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-399.md @@ -0,0 +1 @@ +**foo *bar* baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-399.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-399.md.prettier-snap new file mode 100644 index 000000000000..5ac89e5dfda4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-399.md.prettier-snap @@ -0,0 +1 @@ +**foo _bar_ baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-4.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-4.md new file mode 100644 index 000000000000..868514cd1c90 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-4.md @@ -0,0 +1,3 @@ + - foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-4.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-4.md.prettier-snap new file mode 100644 index 000000000000..58871287f77a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-4.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-40.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-40.md new file mode 100644 index 000000000000..732d48d6495a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-40.md @@ -0,0 +1,2 @@ +## foo ## + ### bar ### diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-40.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-40.md.prettier-snap new file mode 100644 index 000000000000..d96ba4912b8d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-40.md.prettier-snap @@ -0,0 +1,3 @@ +## foo + +### bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-400.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-400.md new file mode 100644 index 000000000000..f0bb0200d240 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-400.md @@ -0,0 +1 @@ +**foo*bar*baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-400.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-400.md.prettier-snap new file mode 100644 index 000000000000..f0bb0200d240 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-400.md.prettier-snap @@ -0,0 +1 @@ +**foo*bar*baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-401.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-401.md new file mode 100644 index 000000000000..ef17aa005ef4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-401.md @@ -0,0 +1 @@ +***foo* bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-401.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-401.md.prettier-snap new file mode 100644 index 000000000000..99b1d159cd1e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-401.md.prettier-snap @@ -0,0 +1 @@ +**_foo_ bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-402.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-402.md new file mode 100644 index 000000000000..bf26de5d28ed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-402.md @@ -0,0 +1 @@ +**foo *bar*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-402.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-402.md.prettier-snap new file mode 100644 index 000000000000..2394ffed225d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-402.md.prettier-snap @@ -0,0 +1 @@ +**foo _bar_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-403.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-403.md new file mode 100644 index 000000000000..14fa708c9000 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-403.md @@ -0,0 +1,2 @@ +**foo *bar **baz** +bim* bop** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-403.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-403.md.prettier-snap new file mode 100644 index 000000000000..9fe30480ba80 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-403.md.prettier-snap @@ -0,0 +1,2 @@ +**foo \*bar **baz** +bim\* bop** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-404.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-404.md new file mode 100644 index 000000000000..16d4c995dc6d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-404.md @@ -0,0 +1 @@ +**foo [*bar*](/url)** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-404.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-404.md.prettier-snap new file mode 100644 index 000000000000..19e0c46c54b3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-404.md.prettier-snap @@ -0,0 +1 @@ +**foo [_bar_](/url)** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-405.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-405.md new file mode 100644 index 000000000000..c4ffda93c55b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-405.md @@ -0,0 +1 @@ +__ is not an empty emphasis diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-405.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-405.md.prettier-snap new file mode 100644 index 000000000000..8d88a1e3977f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-405.md.prettier-snap @@ -0,0 +1 @@ +\_\_ is not an empty emphasis diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-406.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-406.md new file mode 100644 index 000000000000..5c448801b64d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-406.md @@ -0,0 +1 @@ +____ is not an empty strong emphasis diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-406.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-406.md.prettier-snap new file mode 100644 index 000000000000..72b9f0d3bfc9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-406.md.prettier-snap @@ -0,0 +1 @@ +\_\_\_\_ is not an empty strong emphasis diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-407.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-407.md new file mode 100644 index 000000000000..11e71372aae3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-407.md @@ -0,0 +1 @@ +foo *** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-407.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-407.md.prettier-snap new file mode 100644 index 000000000000..1d477cc1972a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-407.md.prettier-snap @@ -0,0 +1 @@ +foo \*\*\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-408.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-408.md new file mode 100644 index 000000000000..3aa9a0bd6ae8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-408.md @@ -0,0 +1 @@ +foo *\** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-408.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-408.md.prettier-snap new file mode 100644 index 000000000000..1d477cc1972a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-408.md.prettier-snap @@ -0,0 +1 @@ +foo \*\*\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-41.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-41.md new file mode 100644 index 000000000000..c95b19f6b92f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-41.md @@ -0,0 +1,2 @@ +# foo ################################## +##### foo ## diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-41.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-41.md.prettier-snap new file mode 100644 index 000000000000..11ca602de98b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-41.md.prettier-snap @@ -0,0 +1,3 @@ +# foo + +##### foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-410.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-410.md new file mode 100644 index 000000000000..386c153eda13 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-410.md @@ -0,0 +1 @@ +foo ***** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-410.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-410.md.prettier-snap new file mode 100644 index 000000000000..222cdc08298b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-410.md.prettier-snap @@ -0,0 +1 @@ +foo **\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-411.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-411.md new file mode 100644 index 000000000000..222cdc08298b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-411.md @@ -0,0 +1 @@ +foo **\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-411.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-411.md.prettier-snap new file mode 100644 index 000000000000..222cdc08298b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-411.md.prettier-snap @@ -0,0 +1 @@ +foo **\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-412.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-412.md new file mode 100644 index 000000000000..f76408432760 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-412.md @@ -0,0 +1 @@ +foo **_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-412.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-412.md.prettier-snap new file mode 100644 index 000000000000..a13b6b08bc1e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-412.md.prettier-snap @@ -0,0 +1 @@ +foo **\_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-413.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-413.md new file mode 100644 index 000000000000..de4558b623ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-413.md @@ -0,0 +1 @@ +**foo* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-413.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-413.md.prettier-snap new file mode 100644 index 000000000000..37bdb309a90b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-413.md.prettier-snap @@ -0,0 +1 @@ +\*_foo_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-414.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-414.md new file mode 100644 index 000000000000..124c120da458 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-414.md @@ -0,0 +1 @@ +*foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-414.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-414.md.prettier-snap new file mode 100644 index 000000000000..5b2d016e69b6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-414.md.prettier-snap @@ -0,0 +1 @@ +\*foo\*\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-415.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-415.md new file mode 100644 index 000000000000..956748d459ff --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-415.md @@ -0,0 +1 @@ +***foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-415.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-415.md.prettier-snap new file mode 100644 index 000000000000..dc28a6f08c9a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-415.md.prettier-snap @@ -0,0 +1 @@ +**\*foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-417.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-417.md new file mode 100644 index 000000000000..4fb72641f4e9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-417.md @@ -0,0 +1 @@ +**foo*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-417.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-417.md.prettier-snap new file mode 100644 index 000000000000..de76cf9911ad --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-417.md.prettier-snap @@ -0,0 +1 @@ +**foo\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-418.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-418.md new file mode 100644 index 000000000000..de2e0f74e13b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-418.md @@ -0,0 +1 @@ +*foo**** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-418.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-418.md.prettier-snap new file mode 100644 index 000000000000..9b91df55ffea --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-418.md.prettier-snap @@ -0,0 +1 @@ +\*foo\*\*\*\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-419.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-419.md new file mode 100644 index 000000000000..6f4afb2b3b29 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-419.md @@ -0,0 +1 @@ +foo ___ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-419.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-419.md.prettier-snap new file mode 100644 index 000000000000..89d678db2496 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-419.md.prettier-snap @@ -0,0 +1 @@ +foo \_\_\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-42.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-42.md new file mode 100644 index 000000000000..5531c715c3af --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-42.md @@ -0,0 +1 @@ +### foo ### diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-42.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-42.md.prettier-snap new file mode 100644 index 000000000000..3edf1fc921d5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-42.md.prettier-snap @@ -0,0 +1 @@ +### foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-420.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-420.md new file mode 100644 index 000000000000..f608e9190841 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-420.md @@ -0,0 +1 @@ +foo _\__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-420.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-420.md.prettier-snap new file mode 100644 index 000000000000..89d678db2496 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-420.md.prettier-snap @@ -0,0 +1 @@ +foo \_\_\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-421.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-421.md new file mode 100644 index 000000000000..33f7af445a62 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-421.md @@ -0,0 +1 @@ +foo _*_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-421.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-421.md.prettier-snap new file mode 100644 index 000000000000..538bdd27ee25 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-421.md.prettier-snap @@ -0,0 +1 @@ +foo _\*_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-422.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-422.md new file mode 100644 index 000000000000..b14a534ed3e8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-422.md @@ -0,0 +1 @@ +foo _____ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-422.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-422.md.prettier-snap new file mode 100644 index 000000000000..a13b6b08bc1e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-422.md.prettier-snap @@ -0,0 +1 @@ +foo **\_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-423.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-423.md new file mode 100644 index 000000000000..3b9e4391cfc5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-423.md @@ -0,0 +1 @@ +foo __\___ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-423.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-423.md.prettier-snap new file mode 100644 index 000000000000..a13b6b08bc1e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-423.md.prettier-snap @@ -0,0 +1 @@ +foo **\_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-424.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-424.md new file mode 100644 index 000000000000..4f1d5a1c8d13 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-424.md @@ -0,0 +1 @@ +foo __*__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-424.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-424.md.prettier-snap new file mode 100644 index 000000000000..222cdc08298b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-424.md.prettier-snap @@ -0,0 +1 @@ +foo **\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-425.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-425.md new file mode 100644 index 000000000000..99c351c4aa18 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-425.md @@ -0,0 +1 @@ +__foo_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-425.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-425.md.prettier-snap new file mode 100644 index 000000000000..b44bf5853e56 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-425.md.prettier-snap @@ -0,0 +1 @@ +\__foo_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-426.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-426.md new file mode 100644 index 000000000000..ad1a4e0675b8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-426.md @@ -0,0 +1 @@ +_foo__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-426.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-426.md.prettier-snap new file mode 100644 index 000000000000..1379dbc993f6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-426.md.prettier-snap @@ -0,0 +1 @@ +\_foo\_\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-427.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-427.md new file mode 100644 index 000000000000..7522567846ed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-427.md @@ -0,0 +1 @@ +___foo__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-427.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-427.md.prettier-snap new file mode 100644 index 000000000000..3e625826773b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-427.md.prettier-snap @@ -0,0 +1 @@ +**\_foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-428.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-428.md new file mode 100644 index 000000000000..b884fd00f9b0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-428.md @@ -0,0 +1 @@ +____foo_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-428.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-428.md.prettier-snap new file mode 100644 index 000000000000..61afcb166b94 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-428.md.prettier-snap @@ -0,0 +1 @@ +\__\_\_foo_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-429.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-429.md new file mode 100644 index 000000000000..e47aa2f22241 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-429.md @@ -0,0 +1 @@ +__foo___ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-429.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-429.md.prettier-snap new file mode 100644 index 000000000000..a54e2650d1b4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-429.md.prettier-snap @@ -0,0 +1 @@ +**foo\_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-43.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-43.md new file mode 100644 index 000000000000..9a168f0abc53 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-43.md @@ -0,0 +1 @@ +### foo ### b diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-43.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-43.md.prettier-snap new file mode 100644 index 000000000000..9a168f0abc53 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-43.md.prettier-snap @@ -0,0 +1 @@ +### foo ### b diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-430.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-430.md new file mode 100644 index 000000000000..ac2adb16890b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-430.md @@ -0,0 +1 @@ +_foo____ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-430.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-430.md.prettier-snap new file mode 100644 index 000000000000..742baf22d77d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-430.md.prettier-snap @@ -0,0 +1 @@ +\_foo\_\_\_\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-431.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-431.md new file mode 100644 index 000000000000..537975bcb7b7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-431.md @@ -0,0 +1 @@ +**foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-431.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-431.md.prettier-snap new file mode 100644 index 000000000000..537975bcb7b7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-431.md.prettier-snap @@ -0,0 +1 @@ +**foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-432.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-432.md new file mode 100644 index 000000000000..e8adabba0fae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-432.md @@ -0,0 +1 @@ +*_foo_* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-432.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-432.md.prettier-snap new file mode 100644 index 000000000000..aa6ff3603e70 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-432.md.prettier-snap @@ -0,0 +1 @@ +_*foo*_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-433.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-433.md new file mode 100644 index 000000000000..3c82a3a91006 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-433.md @@ -0,0 +1 @@ +__foo__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-433.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-433.md.prettier-snap new file mode 100644 index 000000000000..537975bcb7b7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-433.md.prettier-snap @@ -0,0 +1 @@ +**foo** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-434.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-434.md new file mode 100644 index 000000000000..aa6ff3603e70 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-434.md @@ -0,0 +1 @@ +_*foo*_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-434.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-434.md.prettier-snap new file mode 100644 index 000000000000..aa6ff3603e70 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-434.md.prettier-snap @@ -0,0 +1 @@ +_*foo*_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-435.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-435.md new file mode 100644 index 000000000000..8fb72710dd83 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-435.md @@ -0,0 +1 @@ +****foo**** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-435.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-435.md.prettier-snap new file mode 100644 index 000000000000..745d1a2baa89 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-435.md.prettier-snap @@ -0,0 +1 @@ +\***\*foo\*\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-436.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-436.md new file mode 100644 index 000000000000..91e4c709894f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-436.md @@ -0,0 +1 @@ +____foo____ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-436.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-436.md.prettier-snap new file mode 100644 index 000000000000..d030c905fda2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-436.md.prettier-snap @@ -0,0 +1 @@ +\_**\_foo\_\_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-437.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-437.md new file mode 100644 index 000000000000..80d7223e52bd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-437.md @@ -0,0 +1 @@ +******foo****** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-437.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-437.md.prettier-snap new file mode 100644 index 000000000000..c0ca671092f4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-437.md.prettier-snap @@ -0,0 +1 @@ +**\*\***foo**\*\*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-438.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-438.md new file mode 100644 index 000000000000..3826f2e8d658 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-438.md @@ -0,0 +1 @@ +***foo*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-438.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-438.md.prettier-snap new file mode 100644 index 000000000000..695212f23473 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-438.md.prettier-snap @@ -0,0 +1 @@ +**_foo_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-439.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-439.md new file mode 100644 index 000000000000..b76b52145fa7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-439.md @@ -0,0 +1 @@ +_____foo_____ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-439.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-439.md.prettier-snap new file mode 100644 index 000000000000..ad9e124986d9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-439.md.prettier-snap @@ -0,0 +1 @@ +**\_**foo**\_** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-44.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-44.md new file mode 100644 index 000000000000..4cdd0325b984 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-44.md @@ -0,0 +1 @@ +# foo# diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-44.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-44.md.prettier-snap new file mode 100644 index 000000000000..4cdd0325b984 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-44.md.prettier-snap @@ -0,0 +1 @@ +# foo# diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-440.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-440.md new file mode 100644 index 000000000000..612fe7223e83 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-440.md @@ -0,0 +1 @@ +*foo _bar* baz_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-440.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-440.md.prettier-snap new file mode 100644 index 000000000000..7c274a0746d5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-440.md.prettier-snap @@ -0,0 +1 @@ +_foo \_bar_ baz\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-441.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-441.md new file mode 100644 index 000000000000..b8c1a8783ff0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-441.md @@ -0,0 +1 @@ +**foo*bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-441.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-441.md.prettier-snap new file mode 100644 index 000000000000..2c340e93ed5a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-441.md.prettier-snap @@ -0,0 +1 @@ +**foo\*bar** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-442.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-442.md new file mode 100644 index 000000000000..fdf80c0adbab --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-442.md @@ -0,0 +1 @@ +*foo __bar *baz bim__ bam* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-442.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-442.md.prettier-snap new file mode 100644 index 000000000000..693c8e5924b8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-442.md.prettier-snap @@ -0,0 +1 @@ +*foo \_\_bar *baz bim\_\_ bam\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-443.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-443.md new file mode 100644 index 000000000000..5cf3ae739dd1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-443.md @@ -0,0 +1 @@ +**foo **bar baz** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-443.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-443.md.prettier-snap new file mode 100644 index 000000000000..16d3e9a44c0e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-443.md.prettier-snap @@ -0,0 +1 @@ +**foo **bar baz\*\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-444.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-444.md new file mode 100644 index 000000000000..582368181f93 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-444.md @@ -0,0 +1 @@ +*foo *bar baz* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-444.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-444.md.prettier-snap new file mode 100644 index 000000000000..9a97b766a26c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-444.md.prettier-snap @@ -0,0 +1 @@ +*foo *bar baz\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-445.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-445.md new file mode 100644 index 000000000000..9caf0ca9b46a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-445.md @@ -0,0 +1 @@ +*[bar*](/url) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-445.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-445.md.prettier-snap new file mode 100644 index 000000000000..3bbb9c86f41f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-445.md.prettier-snap @@ -0,0 +1 @@ +_[bar_](/url) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-446.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-446.md new file mode 100644 index 000000000000..253719b37c54 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-446.md @@ -0,0 +1 @@ +_foo [bar_](/url) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-446.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-446.md.prettier-snap new file mode 100644 index 000000000000..253719b37c54 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-446.md.prettier-snap @@ -0,0 +1 @@ +_foo [bar_](/url) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-447.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-447.md new file mode 100644 index 000000000000..faea505bf82c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-447.md @@ -0,0 +1 @@ +* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-447.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-447.md.prettier-snap new file mode 100644 index 000000000000..7c6ba2670e3b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-447.md.prettier-snap @@ -0,0 +1 @@ +_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-448.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-448.md new file mode 100644 index 000000000000..f449303e8671 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-448.md @@ -0,0 +1 @@ +** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-448.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-448.md.prettier-snap new file mode 100644 index 000000000000..f449303e8671 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-448.md.prettier-snap @@ -0,0 +1 @@ +** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-449.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-449.md new file mode 100644 index 000000000000..44c55cae64a9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-449.md @@ -0,0 +1 @@ +__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-449.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-449.md.prettier-snap new file mode 100644 index 000000000000..f449303e8671 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-449.md.prettier-snap @@ -0,0 +1 @@ +** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-45.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-45.md new file mode 100644 index 000000000000..0cbdb9fc5ecc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-45.md @@ -0,0 +1,3 @@ +### foo \### +## foo #\## +# foo \# diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-45.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-45.md.prettier-snap new file mode 100644 index 000000000000..807e4465505b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-45.md.prettier-snap @@ -0,0 +1,5 @@ +### foo \### + +## foo #\## + +# foo \# diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-450.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-450.md new file mode 100644 index 000000000000..2fa64d31645e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-450.md @@ -0,0 +1 @@ +*a `*`* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-450.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-450.md.prettier-snap new file mode 100644 index 000000000000..32e0b2ad6634 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-450.md.prettier-snap @@ -0,0 +1 @@ +_a `_`\* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-451.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-451.md new file mode 100644 index 000000000000..f9807d1cc677 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-451.md @@ -0,0 +1 @@ +_a `_`_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-451.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-451.md.prettier-snap new file mode 100644 index 000000000000..b6654b23c8ed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-451.md.prettier-snap @@ -0,0 +1 @@ +_a `_`\_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-452.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-452.md new file mode 100644 index 000000000000..1c89122f1035 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-452.md @@ -0,0 +1 @@ +**a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-452.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-452.md.prettier-snap new file mode 100644 index 000000000000..1c89122f1035 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-452.md.prettier-snap @@ -0,0 +1 @@ +**a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-453.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-453.md new file mode 100644 index 000000000000..4139e2e3f537 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-453.md @@ -0,0 +1 @@ +__a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-453.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-453.md.prettier-snap new file mode 100644 index 000000000000..1c89122f1035 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-453.md.prettier-snap @@ -0,0 +1 @@ +**a diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-454.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-454.md new file mode 100644 index 000000000000..f74c396d8c7f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-454.md @@ -0,0 +1 @@ +[link](/uri "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-454.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-454.md.prettier-snap new file mode 100644 index 000000000000..f74c396d8c7f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-454.md.prettier-snap @@ -0,0 +1 @@ +[link](/uri "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-455.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-455.md new file mode 100644 index 000000000000..0dc9fb5d314a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-455.md @@ -0,0 +1 @@ +[link](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-455.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-455.md.prettier-snap new file mode 100644 index 000000000000..0dc9fb5d314a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-455.md.prettier-snap @@ -0,0 +1 @@ +[link](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-456.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-456.md new file mode 100644 index 000000000000..e077941a6fbe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-456.md @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-456.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-456.md.prettier-snap new file mode 100644 index 000000000000..e077941a6fbe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-456.md.prettier-snap @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-457.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-457.md new file mode 100644 index 000000000000..41aa6ed48774 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-457.md @@ -0,0 +1 @@ +[link](<>) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-457.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-457.md.prettier-snap new file mode 100644 index 000000000000..e077941a6fbe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-457.md.prettier-snap @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-458.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-458.md new file mode 100644 index 000000000000..3eda074ebb9b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-458.md @@ -0,0 +1 @@ +[link](/my uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-458.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-458.md.prettier-snap new file mode 100644 index 000000000000..3eda074ebb9b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-458.md.prettier-snap @@ -0,0 +1 @@ +[link](/my uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-459.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-459.md new file mode 100644 index 000000000000..90bc560324cc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-459.md @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-459.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-459.md.prettier-snap new file mode 100644 index 000000000000..90bc560324cc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-459.md.prettier-snap @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-46.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-46.md new file mode 100644 index 000000000000..89c2284121ce --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-46.md @@ -0,0 +1,5 @@ + + +**** +## foo +**** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-46.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-46.md.prettier-snap new file mode 100644 index 000000000000..ececc4c13ac9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-46.md.prettier-snap @@ -0,0 +1,7 @@ + + +--- + +## foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-460.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-460.md new file mode 100644 index 000000000000..14579b763f7a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-460.md @@ -0,0 +1,2 @@ +[link](foo +bar) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-460.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-460.md.prettier-snap new file mode 100644 index 000000000000..14579b763f7a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-460.md.prettier-snap @@ -0,0 +1,2 @@ +[link](foo +bar) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-461.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-461.md new file mode 100644 index 000000000000..5f975f865cb5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-461.md @@ -0,0 +1,2 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-461.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-461.md.prettier-snap new file mode 100644 index 000000000000..5f975f865cb5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-461.md.prettier-snap @@ -0,0 +1,2 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-462.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-462.md new file mode 100644 index 000000000000..22cef98149bb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-462.md @@ -0,0 +1 @@ +[link](\(foo\)) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-462.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-462.md.prettier-snap new file mode 100644 index 000000000000..3ff2ea81af11 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-462.md.prettier-snap @@ -0,0 +1 @@ +[link](<(foo)>) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-463.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-463.md new file mode 100644 index 000000000000..ec41195c009f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-463.md @@ -0,0 +1 @@ +[link]((foo)and(bar)) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-463.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-463.md.prettier-snap new file mode 100644 index 000000000000..307b365f6e00 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-463.md.prettier-snap @@ -0,0 +1 @@ +[link](<(foo)and(bar)>) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-464.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-464.md new file mode 100644 index 000000000000..872da18da828 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-464.md @@ -0,0 +1 @@ +[link](foo(and(bar))) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-464.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-464.md.prettier-snap new file mode 100644 index 000000000000..7e2cbf2952e5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-464.md.prettier-snap @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-465.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-465.md new file mode 100644 index 000000000000..949df918236b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-465.md @@ -0,0 +1 @@ +[link](foo(and\(bar\))) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-465.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-465.md.prettier-snap new file mode 100644 index 000000000000..7e2cbf2952e5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-465.md.prettier-snap @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-466.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-466.md new file mode 100644 index 000000000000..7e2cbf2952e5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-466.md @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-466.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-466.md.prettier-snap new file mode 100644 index 000000000000..7e2cbf2952e5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-466.md.prettier-snap @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-467.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-467.md new file mode 100644 index 000000000000..1f35973b598a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-467.md @@ -0,0 +1 @@ +[link](foo\)\:) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-467.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-467.md.prettier-snap new file mode 100644 index 000000000000..f2c975553ec0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-467.md.prettier-snap @@ -0,0 +1 @@ +[link]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-468.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-468.md new file mode 100644 index 000000000000..01b72bf48986 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-468.md @@ -0,0 +1,5 @@ +[link](#fragment) + +[link](http://example.com#fragment) + +[link](http://example.com?foo=3#frag) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-468.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-468.md.prettier-snap new file mode 100644 index 000000000000..01b72bf48986 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-468.md.prettier-snap @@ -0,0 +1,5 @@ +[link](#fragment) + +[link](http://example.com#fragment) + +[link](http://example.com?foo=3#frag) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-469.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-469.md new file mode 100644 index 000000000000..e3d7f250e9ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-469.md @@ -0,0 +1 @@ +[link](foo\bar) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-469.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-469.md.prettier-snap new file mode 100644 index 000000000000..e3d7f250e9ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-469.md.prettier-snap @@ -0,0 +1 @@ +[link](foo\bar) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-47.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-47.md new file mode 100644 index 000000000000..424e65f7c05c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-47.md @@ -0,0 +1,3 @@ +Foo bar +# baz +Bar foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-47.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-47.md.prettier-snap new file mode 100644 index 000000000000..500e69290414 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-47.md.prettier-snap @@ -0,0 +1,5 @@ +Foo bar + +# baz + +Bar foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-470.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-470.md new file mode 100644 index 000000000000..c6e1d205b40e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-470.md @@ -0,0 +1 @@ +[link](foo%20bä) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-470.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-470.md.prettier-snap new file mode 100644 index 000000000000..2a1e57bb2d79 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-470.md.prettier-snap @@ -0,0 +1 @@ +[link](foo%20bä) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-471.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-471.md new file mode 100644 index 000000000000..2ba658a0bc1b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-471.md @@ -0,0 +1 @@ +[link]("title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-471.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-471.md.prettier-snap new file mode 100644 index 000000000000..2ba658a0bc1b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-471.md.prettier-snap @@ -0,0 +1 @@ +[link]("title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-472.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-472.md new file mode 100644 index 000000000000..01a3acc7f21e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-472.md @@ -0,0 +1,3 @@ +[link](/url "title") +[link](/url 'title') +[link](/url (title)) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-472.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-472.md.prettier-snap new file mode 100644 index 000000000000..ae7e74fa080f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-472.md.prettier-snap @@ -0,0 +1,3 @@ +[link](/url "title") +[link](/url "title") +[link](/url "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-473.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-473.md new file mode 100644 index 000000000000..1fa512a86544 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-473.md @@ -0,0 +1 @@ +[link](/url "title \""") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-473.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-473.md.prettier-snap new file mode 100644 index 000000000000..d1df33fa967c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-473.md.prettier-snap @@ -0,0 +1 @@ +[link](/url 'title ""') diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-474.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-474.md new file mode 100644 index 000000000000..d126fb837226 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-474.md @@ -0,0 +1 @@ +[link](/url "title "and" title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-474.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-474.md.prettier-snap new file mode 100644 index 000000000000..d126fb837226 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-474.md.prettier-snap @@ -0,0 +1 @@ +[link](/url "title "and" title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-475.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-475.md new file mode 100644 index 000000000000..b3ad0e0bd91e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-475.md @@ -0,0 +1 @@ +[link](/url 'title "and" title') diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-475.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-475.md.prettier-snap new file mode 100644 index 000000000000..b3ad0e0bd91e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-475.md.prettier-snap @@ -0,0 +1 @@ +[link](/url 'title "and" title') diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-476.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-476.md new file mode 100644 index 000000000000..ba2c8dbc0a15 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-476.md @@ -0,0 +1,2 @@ +[link]( /uri + "title" ) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-476.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-476.md.prettier-snap new file mode 100644 index 000000000000..f74c396d8c7f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-476.md.prettier-snap @@ -0,0 +1 @@ +[link](/uri "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-477.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-477.md new file mode 100644 index 000000000000..357b73b1749b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-477.md @@ -0,0 +1 @@ +[link] (/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-477.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-477.md.prettier-snap new file mode 100644 index 000000000000..357b73b1749b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-477.md.prettier-snap @@ -0,0 +1 @@ +[link] (/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-478.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-478.md new file mode 100644 index 000000000000..b1a926fa0774 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-478.md @@ -0,0 +1 @@ +[link [foo [bar]]](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-478.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-478.md.prettier-snap new file mode 100644 index 000000000000..b1a926fa0774 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-478.md.prettier-snap @@ -0,0 +1 @@ +[link [foo [bar]]](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-479.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-479.md new file mode 100644 index 000000000000..0078e30572e1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-479.md @@ -0,0 +1 @@ +[link] bar](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-479.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-479.md.prettier-snap new file mode 100644 index 000000000000..0078e30572e1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-479.md.prettier-snap @@ -0,0 +1 @@ +[link] bar](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-48.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-48.md new file mode 100644 index 000000000000..43099295073e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-48.md @@ -0,0 +1,3 @@ +## +# +### ### diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-48.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-48.md.prettier-snap new file mode 100644 index 000000000000..035d8c0b07ce --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-48.md.prettier-snap @@ -0,0 +1,5 @@ +## + +# + +### diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-480.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-480.md new file mode 100644 index 000000000000..050183323549 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-480.md @@ -0,0 +1 @@ +[link [bar](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-480.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-480.md.prettier-snap new file mode 100644 index 000000000000..050183323549 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-480.md.prettier-snap @@ -0,0 +1 @@ +[link [bar](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-481.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-481.md new file mode 100644 index 000000000000..d9fbd73b8fae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-481.md @@ -0,0 +1 @@ +[link \[bar](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-481.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-481.md.prettier-snap new file mode 100644 index 000000000000..d9fbd73b8fae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-481.md.prettier-snap @@ -0,0 +1 @@ +[link \[bar](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-482.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-482.md new file mode 100644 index 000000000000..409b51725ec5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-482.md @@ -0,0 +1 @@ +[link *foo **bar** `#`*](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-482.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-482.md.prettier-snap new file mode 100644 index 000000000000..5dffec6294ee --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-482.md.prettier-snap @@ -0,0 +1 @@ +[link _foo **bar** `#`_](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-483.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-483.md new file mode 100644 index 000000000000..44bb5748965e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-483.md @@ -0,0 +1 @@ +[![moon](moon.jpg)](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-483.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-483.md.prettier-snap new file mode 100644 index 000000000000..44bb5748965e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-483.md.prettier-snap @@ -0,0 +1 @@ +[![moon](moon.jpg)](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-484.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-484.md new file mode 100644 index 000000000000..63f4d77ec7ae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-484.md @@ -0,0 +1 @@ +[foo [bar](/uri)](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-484.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-484.md.prettier-snap new file mode 100644 index 000000000000..63f4d77ec7ae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-484.md.prettier-snap @@ -0,0 +1 @@ +[foo [bar](/uri)](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-485.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-485.md new file mode 100644 index 000000000000..fcb093b59667 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-485.md @@ -0,0 +1 @@ +[foo *[bar [baz](/uri)](/uri)*](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-485.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-485.md.prettier-snap new file mode 100644 index 000000000000..d09dbb765cb4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-485.md.prettier-snap @@ -0,0 +1 @@ +[foo _[bar [baz](/uri)](/uri)_](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-486.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-486.md new file mode 100644 index 000000000000..751ee64db8a0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-486.md @@ -0,0 +1 @@ +![[[foo](uri1)](uri2)](uri3) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-486.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-486.md.prettier-snap new file mode 100644 index 000000000000..751ee64db8a0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-486.md.prettier-snap @@ -0,0 +1 @@ +![[[foo](uri1)](uri2)](uri3) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-487.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-487.md new file mode 100644 index 000000000000..938290c571a7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-487.md @@ -0,0 +1 @@ +*[foo*](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-487.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-487.md.prettier-snap new file mode 100644 index 000000000000..254a3569ecad --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-487.md.prettier-snap @@ -0,0 +1 @@ +_[foo_](/uri) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-488.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-488.md new file mode 100644 index 000000000000..5999b9317e57 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-488.md @@ -0,0 +1 @@ +[foo *bar](baz*) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-488.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-488.md.prettier-snap new file mode 100644 index 000000000000..29ff1c76ab84 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-488.md.prettier-snap @@ -0,0 +1 @@ +[foo \*bar](baz*) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-489.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-489.md new file mode 100644 index 000000000000..0ebb6b916b6f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-489.md @@ -0,0 +1 @@ +*foo [bar* baz] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-489.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-489.md.prettier-snap new file mode 100644 index 000000000000..9645385443d3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-489.md.prettier-snap @@ -0,0 +1 @@ +_foo [bar_ baz] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-49.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-49.md new file mode 100644 index 000000000000..a41eed54e608 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-49.md @@ -0,0 +1,5 @@ +Foo *bar* +========= + +Foo *bar* +--------- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-49.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-49.md.prettier-snap new file mode 100644 index 000000000000..2b12fc0b3f2b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-49.md.prettier-snap @@ -0,0 +1,3 @@ +# Foo _bar_ + +## Foo _bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-490.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-490.md new file mode 100644 index 000000000000..cf9d9b018716 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-490.md @@ -0,0 +1 @@ +[foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-490.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-490.md.prettier-snap new file mode 100644 index 000000000000..cf9d9b018716 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-490.md.prettier-snap @@ -0,0 +1 @@ +[foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-491.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-491.md new file mode 100644 index 000000000000..451bb8620e32 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-491.md @@ -0,0 +1 @@ +[foo`](/uri)` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-491.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-491.md.prettier-snap new file mode 100644 index 000000000000..451bb8620e32 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-491.md.prettier-snap @@ -0,0 +1 @@ +[foo`](/uri)` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-492.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-492.md new file mode 100644 index 000000000000..ba1a93e485bc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-492.md @@ -0,0 +1 @@ +[foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-492.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-492.md.prettier-snap new file mode 100644 index 000000000000..ba1a93e485bc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-492.md.prettier-snap @@ -0,0 +1 @@ +[foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-493.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-493.md new file mode 100644 index 000000000000..5feebd7f0297 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-493.md @@ -0,0 +1,3 @@ +[foo][bar] + +[bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-493.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-493.md.prettier-snap new file mode 100644 index 000000000000..5feebd7f0297 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-493.md.prettier-snap @@ -0,0 +1,3 @@ +[foo][bar] + +[bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-494.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-494.md new file mode 100644 index 000000000000..76a8ab855598 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-494.md @@ -0,0 +1,3 @@ +[link [foo [bar]]][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-494.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-494.md.prettier-snap new file mode 100644 index 000000000000..76a8ab855598 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-494.md.prettier-snap @@ -0,0 +1,3 @@ +[link [foo [bar]]][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-495.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-495.md new file mode 100644 index 000000000000..22d0e9d21e47 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-495.md @@ -0,0 +1,3 @@ +[link \[bar][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-495.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-495.md.prettier-snap new file mode 100644 index 000000000000..22d0e9d21e47 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-495.md.prettier-snap @@ -0,0 +1,3 @@ +[link \[bar][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-496.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-496.md new file mode 100644 index 000000000000..d1d51ba5e4ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-496.md @@ -0,0 +1,3 @@ +[link *foo **bar** `#`*][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-496.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-496.md.prettier-snap new file mode 100644 index 000000000000..b14aa46403bf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-496.md.prettier-snap @@ -0,0 +1,3 @@ +[link _foo **bar** `#`_][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-497.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-497.md new file mode 100644 index 000000000000..d699aefa7ae1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-497.md @@ -0,0 +1,3 @@ +[![moon](moon.jpg)][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-497.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-497.md.prettier-snap new file mode 100644 index 000000000000..d699aefa7ae1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-497.md.prettier-snap @@ -0,0 +1,3 @@ +[![moon](moon.jpg)][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-498.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-498.md new file mode 100644 index 000000000000..8b52087a3bb4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-498.md @@ -0,0 +1,3 @@ +[foo [bar](/uri)][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-498.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-498.md.prettier-snap new file mode 100644 index 000000000000..8b52087a3bb4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-498.md.prettier-snap @@ -0,0 +1,3 @@ +[foo [bar](/uri)][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-499.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-499.md new file mode 100644 index 000000000000..d075caef1f42 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-499.md @@ -0,0 +1,3 @@ +[foo *bar [baz][ref]*][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-499.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-499.md.prettier-snap new file mode 100644 index 000000000000..e95e3519a667 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-499.md.prettier-snap @@ -0,0 +1,3 @@ +[foo _bar [baz][ref]_][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-5.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-5.md new file mode 100644 index 000000000000..2ea3c1d20394 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-5.md @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-5.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-5.md.prettier-snap new file mode 100644 index 000000000000..13a6194cd95a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-5.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-50.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-50.md new file mode 100644 index 000000000000..f793060900c8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-50.md @@ -0,0 +1,3 @@ +Foo *bar +baz* +==== diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-50.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-50.md.prettier-snap new file mode 100644 index 000000000000..3e3872605055 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-50.md.prettier-snap @@ -0,0 +1,3 @@ +Foo _bar +baz_ +==== diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-500.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-500.md new file mode 100644 index 000000000000..8808b2ba0f7c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-500.md @@ -0,0 +1,3 @@ +*[foo*][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-500.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-500.md.prettier-snap new file mode 100644 index 000000000000..4426ae0c1fb4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-500.md.prettier-snap @@ -0,0 +1,3 @@ +_[foo_][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-501.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-501.md new file mode 100644 index 000000000000..b51b714c0313 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-501.md @@ -0,0 +1,3 @@ +[foo *bar][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-501.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-501.md.prettier-snap new file mode 100644 index 000000000000..a7c356f185d9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-501.md.prettier-snap @@ -0,0 +1,3 @@ +[foo \*bar][ref] + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-502.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-502.md new file mode 100644 index 000000000000..7d3545f55ef5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-502.md @@ -0,0 +1,3 @@ +[foo + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-502.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-502.md.prettier-snap new file mode 100644 index 000000000000..7d3545f55ef5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-502.md.prettier-snap @@ -0,0 +1,3 @@ +[foo + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-503.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-503.md new file mode 100644 index 000000000000..af8ca7c5b41a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-503.md @@ -0,0 +1,3 @@ +[foo`][ref]` + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-503.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-503.md.prettier-snap new file mode 100644 index 000000000000..af8ca7c5b41a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-503.md.prettier-snap @@ -0,0 +1,3 @@ +[foo`][ref]` + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-504.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-504.md new file mode 100644 index 000000000000..48ed518877f7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-504.md @@ -0,0 +1,3 @@ +[foo + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-504.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-504.md.prettier-snap new file mode 100644 index 000000000000..48ed518877f7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-504.md.prettier-snap @@ -0,0 +1,3 @@ +[foo + +[ref]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-505.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-505.md new file mode 100644 index 000000000000..fd6e4324de48 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-505.md @@ -0,0 +1,3 @@ +[foo][BaR] + +[bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-505.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-505.md.prettier-snap new file mode 100644 index 000000000000..fd6e4324de48 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-505.md.prettier-snap @@ -0,0 +1,3 @@ +[foo][BaR] + +[bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-506.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-506.md new file mode 100644 index 000000000000..9fb9ef9b3694 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-506.md @@ -0,0 +1,3 @@ +[Толпой][Толпой] is a Russian word. + +[ТОЛПОЙ]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-506.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-506.md.prettier-snap new file mode 100644 index 000000000000..9fb9ef9b3694 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-506.md.prettier-snap @@ -0,0 +1,3 @@ +[Толпой][Толпой] is a Russian word. + +[ТОЛПОЙ]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-507.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-507.md new file mode 100644 index 000000000000..81e8827fb238 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-507.md @@ -0,0 +1,4 @@ +[Foo + bar]: /url + +[Baz][Foo bar] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-507.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-507.md.prettier-snap new file mode 100644 index 000000000000..5ab9788ab8a6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-507.md.prettier-snap @@ -0,0 +1,3 @@ +[Foo bar]: /url + +[Baz][Foo bar] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-508.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-508.md new file mode 100644 index 000000000000..c030e7dc0a1b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-508.md @@ -0,0 +1,3 @@ +[foo] [bar] + +[bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-508.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-508.md.prettier-snap new file mode 100644 index 000000000000..c030e7dc0a1b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-508.md.prettier-snap @@ -0,0 +1,3 @@ +[foo] [bar] + +[bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-509.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-509.md new file mode 100644 index 000000000000..310c5c6dfd61 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-509.md @@ -0,0 +1,4 @@ +[foo] +[bar] + +[bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-509.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-509.md.prettier-snap new file mode 100644 index 000000000000..310c5c6dfd61 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-509.md.prettier-snap @@ -0,0 +1,4 @@ +[foo] +[bar] + +[bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-51.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-51.md new file mode 100644 index 000000000000..c550b1c1ec8c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-51.md @@ -0,0 +1,5 @@ +Foo +------------------------- + +Foo += diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-51.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-51.md.prettier-snap new file mode 100644 index 000000000000..bea45eae3fea --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-51.md.prettier-snap @@ -0,0 +1,3 @@ +## Foo + +# Foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-510.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-510.md new file mode 100644 index 000000000000..8f5dda2ab37e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-510.md @@ -0,0 +1,5 @@ +[foo]: /url1 + +[foo]: /url2 + +[bar][foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-510.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-510.md.prettier-snap new file mode 100644 index 000000000000..28a1fa5faa33 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-510.md.prettier-snap @@ -0,0 +1,4 @@ +[foo]: /url1 +[foo]: /url2 + +[bar][foo] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-511.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-511.md new file mode 100644 index 000000000000..653013b95a17 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-511.md @@ -0,0 +1,3 @@ +[bar][foo\!] + +[foo!]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-511.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-511.md.prettier-snap new file mode 100644 index 000000000000..653013b95a17 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-511.md.prettier-snap @@ -0,0 +1,3 @@ +[bar][foo\!] + +[foo!]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-512.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-512.md new file mode 100644 index 000000000000..d6c75ab91b2b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-512.md @@ -0,0 +1,3 @@ +[foo][ref[] + +[ref[]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-512.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-512.md.prettier-snap new file mode 100644 index 000000000000..f493646ca05f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-512.md.prettier-snap @@ -0,0 +1,3 @@ +[foo]ref[] + +[ref[]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-513.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-513.md new file mode 100644 index 000000000000..ee9c6bab77ed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-513.md @@ -0,0 +1,3 @@ +[foo][ref[bar]] + +[ref[bar]]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-513.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-513.md.prettier-snap new file mode 100644 index 000000000000..e910fb028774 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-513.md.prettier-snap @@ -0,0 +1,3 @@ +[foo]ref[bar]] + +[ref[bar]]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-514.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-514.md new file mode 100644 index 000000000000..26a17b49c40f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-514.md @@ -0,0 +1,3 @@ +[[[foo]]] + +[[[foo]]]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-514.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-514.md.prettier-snap new file mode 100644 index 000000000000..26a17b49c40f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-514.md.prettier-snap @@ -0,0 +1,3 @@ +[[[foo]]] + +[[[foo]]]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-515.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-515.md new file mode 100644 index 000000000000..69b2e7d1ffa3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-515.md @@ -0,0 +1,3 @@ +[foo][ref\[] + +[ref\[]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-515.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-515.md.prettier-snap new file mode 100644 index 000000000000..69b2e7d1ffa3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-515.md.prettier-snap @@ -0,0 +1,3 @@ +[foo][ref\[] + +[ref\[]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-516.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-516.md new file mode 100644 index 000000000000..96f2bde4043e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-516.md @@ -0,0 +1,3 @@ +[bar\\]: /uri + +[bar\\] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-516.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-516.md.prettier-snap new file mode 100644 index 000000000000..96f2bde4043e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-516.md.prettier-snap @@ -0,0 +1,3 @@ +[bar\\]: /uri + +[bar\\] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-517.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-517.md new file mode 100644 index 000000000000..7804e300123b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-517.md @@ -0,0 +1,3 @@ +[] + +[]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-517.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-517.md.prettier-snap new file mode 100644 index 000000000000..7804e300123b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-517.md.prettier-snap @@ -0,0 +1,3 @@ +[] + +[]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-518.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-518.md new file mode 100644 index 000000000000..040786f5bb67 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-518.md @@ -0,0 +1,5 @@ +[ + ] + +[ + ]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-518.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-518.md.prettier-snap new file mode 100644 index 000000000000..0f63eb92bd79 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-518.md.prettier-snap @@ -0,0 +1,4 @@ +[ +] + +[ ]: /uri diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-519.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-519.md new file mode 100644 index 000000000000..909e0ce7974a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-519.md @@ -0,0 +1,3 @@ +[foo][] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-519.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-519.md.prettier-snap new file mode 100644 index 000000000000..909e0ce7974a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-519.md.prettier-snap @@ -0,0 +1,3 @@ +[foo][] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-52.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-52.md new file mode 100644 index 000000000000..b4a202910295 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-52.md @@ -0,0 +1,8 @@ + Foo +--- + + Foo +----- + + Foo + === diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-52.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-52.md.prettier-snap new file mode 100644 index 000000000000..4827cb062b14 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-52.md.prettier-snap @@ -0,0 +1,6 @@ +## Foo + +## Foo + +Foo +=== diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-520.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-520.md new file mode 100644 index 000000000000..53d5989b2235 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-520.md @@ -0,0 +1,3 @@ +[*foo* bar][] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-520.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-520.md.prettier-snap new file mode 100644 index 000000000000..53d5989b2235 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-520.md.prettier-snap @@ -0,0 +1,3 @@ +[*foo* bar][] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-521.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-521.md new file mode 100644 index 000000000000..d203dfdbfc53 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-521.md @@ -0,0 +1,3 @@ +[Foo][] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-521.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-521.md.prettier-snap new file mode 100644 index 000000000000..d203dfdbfc53 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-521.md.prettier-snap @@ -0,0 +1,3 @@ +[Foo][] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-522.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-522.md new file mode 100644 index 000000000000..b237eed5119a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-522.md @@ -0,0 +1,4 @@ +[foo] +[] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-522.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-522.md.prettier-snap new file mode 100644 index 000000000000..cf554c53a427 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-522.md.prettier-snap @@ -0,0 +1,4 @@ +[foo] +[] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-523.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-523.md new file mode 100644 index 000000000000..08b6c18fc361 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-523.md @@ -0,0 +1,3 @@ +[foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-523.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-523.md.prettier-snap new file mode 100644 index 000000000000..08b6c18fc361 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-523.md.prettier-snap @@ -0,0 +1,3 @@ +[foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-524.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-524.md new file mode 100644 index 000000000000..eabfcfc56687 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-524.md @@ -0,0 +1,3 @@ +[*foo* bar] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-524.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-524.md.prettier-snap new file mode 100644 index 000000000000..eabfcfc56687 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-524.md.prettier-snap @@ -0,0 +1,3 @@ +[*foo* bar] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-525.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-525.md new file mode 100644 index 000000000000..d59aa40a2241 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-525.md @@ -0,0 +1,3 @@ +[[*foo* bar]] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-525.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-525.md.prettier-snap new file mode 100644 index 000000000000..d59aa40a2241 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-525.md.prettier-snap @@ -0,0 +1,3 @@ +[[*foo* bar]] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-526.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-526.md new file mode 100644 index 000000000000..c961fb56fb86 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-526.md @@ -0,0 +1,3 @@ +[[bar [foo] + +[foo]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-526.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-526.md.prettier-snap new file mode 100644 index 000000000000..c961fb56fb86 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-526.md.prettier-snap @@ -0,0 +1,3 @@ +[[bar [foo] + +[foo]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-527.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-527.md new file mode 100644 index 000000000000..1055a58534c2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-527.md @@ -0,0 +1,3 @@ +[Foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-527.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-527.md.prettier-snap new file mode 100644 index 000000000000..1055a58534c2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-527.md.prettier-snap @@ -0,0 +1,3 @@ +[Foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-528.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-528.md new file mode 100644 index 000000000000..b43890434e14 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-528.md @@ -0,0 +1,3 @@ +[foo] bar + +[foo]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-528.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-528.md.prettier-snap new file mode 100644 index 000000000000..b43890434e14 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-528.md.prettier-snap @@ -0,0 +1,3 @@ +[foo] bar + +[foo]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-529.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-529.md new file mode 100644 index 000000000000..1b4775756b55 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-529.md @@ -0,0 +1,3 @@ +\[foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-529.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-529.md.prettier-snap new file mode 100644 index 000000000000..1b4775756b55 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-529.md.prettier-snap @@ -0,0 +1,3 @@ +\[foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-53.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-53.md new file mode 100644 index 000000000000..7593781df726 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-53.md @@ -0,0 +1,5 @@ + Foo + --- + + Foo +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-53.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-53.md.prettier-snap new file mode 100644 index 000000000000..5d37b7ca082c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-53.md.prettier-snap @@ -0,0 +1,6 @@ + Foo + --- + + Foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-530.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-530.md new file mode 100644 index 000000000000..f5ff60afd0a7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-530.md @@ -0,0 +1,3 @@ +[foo*]: /url + +*[foo*] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-530.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-530.md.prettier-snap new file mode 100644 index 000000000000..655f2ebbc629 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-530.md.prettier-snap @@ -0,0 +1,3 @@ +[foo*]: /url + +_[foo_] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-531.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-531.md new file mode 100644 index 000000000000..f47c267dc423 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-531.md @@ -0,0 +1,4 @@ +[foo][bar] + +[foo]: /url1 +[bar]: /url2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-531.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-531.md.prettier-snap new file mode 100644 index 000000000000..f47c267dc423 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-531.md.prettier-snap @@ -0,0 +1,4 @@ +[foo][bar] + +[foo]: /url1 +[bar]: /url2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-532.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-532.md new file mode 100644 index 000000000000..dbe56ccfb7bf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-532.md @@ -0,0 +1,3 @@ +[foo][bar][baz] + +[baz]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-532.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-532.md.prettier-snap new file mode 100644 index 000000000000..dbe56ccfb7bf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-532.md.prettier-snap @@ -0,0 +1,3 @@ +[foo][bar][baz] + +[baz]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-533.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-533.md new file mode 100644 index 000000000000..d4eb0798d1ff --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-533.md @@ -0,0 +1,4 @@ +[foo][bar][baz] + +[baz]: /url1 +[bar]: /url2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-533.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-533.md.prettier-snap new file mode 100644 index 000000000000..d4eb0798d1ff --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-533.md.prettier-snap @@ -0,0 +1,4 @@ +[foo][bar][baz] + +[baz]: /url1 +[bar]: /url2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-534.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-534.md new file mode 100644 index 000000000000..6791c7f473ed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-534.md @@ -0,0 +1,4 @@ +[foo][bar][baz] + +[baz]: /url1 +[foo]: /url2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-534.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-534.md.prettier-snap new file mode 100644 index 000000000000..6791c7f473ed --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-534.md.prettier-snap @@ -0,0 +1,4 @@ +[foo][bar][baz] + +[baz]: /url1 +[foo]: /url2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-535.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-535.md new file mode 100644 index 000000000000..60a3f3a8b246 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-535.md @@ -0,0 +1 @@ +![foo](/url "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-535.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-535.md.prettier-snap new file mode 100644 index 000000000000..60a3f3a8b246 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-535.md.prettier-snap @@ -0,0 +1 @@ +![foo](/url "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-536.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-536.md new file mode 100644 index 000000000000..40f3bd9cce5d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-536.md @@ -0,0 +1,3 @@ +![foo *bar*] + +[foo *bar*]: train.jpg "train & tracks" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-536.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-536.md.prettier-snap new file mode 100644 index 000000000000..40f3bd9cce5d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-536.md.prettier-snap @@ -0,0 +1,3 @@ +![foo *bar*] + +[foo *bar*]: train.jpg "train & tracks" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-537.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-537.md new file mode 100644 index 000000000000..6ab50a16b976 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-537.md @@ -0,0 +1 @@ +![foo ![bar](/url)](/url2) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-537.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-537.md.prettier-snap new file mode 100644 index 000000000000..6ab50a16b976 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-537.md.prettier-snap @@ -0,0 +1 @@ +![foo ![bar](/url)](/url2) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-538.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-538.md new file mode 100644 index 000000000000..115a22097a5f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-538.md @@ -0,0 +1 @@ +![foo [bar](/url)](/url2) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-538.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-538.md.prettier-snap new file mode 100644 index 000000000000..115a22097a5f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-538.md.prettier-snap @@ -0,0 +1 @@ +![foo [bar](/url)](/url2) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-539.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-539.md new file mode 100644 index 000000000000..c1e373905823 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-539.md @@ -0,0 +1,3 @@ +![foo *bar*][] + +[foo *bar*]: train.jpg "train & tracks" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-539.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-539.md.prettier-snap new file mode 100644 index 000000000000..c1e373905823 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-539.md.prettier-snap @@ -0,0 +1,3 @@ +![foo *bar*][] + +[foo *bar*]: train.jpg "train & tracks" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-54.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-54.md new file mode 100644 index 000000000000..711c39e7dbfe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-54.md @@ -0,0 +1,2 @@ +Foo + ---- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-54.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-54.md.prettier-snap new file mode 100644 index 000000000000..01d872a54d66 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-54.md.prettier-snap @@ -0,0 +1,3 @@ +Foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-540.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-540.md new file mode 100644 index 000000000000..ba0b9d1d16a4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-540.md @@ -0,0 +1,3 @@ +![foo *bar*][foobar] + +[FOOBAR]: train.jpg "train & tracks" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-540.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-540.md.prettier-snap new file mode 100644 index 000000000000..ba0b9d1d16a4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-540.md.prettier-snap @@ -0,0 +1,3 @@ +![foo *bar*][foobar] + +[FOOBAR]: train.jpg "train & tracks" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-541.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-541.md new file mode 100644 index 000000000000..cb32d083775a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-541.md @@ -0,0 +1 @@ +![foo](train.jpg) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-541.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-541.md.prettier-snap new file mode 100644 index 000000000000..cb32d083775a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-541.md.prettier-snap @@ -0,0 +1 @@ +![foo](train.jpg) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-542.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-542.md new file mode 100644 index 000000000000..9de86f150644 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-542.md @@ -0,0 +1 @@ +My ![foo bar](/path/to/train.jpg "title" ) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-542.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-542.md.prettier-snap new file mode 100644 index 000000000000..9294557f88b6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-542.md.prettier-snap @@ -0,0 +1 @@ +My ![foo bar](/path/to/train.jpg "title") diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-543.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-543.md new file mode 100644 index 000000000000..5bc339df24e1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-543.md @@ -0,0 +1 @@ +![foo]() diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-543.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-543.md.prettier-snap new file mode 100644 index 000000000000..444f06658cf3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-543.md.prettier-snap @@ -0,0 +1 @@ +![foo](url) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-544.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-544.md new file mode 100644 index 000000000000..ba551cd2408f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-544.md @@ -0,0 +1 @@ +![](/url) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-544.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-544.md.prettier-snap new file mode 100644 index 000000000000..ba551cd2408f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-544.md.prettier-snap @@ -0,0 +1 @@ +![](/url) diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-545.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-545.md new file mode 100644 index 000000000000..665daf8c33ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-545.md @@ -0,0 +1,3 @@ +![foo][bar] + +[bar]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-545.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-545.md.prettier-snap new file mode 100644 index 000000000000..665daf8c33ba --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-545.md.prettier-snap @@ -0,0 +1,3 @@ +![foo][bar] + +[bar]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-546.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-546.md new file mode 100644 index 000000000000..70787c5adaa4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-546.md @@ -0,0 +1,3 @@ +![foo][bar] + +[BAR]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-546.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-546.md.prettier-snap new file mode 100644 index 000000000000..70787c5adaa4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-546.md.prettier-snap @@ -0,0 +1,3 @@ +![foo][bar] + +[BAR]: /url diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-547.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-547.md new file mode 100644 index 000000000000..b4c3b1182702 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-547.md @@ -0,0 +1,3 @@ +![foo][] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-547.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-547.md.prettier-snap new file mode 100644 index 000000000000..b4c3b1182702 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-547.md.prettier-snap @@ -0,0 +1,3 @@ +![foo][] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-548.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-548.md new file mode 100644 index 000000000000..53fa1dcbe2b9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-548.md @@ -0,0 +1,3 @@ +![*foo* bar][] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-548.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-548.md.prettier-snap new file mode 100644 index 000000000000..53fa1dcbe2b9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-548.md.prettier-snap @@ -0,0 +1,3 @@ +![*foo* bar][] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-549.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-549.md new file mode 100644 index 000000000000..31e8eea160fa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-549.md @@ -0,0 +1,3 @@ +![Foo][] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-549.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-549.md.prettier-snap new file mode 100644 index 000000000000..31e8eea160fa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-549.md.prettier-snap @@ -0,0 +1,3 @@ +![Foo][] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-55.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-55.md new file mode 100644 index 000000000000..008cab9b1dbe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-55.md @@ -0,0 +1,2 @@ +Foo + --- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-55.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-55.md.prettier-snap new file mode 100644 index 000000000000..0e041f36680d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-55.md.prettier-snap @@ -0,0 +1,2 @@ +Foo +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-550.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-550.md new file mode 100644 index 000000000000..cb8ca942bcfc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-550.md @@ -0,0 +1,4 @@ +![foo] +[] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-550.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-550.md.prettier-snap new file mode 100644 index 000000000000..21591e478178 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-550.md.prettier-snap @@ -0,0 +1,4 @@ +![foo] +[] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-551.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-551.md new file mode 100644 index 000000000000..d0537b7d15a9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-551.md @@ -0,0 +1,3 @@ +![foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-551.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-551.md.prettier-snap new file mode 100644 index 000000000000..d0537b7d15a9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-551.md.prettier-snap @@ -0,0 +1,3 @@ +![foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-552.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-552.md new file mode 100644 index 000000000000..322ee1bf3194 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-552.md @@ -0,0 +1,3 @@ +![*foo* bar] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-552.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-552.md.prettier-snap new file mode 100644 index 000000000000..322ee1bf3194 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-552.md.prettier-snap @@ -0,0 +1,3 @@ +![*foo* bar] + +[*foo* bar]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-553.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-553.md new file mode 100644 index 000000000000..1c2485753dcd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-553.md @@ -0,0 +1,3 @@ +![[foo]] + +[[foo]]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-553.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-553.md.prettier-snap new file mode 100644 index 000000000000..1c2485753dcd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-553.md.prettier-snap @@ -0,0 +1,3 @@ +![[foo]] + +[[foo]]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-554.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-554.md new file mode 100644 index 000000000000..a0474225a7f1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-554.md @@ -0,0 +1,3 @@ +![Foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-554.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-554.md.prettier-snap new file mode 100644 index 000000000000..a0474225a7f1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-554.md.prettier-snap @@ -0,0 +1,3 @@ +![Foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-555.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-555.md new file mode 100644 index 000000000000..2562ee7fa122 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-555.md @@ -0,0 +1,3 @@ +\!\[foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-555.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-555.md.prettier-snap new file mode 100644 index 000000000000..2562ee7fa122 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-555.md.prettier-snap @@ -0,0 +1,3 @@ +\!\[foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-556.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-556.md new file mode 100644 index 000000000000..ee7db5b66810 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-556.md @@ -0,0 +1,3 @@ +\![foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-556.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-556.md.prettier-snap new file mode 100644 index 000000000000..ee7db5b66810 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-556.md.prettier-snap @@ -0,0 +1,3 @@ +\![foo] + +[foo]: /url "title" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-557.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-557.md new file mode 100644 index 000000000000..8e1fd478c806 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-557.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-557.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-557.md.prettier-snap new file mode 100644 index 000000000000..8e1fd478c806 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-557.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-558.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-558.md new file mode 100644 index 000000000000..69374c3d097b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-558.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-558.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-558.md.prettier-snap new file mode 100644 index 000000000000..69374c3d097b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-558.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-559.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-559.md new file mode 100644 index 000000000000..841dd24a9f66 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-559.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-559.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-559.md.prettier-snap new file mode 100644 index 000000000000..841dd24a9f66 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-559.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-56.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-56.md new file mode 100644 index 000000000000..720be3105c3f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-56.md @@ -0,0 +1,5 @@ +Foo += = + +Foo +--- - diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-56.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-56.md.prettier-snap new file mode 100644 index 000000000000..a614df166cf5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-56.md.prettier-snap @@ -0,0 +1,6 @@ +Foo += = + +Foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-560.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-560.md new file mode 100644 index 000000000000..22711772d7ef --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-560.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-560.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-560.md.prettier-snap new file mode 100644 index 000000000000..22711772d7ef --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-560.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-561.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-561.md new file mode 100644 index 000000000000..786e9d3183d2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-561.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-561.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-561.md.prettier-snap new file mode 100644 index 000000000000..786e9d3183d2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-561.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-562.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-562.md new file mode 100644 index 000000000000..d38ad565efd4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-562.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-562.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-562.md.prettier-snap new file mode 100644 index 000000000000..d38ad565efd4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-562.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-563.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-563.md new file mode 100644 index 000000000000..07f7f953defd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-563.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-563.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-563.md.prettier-snap new file mode 100644 index 000000000000..07f7f953defd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-563.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-564.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-564.md new file mode 100644 index 000000000000..f9318ca676a2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-564.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-564.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-564.md.prettier-snap new file mode 100644 index 000000000000..f9318ca676a2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-564.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-565.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-565.md new file mode 100644 index 000000000000..50d772051859 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-565.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-565.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-565.md.prettier-snap new file mode 100644 index 000000000000..50d772051859 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-565.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-566.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-566.md new file mode 100644 index 000000000000..60666934f227 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-566.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-566.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-566.md.prettier-snap new file mode 100644 index 000000000000..60666934f227 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-566.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-567.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-567.md new file mode 100644 index 000000000000..651ad6f42692 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-567.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-567.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-567.md.prettier-snap new file mode 100644 index 000000000000..651ad6f42692 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-567.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-568.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-568.md new file mode 100644 index 000000000000..95d0298bdd39 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-568.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-568.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-568.md.prettier-snap new file mode 100644 index 000000000000..95d0298bdd39 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-568.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-569.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-569.md new file mode 100644 index 000000000000..d529697f41d3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-569.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-569.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-569.md.prettier-snap new file mode 100644 index 000000000000..d529697f41d3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-569.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-57.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-57.md new file mode 100644 index 000000000000..06a49ad997da --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-57.md @@ -0,0 +1,2 @@ +Foo +----- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-57.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-57.md.prettier-snap new file mode 100644 index 000000000000..acf7852c9290 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-57.md.prettier-snap @@ -0,0 +1 @@ +## Foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-570.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-570.md new file mode 100644 index 000000000000..b554d9e46a87 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-570.md @@ -0,0 +1 @@ +<> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-570.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-570.md.prettier-snap new file mode 100644 index 000000000000..b554d9e46a87 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-570.md.prettier-snap @@ -0,0 +1 @@ +<> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-571.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-571.md new file mode 100644 index 000000000000..3bd027800dfd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-571.md @@ -0,0 +1 @@ +< http://foo.bar > diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-571.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-571.md.prettier-snap new file mode 100644 index 000000000000..3bd027800dfd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-571.md.prettier-snap @@ -0,0 +1 @@ +< http://foo.bar > diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-572.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-572.md new file mode 100644 index 000000000000..bf2209255d71 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-572.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-572.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-572.md.prettier-snap new file mode 100644 index 000000000000..bf2209255d71 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-572.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-573.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-573.md new file mode 100644 index 000000000000..300ef3e0d398 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-573.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-573.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-573.md.prettier-snap new file mode 100644 index 000000000000..300ef3e0d398 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-573.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-574.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-574.md new file mode 100644 index 000000000000..7bc94d03292f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-574.md @@ -0,0 +1 @@ +http://example.com diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-574.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-574.md.prettier-snap new file mode 100644 index 000000000000..7bc94d03292f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-574.md.prettier-snap @@ -0,0 +1 @@ +http://example.com diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-575.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-575.md new file mode 100644 index 000000000000..5ade6cc04d06 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-575.md @@ -0,0 +1 @@ +foo@bar.example.com diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-575.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-575.md.prettier-snap new file mode 100644 index 000000000000..5ade6cc04d06 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-575.md.prettier-snap @@ -0,0 +1 @@ +foo@bar.example.com diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-576.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-576.md new file mode 100644 index 000000000000..359cfddf872d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-576.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-576.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-576.md.prettier-snap new file mode 100644 index 000000000000..359cfddf872d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-576.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-577.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-577.md new file mode 100644 index 000000000000..1b7ad7275c1a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-577.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-577.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-577.md.prettier-snap new file mode 100644 index 000000000000..1b7ad7275c1a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-577.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-578.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-578.md new file mode 100644 index 000000000000..0864b1410526 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-578.md @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-578.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-578.md.prettier-snap new file mode 100644 index 000000000000..0864b1410526 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-578.md.prettier-snap @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-579.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-579.md new file mode 100644 index 000000000000..cc3fa8970de9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-579.md @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-579.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-579.md.prettier-snap new file mode 100644 index 000000000000..cc3fa8970de9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-579.md.prettier-snap @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-58.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-58.md new file mode 100644 index 000000000000..5a9038f72824 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-58.md @@ -0,0 +1,2 @@ +Foo\ +---- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-58.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-58.md.prettier-snap new file mode 100644 index 000000000000..92c1b5f92b62 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-58.md.prettier-snap @@ -0,0 +1 @@ +## Foo\ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-580.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-580.md new file mode 100644 index 000000000000..0dbfc7ffc5c4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-580.md @@ -0,0 +1 @@ +Foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-580.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-580.md.prettier-snap new file mode 100644 index 000000000000..0dbfc7ffc5c4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-580.md.prettier-snap @@ -0,0 +1 @@ +Foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-581.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-581.md new file mode 100644 index 000000000000..7a0764136d18 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-581.md @@ -0,0 +1 @@ +<33> <__> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-581.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-581.md.prettier-snap new file mode 100644 index 000000000000..29615ca3d886 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-581.md.prettier-snap @@ -0,0 +1 @@ +<33> <\_\_> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-582.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-582.md new file mode 100644 index 000000000000..af829138630f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-582.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-582.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-582.md.prettier-snap new file mode 100644 index 000000000000..e3755978254c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-582.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-583.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-583.md new file mode 100644 index 000000000000..10e7f3ddcf55 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-583.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-584.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-584.md new file mode 100644 index 000000000000..4a7cc26943b9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-584.md @@ -0,0 +1,2 @@ +< a>< +foo> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-584.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-584.md.prettier-snap new file mode 100644 index 000000000000..4a7cc26943b9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-584.md.prettier-snap @@ -0,0 +1,2 @@ +< a>< +foo> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-585.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-585.md new file mode 100644 index 000000000000..8bbb669096ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-585.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-585.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-585.md.prettier-snap new file mode 100644 index 000000000000..8bbb669096ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-585.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-586.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-586.md new file mode 100644 index 000000000000..049164cc96d8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-586.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-586.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-586.md.prettier-snap new file mode 100644 index 000000000000..049164cc96d8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-586.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-587.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-587.md new file mode 100644 index 000000000000..479020144087 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-587.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-587.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-587.md.prettier-snap new file mode 100644 index 000000000000..479020144087 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-587.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-588.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-588.md new file mode 100644 index 000000000000..6d562af5033e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-588.md @@ -0,0 +1,2 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-588.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-588.md.prettier-snap new file mode 100644 index 000000000000..6d562af5033e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-588.md.prettier-snap @@ -0,0 +1,2 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-589.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-589.md new file mode 100644 index 000000000000..0c2754f0045a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-589.md @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-589.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-589.md.prettier-snap new file mode 100644 index 000000000000..0c2754f0045a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-589.md.prettier-snap @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-59.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-59.md new file mode 100644 index 000000000000..9de5c000a659 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-59.md @@ -0,0 +1,7 @@ +`Foo +---- +` + + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-59.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-59.md.prettier-snap new file mode 100644 index 000000000000..d2b5b3838f73 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-59.md.prettier-snap @@ -0,0 +1,7 @@ +## `Foo + +` + +## diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-590.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-590.md new file mode 100644 index 000000000000..7e97514ab3d2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-590.md @@ -0,0 +1,3 @@ +foo foo --> + +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-590.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-590.md.prettier-snap new file mode 100644 index 000000000000..7e97514ab3d2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-590.md.prettier-snap @@ -0,0 +1,3 @@ +foo foo --> + +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-591.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-591.md new file mode 100644 index 000000000000..41d063df8daa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-591.md @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-591.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-591.md.prettier-snap new file mode 100644 index 000000000000..41d063df8daa --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-591.md.prettier-snap @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-592.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-592.md new file mode 100644 index 000000000000..ef489b4b381b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-592.md @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-592.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-592.md.prettier-snap new file mode 100644 index 000000000000..ef489b4b381b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-592.md.prettier-snap @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-593.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-593.md new file mode 100644 index 000000000000..ede531fb2d90 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-593.md @@ -0,0 +1 @@ +foo &<]]> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-593.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-593.md.prettier-snap new file mode 100644 index 000000000000..ede531fb2d90 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-593.md.prettier-snap @@ -0,0 +1 @@ +foo &<]]> diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-594.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-594.md new file mode 100644 index 000000000000..737432fcb017 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-594.md @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-594.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-594.md.prettier-snap new file mode 100644 index 000000000000..737432fcb017 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-594.md.prettier-snap @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-595.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-595.md new file mode 100644 index 000000000000..6c28f1a86c3b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-595.md @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-595.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-595.md.prettier-snap new file mode 100644 index 000000000000..6c28f1a86c3b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-595.md.prettier-snap @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-596.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-596.md new file mode 100644 index 000000000000..b490ec482bb6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-596.md @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-596.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-596.md.prettier-snap new file mode 100644 index 000000000000..b490ec482bb6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-596.md.prettier-snap @@ -0,0 +1 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-597.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-597.md new file mode 100644 index 000000000000..4db0adaab8b8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-597.md @@ -0,0 +1,2 @@ +foo +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-597.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-597.md.prettier-snap new file mode 100644 index 000000000000..4db0adaab8b8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-597.md.prettier-snap @@ -0,0 +1,2 @@ +foo +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-598.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-598.md new file mode 100644 index 000000000000..f84e133daf4e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-598.md @@ -0,0 +1,2 @@ +foo\ +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-598.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-598.md.prettier-snap new file mode 100644 index 000000000000..f84e133daf4e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-598.md.prettier-snap @@ -0,0 +1,2 @@ +foo\ +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-599.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-599.md new file mode 100644 index 000000000000..ca28a0699781 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-599.md @@ -0,0 +1,2 @@ +foo +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-599.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-599.md.prettier-snap new file mode 100644 index 000000000000..4db0adaab8b8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-599.md.prettier-snap @@ -0,0 +1,2 @@ +foo +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-6.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-6.md new file mode 100644 index 000000000000..8d7a36478194 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-6.md @@ -0,0 +1 @@ +> foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-6.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-6.md.prettier-snap new file mode 100644 index 000000000000..cccd9bf1f496 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-6.md.prettier-snap @@ -0,0 +1 @@ +> foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-60.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-60.md new file mode 100644 index 000000000000..6364b709bf13 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-60.md @@ -0,0 +1,2 @@ +> Foo +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-60.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-60.md.prettier-snap new file mode 100644 index 000000000000..ed3cb4762197 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-60.md.prettier-snap @@ -0,0 +1,3 @@ +> Foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-600.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-600.md new file mode 100644 index 000000000000..301f8c48ab59 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-600.md @@ -0,0 +1,2 @@ +foo + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-600.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-600.md.prettier-snap new file mode 100644 index 000000000000..47bd211f6e54 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-600.md.prettier-snap @@ -0,0 +1,2 @@ +foo + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-601.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-601.md new file mode 100644 index 000000000000..dc652c7962ff --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-601.md @@ -0,0 +1,2 @@ +foo\ + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-601.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-601.md.prettier-snap new file mode 100644 index 000000000000..4ec63605fdeb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-601.md.prettier-snap @@ -0,0 +1,2 @@ +foo\ + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-602.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-602.md new file mode 100644 index 000000000000..5dfd9034de15 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-602.md @@ -0,0 +1,2 @@ +*foo +bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-602.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-602.md.prettier-snap new file mode 100644 index 000000000000..8e372cfe6975 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-602.md.prettier-snap @@ -0,0 +1,2 @@ +_foo +bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-603.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-603.md new file mode 100644 index 000000000000..2c3c142e0b33 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-603.md @@ -0,0 +1,2 @@ +*foo\ +bar* diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-603.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-603.md.prettier-snap new file mode 100644 index 000000000000..6479b0ebffc7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-603.md.prettier-snap @@ -0,0 +1,2 @@ +_foo\ +bar_ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-604.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-604.md new file mode 100644 index 000000000000..089e6e45fba7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-604.md @@ -0,0 +1,2 @@ +`code +span` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-604.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-604.md.prettier-snap new file mode 100644 index 000000000000..089e6e45fba7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-604.md.prettier-snap @@ -0,0 +1,2 @@ +`code +span` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-605.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-605.md new file mode 100644 index 000000000000..33e98e97974a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-605.md @@ -0,0 +1,2 @@ +`code\ +span` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-605.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-605.md.prettier-snap new file mode 100644 index 000000000000..33e98e97974a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-605.md.prettier-snap @@ -0,0 +1,2 @@ +`code\ +span` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-606.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-606.md new file mode 100644 index 000000000000..362414b7222e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-606.md @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-606.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-606.md.prettier-snap new file mode 100644 index 000000000000..362414b7222e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-606.md.prettier-snap @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-607.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-607.md new file mode 100644 index 000000000000..b33870738e45 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-607.md @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-607.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-607.md.prettier-snap new file mode 100644 index 000000000000..b33870738e45 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-607.md.prettier-snap @@ -0,0 +1,2 @@ + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-608.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-608.md new file mode 100644 index 000000000000..456c796e2fb7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-608.md @@ -0,0 +1 @@ +foo\ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-608.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-608.md.prettier-snap new file mode 100644 index 000000000000..456c796e2fb7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-608.md.prettier-snap @@ -0,0 +1 @@ +foo\ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-609.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-609.md new file mode 100644 index 000000000000..c1301f0bf905 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-609.md @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-609.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-609.md.prettier-snap new file mode 100644 index 000000000000..257cc5642cb1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-609.md.prettier-snap @@ -0,0 +1 @@ +foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-61.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-61.md new file mode 100644 index 000000000000..1cb8aa4b7de6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-61.md @@ -0,0 +1,3 @@ +> foo +bar +=== diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-61.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-61.md.prettier-snap new file mode 100644 index 000000000000..02b85edf0962 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-61.md.prettier-snap @@ -0,0 +1,3 @@ +> foo + +# bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-610.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-610.md new file mode 100644 index 000000000000..1c1cce7e0bc7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-610.md @@ -0,0 +1 @@ +### foo\ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-610.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-610.md.prettier-snap new file mode 100644 index 000000000000..1c1cce7e0bc7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-610.md.prettier-snap @@ -0,0 +1 @@ +### foo\ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-611.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-611.md new file mode 100644 index 000000000000..48454629b55f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-611.md @@ -0,0 +1 @@ +### foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-611.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-611.md.prettier-snap new file mode 100644 index 000000000000..3edf1fc921d5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-611.md.prettier-snap @@ -0,0 +1 @@ +### foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-612.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-612.md new file mode 100644 index 000000000000..0c071e1d0752 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-612.md @@ -0,0 +1,2 @@ +foo +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-612.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-612.md.prettier-snap new file mode 100644 index 000000000000..0c071e1d0752 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-612.md.prettier-snap @@ -0,0 +1,2 @@ +foo +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-613.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-613.md new file mode 100644 index 000000000000..52f81054522d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-613.md @@ -0,0 +1,2 @@ +foo + baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-613.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-613.md.prettier-snap new file mode 100644 index 000000000000..0c071e1d0752 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-613.md.prettier-snap @@ -0,0 +1,2 @@ +foo +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-614.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-614.md new file mode 100644 index 000000000000..60e0584e9f41 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-614.md @@ -0,0 +1 @@ +hello $.;'there diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-614.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-614.md.prettier-snap new file mode 100644 index 000000000000..60e0584e9f41 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-614.md.prettier-snap @@ -0,0 +1 @@ +hello $.;'there diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-615.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-615.md new file mode 100644 index 000000000000..f67a39e2ddf7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-615.md @@ -0,0 +1 @@ +Foo χρῆν diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-615.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-615.md.prettier-snap new file mode 100644 index 000000000000..f67a39e2ddf7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-615.md.prettier-snap @@ -0,0 +1 @@ +Foo χρῆν diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-616.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-616.md new file mode 100644 index 000000000000..f50e2a65173d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-616.md @@ -0,0 +1 @@ +Multiple spaces diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-616.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-616.md.prettier-snap new file mode 100644 index 000000000000..83dfa9c6e9a6 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-616.md.prettier-snap @@ -0,0 +1 @@ +Multiple spaces diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-62.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-62.md new file mode 100644 index 000000000000..78843d185218 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-62.md @@ -0,0 +1,2 @@ +- Foo +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-62.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-62.md.prettier-snap new file mode 100644 index 000000000000..35c1535c3bf5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-62.md.prettier-snap @@ -0,0 +1,3 @@ +- Foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-63.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-63.md new file mode 100644 index 000000000000..0df98e2fce6d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-63.md @@ -0,0 +1,3 @@ +Foo +Bar +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-63.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-63.md.prettier-snap new file mode 100644 index 000000000000..b83af6851ce4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-63.md.prettier-snap @@ -0,0 +1,4 @@ +Foo +Bar + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-64.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-64.md new file mode 100644 index 000000000000..d71da6285ddd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-64.md @@ -0,0 +1,6 @@ +--- +Foo +--- +Bar +--- +Baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-64.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-64.md.prettier-snap new file mode 100644 index 000000000000..91afaaf1911c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-64.md.prettier-snap @@ -0,0 +1,7 @@ +--- +Foo +--- + +## Bar + +Baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-65.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-65.md new file mode 100644 index 000000000000..26a20a4ea602 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-65.md @@ -0,0 +1,2 @@ + +==== diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-65.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-65.md.prettier-snap new file mode 100644 index 000000000000..693a05c9aa34 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-65.md.prettier-snap @@ -0,0 +1 @@ +==== diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-66.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-66.md new file mode 100644 index 000000000000..a845151cc840 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-66.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-66.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-66.md.prettier-snap new file mode 100644 index 000000000000..a845151cc840 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-66.md.prettier-snap @@ -0,0 +1,2 @@ +--- +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-67.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-67.md new file mode 100644 index 000000000000..e1eabf67b8ae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-67.md @@ -0,0 +1,2 @@ +- foo +----- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-67.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-67.md.prettier-snap new file mode 100644 index 000000000000..b282139d0650 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-67.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-68.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-68.md new file mode 100644 index 000000000000..d2113114c2f8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-68.md @@ -0,0 +1,2 @@ + foo +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-68.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-68.md.prettier-snap new file mode 100644 index 000000000000..073e38d982a5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-68.md.prettier-snap @@ -0,0 +1,3 @@ + foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-69.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-69.md new file mode 100644 index 000000000000..c2119620488e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-69.md @@ -0,0 +1,2 @@ +> foo +----- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-69.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-69.md.prettier-snap new file mode 100644 index 000000000000..ad52f2258517 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-69.md.prettier-snap @@ -0,0 +1,3 @@ +> foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-7.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-7.md new file mode 100644 index 000000000000..2507b4012b22 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-7.md @@ -0,0 +1 @@ +- foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-7.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-7.md.prettier-snap new file mode 100644 index 000000000000..ccb02b4a92bb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-7.md.prettier-snap @@ -0,0 +1 @@ +- foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-70.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-70.md new file mode 100644 index 000000000000..41c649b5bcd8 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-70.md @@ -0,0 +1,2 @@ +\> foo +------ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-70.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-70.md.prettier-snap new file mode 100644 index 000000000000..710d0fe7b418 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-70.md.prettier-snap @@ -0,0 +1 @@ +## \> foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-71.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-71.md new file mode 100644 index 000000000000..b5d165cd3fe1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-71.md @@ -0,0 +1,5 @@ +Foo + +bar +--- +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-71.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-71.md.prettier-snap new file mode 100644 index 000000000000..75526a3fbfc0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-71.md.prettier-snap @@ -0,0 +1,5 @@ +Foo + +## bar + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-72.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-72.md new file mode 100644 index 000000000000..417d1ab64ab7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-72.md @@ -0,0 +1,6 @@ +Foo +bar + +--- + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-72.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-72.md.prettier-snap new file mode 100644 index 000000000000..417d1ab64ab7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-72.md.prettier-snap @@ -0,0 +1,6 @@ +Foo +bar + +--- + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-73.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-73.md new file mode 100644 index 000000000000..9264d3b9d8ae --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-73.md @@ -0,0 +1,4 @@ +Foo +bar +* * * +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-73.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-73.md.prettier-snap new file mode 100644 index 000000000000..417d1ab64ab7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-73.md.prettier-snap @@ -0,0 +1,6 @@ +Foo +bar + +--- + +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-74.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-74.md new file mode 100644 index 000000000000..da1e37b5c450 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-74.md @@ -0,0 +1,4 @@ +Foo +bar +\--- +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-74.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-74.md.prettier-snap new file mode 100644 index 000000000000..da1e37b5c450 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-74.md.prettier-snap @@ -0,0 +1,4 @@ +Foo +bar +\--- +baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-75.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-75.md new file mode 100644 index 000000000000..da8bebc7808e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-75.md @@ -0,0 +1,2 @@ + a simple + indented code block diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-75.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-75.md.prettier-snap new file mode 100644 index 000000000000..da8bebc7808e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-75.md.prettier-snap @@ -0,0 +1,2 @@ + a simple + indented code block diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-76.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-76.md new file mode 100644 index 000000000000..34c658211b44 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-76.md @@ -0,0 +1,3 @@ + - foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-76.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-76.md.prettier-snap new file mode 100644 index 000000000000..58871287f77a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-76.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-77.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-77.md new file mode 100644 index 000000000000..a7805fe5c5ee --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-77.md @@ -0,0 +1,3 @@ +1. foo + + - bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-77.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-77.md.prettier-snap new file mode 100644 index 000000000000..d77775f41303 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-77.md.prettier-snap @@ -0,0 +1,2 @@ +1. foo + - bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-78.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-78.md new file mode 100644 index 000000000000..7fb226929851 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-78.md @@ -0,0 +1,4 @@ + + *hi* + + - one diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-78.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-78.md.prettier-snap new file mode 100644 index 000000000000..7fb226929851 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-78.md.prettier-snap @@ -0,0 +1,4 @@ + + *hi* + + - one diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-79.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-79.md new file mode 100644 index 000000000000..61329a167932 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-79.md @@ -0,0 +1,7 @@ + chunk1 + + chunk2 + + + + chunk3 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-79.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-79.md.prettier-snap new file mode 100644 index 000000000000..1ede5d7118a7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-79.md.prettier-snap @@ -0,0 +1,7 @@ + chunk1 + + chunk2 + + + + chunk3 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-8.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-8.md new file mode 100644 index 000000000000..05725ec7afbd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-8.md @@ -0,0 +1,2 @@ + foo + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-8.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-8.md.prettier-snap new file mode 100644 index 000000000000..919c173954ca --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-8.md.prettier-snap @@ -0,0 +1,2 @@ + foo + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-80.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-80.md new file mode 100644 index 000000000000..0c567cd0e932 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-80.md @@ -0,0 +1,3 @@ + chunk1 + + chunk2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-80.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-80.md.prettier-snap new file mode 100644 index 000000000000..a396e4197b99 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-80.md.prettier-snap @@ -0,0 +1,3 @@ + chunk1 + + chunk2 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-81.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-81.md new file mode 100644 index 000000000000..030bb78d188a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-81.md @@ -0,0 +1,2 @@ +Foo + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-81.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-81.md.prettier-snap new file mode 100644 index 000000000000..bfbc9abaea29 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-81.md.prettier-snap @@ -0,0 +1,2 @@ +Foo +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-82.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-82.md new file mode 100644 index 000000000000..3eddf593f537 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-82.md @@ -0,0 +1,2 @@ + foo +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-82.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-82.md.prettier-snap new file mode 100644 index 000000000000..1de3765b2ec4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-82.md.prettier-snap @@ -0,0 +1,3 @@ + foo + +bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-83.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-83.md new file mode 100644 index 000000000000..110b56113cfd --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-83.md @@ -0,0 +1,6 @@ +# Heading + foo +Heading +------ + foo +---- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-83.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-83.md.prettier-snap new file mode 100644 index 000000000000..13b8a7b2d08f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-83.md.prettier-snap @@ -0,0 +1,9 @@ +# Heading + + foo + +## Heading + + foo + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-84.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-84.md new file mode 100644 index 000000000000..3941805d8743 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-84.md @@ -0,0 +1,2 @@ + foo + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-84.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-84.md.prettier-snap new file mode 100644 index 000000000000..3941805d8743 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-84.md.prettier-snap @@ -0,0 +1,2 @@ + foo + bar diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-85.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-85.md new file mode 100644 index 000000000000..1615a8bd1793 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-85.md @@ -0,0 +1,4 @@ + + + foo + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-85.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-85.md.prettier-snap new file mode 100644 index 000000000000..27be8730fffe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-85.md.prettier-snap @@ -0,0 +1 @@ + foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-86.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-86.md new file mode 100644 index 000000000000..513df4fa0fc0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-86.md @@ -0,0 +1 @@ + foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-86.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-86.md.prettier-snap new file mode 100644 index 000000000000..27be8730fffe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-86.md.prettier-snap @@ -0,0 +1 @@ + foo diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-87.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-87.md new file mode 100644 index 000000000000..687daa8ca524 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-87.md @@ -0,0 +1,4 @@ +``` +< + > +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-87.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-87.md.prettier-snap new file mode 100644 index 000000000000..687daa8ca524 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-87.md.prettier-snap @@ -0,0 +1,4 @@ +``` +< + > +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-88.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-88.md new file mode 100644 index 000000000000..463cc81ee80e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-88.md @@ -0,0 +1,4 @@ +~~~ +< + > +~~~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-88.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-88.md.prettier-snap new file mode 100644 index 000000000000..687daa8ca524 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-88.md.prettier-snap @@ -0,0 +1,4 @@ +``` +< + > +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-89.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-89.md new file mode 100644 index 000000000000..82bbc51748db --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-89.md @@ -0,0 +1,4 @@ +``` +aaa +~~~ +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-89.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-89.md.prettier-snap new file mode 100644 index 000000000000..82bbc51748db --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-89.md.prettier-snap @@ -0,0 +1,4 @@ +``` +aaa +~~~ +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-9.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-9.md new file mode 100644 index 000000000000..1b1ff6a58f11 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-9.md @@ -0,0 +1,3 @@ + - foo + - bar + - baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-9.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-9.md.prettier-snap new file mode 100644 index 000000000000..d55045bd46e9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-9.md.prettier-snap @@ -0,0 +1,3 @@ +- foo + - bar + - baz diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-90.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-90.md new file mode 100644 index 000000000000..daa65de1120a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-90.md @@ -0,0 +1,4 @@ +~~~ +aaa +``` +~~~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-90.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-90.md.prettier-snap new file mode 100644 index 000000000000..412118c1893b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-90.md.prettier-snap @@ -0,0 +1,4 @@ +```` +aaa +``` +```` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-91.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-91.md new file mode 100644 index 000000000000..ad5ffffe4d2a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-91.md @@ -0,0 +1,4 @@ +```` +aaa +``` +`````` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-91.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-91.md.prettier-snap new file mode 100644 index 000000000000..412118c1893b --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-91.md.prettier-snap @@ -0,0 +1,4 @@ +```` +aaa +``` +```` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-92.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-92.md new file mode 100644 index 000000000000..4ec285ca06a4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-92.md @@ -0,0 +1,4 @@ +~~~~ +aaa +~~~ +~~~~ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-92.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-92.md.prettier-snap new file mode 100644 index 000000000000..82bbc51748db --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-92.md.prettier-snap @@ -0,0 +1,4 @@ +``` +aaa +~~~ +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-93.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-93.md new file mode 100644 index 000000000000..8c5b07d1f0ca --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-93.md @@ -0,0 +1 @@ +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-93.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-93.md.prettier-snap new file mode 100644 index 000000000000..a72df239937c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-93.md.prettier-snap @@ -0,0 +1,3 @@ +``` + +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-94.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-94.md new file mode 100644 index 000000000000..8d0ed400bec5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-94.md @@ -0,0 +1,4 @@ +````` + +``` +aaa diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-94.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-94.md.prettier-snap new file mode 100644 index 000000000000..251b2312370f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-94.md.prettier-snap @@ -0,0 +1,5 @@ +```` + +``` +aaa +```` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-95.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-95.md new file mode 100644 index 000000000000..c324df35e8f7 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-95.md @@ -0,0 +1,4 @@ +> ``` +> aaa + +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-95.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-95.md.prettier-snap new file mode 100644 index 000000000000..0c69e8dedb7f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-95.md.prettier-snap @@ -0,0 +1,5 @@ +> ``` +> aaa +> ``` + +bbb diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-96.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-96.md new file mode 100644 index 000000000000..70646e4b5bbf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-96.md @@ -0,0 +1,4 @@ +``` + + +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-96.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-96.md.prettier-snap new file mode 100644 index 000000000000..bf5d969dcb2a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-96.md.prettier-snap @@ -0,0 +1,4 @@ +``` + + +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-97.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-97.md new file mode 100644 index 000000000000..47d4a3700ca9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-97.md @@ -0,0 +1,2 @@ +``` +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-97.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-97.md.prettier-snap new file mode 100644 index 000000000000..a72df239937c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-97.md.prettier-snap @@ -0,0 +1,3 @@ +``` + +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-98.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-98.md new file mode 100644 index 000000000000..d37b19507909 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-98.md @@ -0,0 +1,4 @@ + ``` + aaa +aaa +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-98.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-98.md.prettier-snap new file mode 100644 index 000000000000..b8a6ab982b6f --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-98.md.prettier-snap @@ -0,0 +1,4 @@ +``` +aaa +aaa +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-99.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-99.md new file mode 100644 index 000000000000..d4be1b1b1d65 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-99.md @@ -0,0 +1,5 @@ + ``` +aaa + aaa +aaa + ``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-99.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-99.md.prettier-snap new file mode 100644 index 000000000000..6d3c667c3392 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/spec/example-99.md.prettier-snap @@ -0,0 +1,5 @@ +``` +aaa +aaa +aaa +``` diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/chinese-japanese.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/chinese-japanese.md new file mode 100644 index 000000000000..503efb63095c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/chinese-japanese.md @@ -0,0 +1,13 @@ +這是一段很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長的段落 + +全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白 + +空白全形空白全形空白全形空白 空白全形空白全形空白全形空白 空白全形空白全形空白全形空白 空白全形空白全形空白全形空白 + +何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。 + +カ゚キ゚ク゚ケ゚コ゚でガギグゴ + +nasalカ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚ + +かつてはワ行のワ、ヰ、ヱ、ヲに濁点を付して [v] 音を表現すること(ワ゛、ヰ゛、ヱ゛、ヲ゛)も行われたが、一般的にはならなかった。 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/chinese-japanese.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/chinese-japanese.md.prettier-snap new file mode 100644 index 000000000000..503efb63095c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/chinese-japanese.md.prettier-snap @@ -0,0 +1,13 @@ +這是一段很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長的段落 + +全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白全  形 空白 + +空白全形空白全形空白全形空白 空白全形空白全形空白全形空白 空白全形空白全形空白全形空白 空白全形空白全形空白全形空白 + +何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。 + +カ゚キ゚ク゚ケ゚コ゚でガギグゴ + +nasalカ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚カ゚キ゚ク゚ケ゚コ゚ + +かつてはワ行のワ、ヰ、ヱ、ヲに濁点を付して [v] 音を表現すること(ワ゛、ヰ゛、ヱ゛、ヲ゛)も行われたが、一般的にはならなかった。 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/han-kana-alnum.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/han-kana-alnum.md new file mode 100644 index 000000000000..55e90bc7237e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/han-kana-alnum.md @@ -0,0 +1,7 @@ +這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph! + +Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする? + +MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー! + +Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/han-kana-alnum.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/han-kana-alnum.md.prettier-snap new file mode 100644 index 000000000000..55e90bc7237e --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/han-kana-alnum.md.prettier-snap @@ -0,0 +1,7 @@ +這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph! + +Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする?Englishと日本語が混ざったParagraphが現れた!Prettierはどうする? + +MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー!MarkdownフォーマッターPrettierはサイコー! + +Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。Prettierの最初のCommitは2016年11月29日に行われました。Prettier的第一次Commit是在2016年11月29日。 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/korean.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/korean.md new file mode 100644 index 000000000000..ba7608861d30 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/korean.md @@ -0,0 +1,62 @@ +예문Latin예문Latin 예문Latin예문 Latin예문Latin 예문 Latin 예문 + +한국어와 English를 섞어 보았습니다. 한국어와 English를 섞어 보았습니다. +한국어와 +English를 +섞어 +보았습니다. +한국어와 +English를 +섞어 +보았습니다. +한국어와 English를 섞어 보았습니다. 한국어와 English를 섞어 보았습니다. +한국어와 +English를 +섞어 +보았습니다. +한국어와 +English를 +섞어 +보았습니다. +한국어와 English를 섞어 보았습니다. 한국어와 English를 섞어 보았습니다. + +NVIDIA의 RTX3000 시리즈는 삼성전자와 TSMC에 의해 제조된다. +NVIDIA의 RTX3000 시리즈는 삼성전자와 TSMC에 의해 제조된다. +NVIDIA의 +RTX3000 +시리즈는 +삼성전자와 +TSMC에 +의해 +제조된다. +NVIDIA의 RTX3000 시리즈는 삼성전자와 TSMC에 의해 제조된다. +NVIDIA의 RTX3000 시리즈는 삼성전자와 TSMC에 의해 제조된다. + +대한민국(듣기 (도움말·정보), 大韓民國, 영어: Republic of Korea; ROK[3])은 동아시아의 한반도 중남부에 있는 공화국이다. + +서쪽으로는 서해를 사이에 두고 중화인민공화국이, 동쪽으로는 동해를 사이에 두고 일본이 있으며 +북쪽으로는 조선민주주의인민공화국과 맞닿아 있다. + +역대 대통령은 李承晩 과 許政 과 尹潽善 과 朴正熙 과 崔圭夏 과 朴忠勳 과 全斗煥 과 盧泰愚 과 金泳三 과 金大中 과 盧武鉉 과 李明博 과 朴槿惠 과 文在寅 과 尹錫悅 과 음... +역대 대통령은 +李承晩 +과 +許政 +과 +尹潽善 +과 +朴正熙 과 +崔圭夏 과 +朴忠勳 과 +全斗煥 과 +盧泰愚 과 +金泳三 +과 金大中 +과 盧武鉉 +과 李明博 +과 朴槿惠 +과 文在寅 +과 尹錫悅 과 +음... + +역대 대통령은 李承晩과 許政과 尹潽善과 朴正熙과 崔圭夏과 朴忠勳과 全斗煥과 盧泰愚과 金泳三과 金大中과 盧武鉉과 李明博과 朴槿惠과 文在寅과 尹錫悅과 음... 역대 대통령은 李承晩과 許政과 尹潽善과 朴正熙과 崔圭夏과 朴忠勳과 全斗煥과 盧泰愚과 金泳三과 金大中과 盧武鉉과 李明博과 朴槿惠과 文在寅과 尹錫悅과 음... diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/korean.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/korean.md.prettier-snap new file mode 100644 index 000000000000..ba7608861d30 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/korean.md.prettier-snap @@ -0,0 +1,62 @@ +예문Latin예문Latin 예문Latin예문 Latin예문Latin 예문 Latin 예문 + +한국어와 English를 섞어 보았습니다. 한국어와 English를 섞어 보았습니다. +한국어와 +English를 +섞어 +보았습니다. +한국어와 +English를 +섞어 +보았습니다. +한국어와 English를 섞어 보았습니다. 한국어와 English를 섞어 보았습니다. +한국어와 +English를 +섞어 +보았습니다. +한국어와 +English를 +섞어 +보았습니다. +한국어와 English를 섞어 보았습니다. 한국어와 English를 섞어 보았습니다. + +NVIDIA의 RTX3000 시리즈는 삼성전자와 TSMC에 의해 제조된다. +NVIDIA의 RTX3000 시리즈는 삼성전자와 TSMC에 의해 제조된다. +NVIDIA의 +RTX3000 +시리즈는 +삼성전자와 +TSMC에 +의해 +제조된다. +NVIDIA의 RTX3000 시리즈는 삼성전자와 TSMC에 의해 제조된다. +NVIDIA의 RTX3000 시리즈는 삼성전자와 TSMC에 의해 제조된다. + +대한민국(듣기 (도움말·정보), 大韓民國, 영어: Republic of Korea; ROK[3])은 동아시아의 한반도 중남부에 있는 공화국이다. + +서쪽으로는 서해를 사이에 두고 중화인민공화국이, 동쪽으로는 동해를 사이에 두고 일본이 있으며 +북쪽으로는 조선민주주의인민공화국과 맞닿아 있다. + +역대 대통령은 李承晩 과 許政 과 尹潽善 과 朴正熙 과 崔圭夏 과 朴忠勳 과 全斗煥 과 盧泰愚 과 金泳三 과 金大中 과 盧武鉉 과 李明博 과 朴槿惠 과 文在寅 과 尹錫悅 과 음... +역대 대통령은 +李承晩 +과 +許政 +과 +尹潽善 +과 +朴正熙 과 +崔圭夏 과 +朴忠勳 과 +全斗煥 과 +盧泰愚 과 +金泳三 +과 金大中 +과 盧武鉉 +과 李明博 +과 朴槿惠 +과 文在寅 +과 尹錫悅 과 +음... + +역대 대통령은 李承晩과 許政과 尹潽善과 朴正熙과 崔圭夏과 朴忠勳과 全斗煥과 盧泰愚과 金泳三과 金大中과 盧武鉉과 李明博과 朴槿惠과 文在寅과 尹錫悅과 음... 역대 대통령은 李承晩과 許政과 尹潽善과 朴正熙과 崔圭夏과 朴忠勳과 全斗煥과 盧泰愚과 金泳三과 金大中과 盧武鉉과 李明博과 朴槿惠과 文在寅과 尹錫悅과 음... diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/link.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/link.md new file mode 100644 index 000000000000..fb0610449a34 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/link.md @@ -0,0 +1 @@ +[這是一段很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長的段落][] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/link.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/link.md.prettier-snap new file mode 100644 index 000000000000..fb0610449a34 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/link.md.prettier-snap @@ -0,0 +1 @@ +[這是一段很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長很長的段落][] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/mixed.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/mixed.md new file mode 100644 index 000000000000..291ac3bbe2a0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/mixed.md @@ -0,0 +1 @@ +這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph! diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/mixed.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/mixed.md.prettier-snap new file mode 100644 index 000000000000..291ac3bbe2a0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/mixed.md.prettier-snap @@ -0,0 +1 @@ +這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph!這是一個English混合著中文的一段Paragraph! diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/space.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/space.md new file mode 100644 index 000000000000..602a37641540 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/space.md @@ -0,0 +1 @@ +這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph! diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/space.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/space.md.prettier-snap new file mode 100644 index 000000000000..602a37641540 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/space.md.prettier-snap @@ -0,0 +1 @@ +這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph!這是一個 English 混合著中文的一段 Paragraph! diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/symbolSpaceNewLine.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/symbolSpaceNewLine.md new file mode 100644 index 000000000000..bceb8cb66d51 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/symbolSpaceNewLine.md @@ -0,0 +1,72 @@ +日本語 +、 +にほんご +。 +汉语, +中文. +日 +本 +語 +, +に +ほ +ん +ご +. +English +words!? +漢字 +! +汉字 +? +「セリフ」 +(括弧) +文字 +(括弧) +文字 +【括弧】 +日本語 +English + +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)」 +「禁則(きんそく)処理(しょり)」 +「禁則(きんそく)処理(しょり)!!!!」 +「禁則(きんそく)処理(しょり)!!!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 + +中点 +・ +中点 + +禁則処理にわざと違反した文章のテストを今から行います。準備はいいでしょうか?レデ +ィ、ゴー! + +[ウ +ィキペディア] + +[ウ +ィキペディア]: https://ja.wikipedia.org/ + +C言 +語 +・ +C++ +・ +Go +・ +Rust + +U+301C〜 +U+FF5E~ +U+1F221🈡 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/symbolSpaceNewLine.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/symbolSpaceNewLine.md.prettier-snap new file mode 100644 index 000000000000..2aa116412c99 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/splitCjkText/symbolSpaceNewLine.md.prettier-snap @@ -0,0 +1,71 @@ +日本語 +、 +にほんご +。 +汉语, +中文. +日 +本 +語 +, +に +ほ +ん +ご +. +English +words!? +漢字 +! +汉字 +? +「セリフ」 +(括弧) +文字 +(括弧) +文字 +【括弧】 +日本語 +English + +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)」 +「禁則(きんそく)処理(しょり)」 +「禁則(きんそく)処理(しょり)!!!!」 +「禁則(きんそく)処理(しょり)!!!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 +「禁則(きんそく)処理(しょり)!」 + +中点 +・ +中点 + +禁則処理にわざと違反した文章のテストを今から行います。準備はいいでしょうか?レデ +ィ、ゴー! + +[ウ +ィキペディア] + +[ウ ィキペディア]: https://ja.wikipedia.org/ + +C言 +語 +・ +C++ +・ +Go +・ +Rust + +U+301C〜 +U+FF5E~ +U+1F221🈡 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/asterisk.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/asterisk.md new file mode 100644 index 000000000000..df23aa7674ee --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/asterisk.md @@ -0,0 +1 @@ +**123** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/asterisk.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/asterisk.md.prettier-snap new file mode 100644 index 000000000000..df23aa7674ee --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/asterisk.md.prettier-snap @@ -0,0 +1 @@ +**123** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/underscore.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/underscore.md new file mode 100644 index 000000000000..723ea67fd518 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/underscore.md @@ -0,0 +1 @@ +__123__ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/underscore.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/underscore.md.prettier-snap new file mode 100644 index 000000000000..df23aa7674ee --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/strong/underscore.md.prettier-snap @@ -0,0 +1 @@ +**123** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/align.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/align.md new file mode 100644 index 000000000000..7274a6132abc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/align.md @@ -0,0 +1,3 @@ +|a|b|c| +|:--|:-:|--:| +|d|e|f| diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/align.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/align.md.prettier-snap new file mode 100644 index 000000000000..b1afa2cb73fe --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/align.md.prettier-snap @@ -0,0 +1,3 @@ +| a | b | c | +| :-- | :-: | --: | +| d | e | f | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/cjk.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/cjk.md new file mode 100644 index 000000000000..250e8145cfa0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/cjk.md @@ -0,0 +1,3 @@ +| abc | def | ghi | +| --- | --- | --- | +| 第一欄 | 第二欄 | 第三欄 | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/cjk.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/cjk.md.prettier-snap new file mode 100644 index 000000000000..890d2dc2610c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/cjk.md.prettier-snap @@ -0,0 +1,3 @@ +| abc | def | ghi | +| ------ | ------ | ------ | +| 第一欄 | 第二欄 | 第三欄 | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/emoji.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/emoji.md new file mode 100644 index 000000000000..8ad8385ebc20 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/emoji.md @@ -0,0 +1,3 @@ +| abc | def | ghi | +| --- | --- | --- | +| 👍👍👍 | 👍👍👍 | 👍👍👍 | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/emoji.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/emoji.md.prettier-snap new file mode 100644 index 000000000000..593130633af3 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/emoji.md.prettier-snap @@ -0,0 +1,3 @@ +| abc | def | ghi | +| ------ | ------ | ------ | +| 👍👍👍 | 👍👍👍 | 👍👍👍 | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty-table/empty-table.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty-table/empty-table.md new file mode 100644 index 000000000000..3765cc4048a0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty-table/empty-table.md @@ -0,0 +1,11 @@ +Text + +| Specify the selected option : | Option 1 | +|:--| --- | + +Text + +| Should print as compact table when --proseWrap=never|a long long long long long long long long long long long long long head| +|---|--:| + +Text diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty-table/empty-table.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty-table/empty-table.md.prettier-snap new file mode 100644 index 000000000000..2d90d7720068 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty-table/empty-table.md.prettier-snap @@ -0,0 +1,11 @@ +Text + +| Specify the selected option : | Option 1 | +| :---------------------------- | -------- | + +Text + +| Should print as compact table when --proseWrap=never | a long long long long long long long long long long long long long head | +| ---------------------------------------------------- | ----------------------------------------------------------------------: | + +Text diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty.md new file mode 100644 index 000000000000..fb58dab0b6c9 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty.md @@ -0,0 +1,4 @@ +Foo | Bar +--- | --- +X | +Y | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty.md.prettier-snap new file mode 100644 index 000000000000..e3befa2497c5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/empty.md.prettier-snap @@ -0,0 +1,4 @@ +| Foo | Bar | +| --- | --- | +| X | +| Y | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/escape.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/escape.md new file mode 100644 index 000000000000..f6d06a7ac151 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/escape.md @@ -0,0 +1,3 @@ +| a | b | c | +|:--|:-:|--:| +| \| | \| | \| | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/escape.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/escape.md.prettier-snap new file mode 100644 index 000000000000..587fafb7f4ce --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/escape.md.prettier-snap @@ -0,0 +1,3 @@ +| a | b | c | +| :-- | :-: | --: | +| \| | \| | \| | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/html.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/html.md new file mode 100644 index 000000000000..9e6657dc37fc --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/html.md @@ -0,0 +1,3 @@ +Default | CLI Override | API Override +--------|--------------|------------- +`"none"` | --trailing-comma | trailingComma: "" diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/html.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/html.md.prettier-snap new file mode 100644 index 000000000000..f268f48da02a --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/html.md.prettier-snap @@ -0,0 +1,3 @@ +| Default | CLI Override | API Override | +| -------- | ------------------------------------------------------ | ------------------------------------------------------ | +| `"none"` | --trailing-comma | trailingComma: "" | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/issue-15572.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/issue-15572.md new file mode 100644 index 000000000000..984349fad888 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/issue-15572.md @@ -0,0 +1,5 @@ +| | | +| :-: | :-: | +| ✔ | ✘ | +| ✘ | ✔ | +| ✔ | ✘ | \ No newline at end of file diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/issue-15572.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/issue-15572.md.prettier-snap new file mode 100644 index 000000000000..70c768ca2761 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/issue-15572.md.prettier-snap @@ -0,0 +1,5 @@ +| | | +| :-: | :-: | +| ✔ | ✘ | +| ✘ | ✔ | +| ✔ | ✘ | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/simple.md new file mode 100644 index 000000000000..950a3d2f78f5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/simple.md @@ -0,0 +1,3 @@ +| Title A | Title B | Title C | +|---|---|---| +| content A | content B | content C | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/simple.md.prettier-snap new file mode 100644 index 000000000000..d1dfcf1efbd5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/simple.md.prettier-snap @@ -0,0 +1,3 @@ +| Title A | Title B | Title C | +| --------- | --------- | --------- | +| content A | content B | content C | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/table.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/table.md new file mode 100644 index 000000000000..2afa7167f879 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/table.md @@ -0,0 +1,18 @@ +- 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| + +| col1 | col2 | col3 | +|---|--|--| +| long text | `` | text | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/table.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/table.md.prettier-snap new file mode 100644 index 000000000000..3de5b9623390 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/table/table.md.prettier-snap @@ -0,0 +1,19 @@ +- 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 | + +| col1 | col2 | col3 | +| --------- | ---- | ---- | +| long text | `` | text | diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/list.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/list.md new file mode 100644 index 000000000000..0581c7965dab --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/list.md @@ -0,0 +1,2 @@ +- * * * ++ - - - diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/list.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/list.md.prettier-snap new file mode 100644 index 000000000000..ebf654c19ec2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/list.md.prettier-snap @@ -0,0 +1,3 @@ +- *** + +* --- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/simple.md new file mode 100644 index 000000000000..6a7e452749cf --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/simple.md @@ -0,0 +1 @@ +*** diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/simple.md.prettier-snap new file mode 100644 index 000000000000..ed97d539c095 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/thematicBreak/simple.md.prettier-snap @@ -0,0 +1 @@ +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/empty.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/empty.md new file mode 100644 index 000000000000..ac36e0622776 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/empty.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/empty.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/empty.md.prettier-snap new file mode 100644 index 000000000000..ac36e0622776 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/empty.md.prettier-snap @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/simple.md new file mode 100644 index 000000000000..7a0aa6e7373c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/simple.md @@ -0,0 +1,5 @@ ++++ +date: '2017-10-10T22:49:47.369Z' +title: 'My Post Title' +categories: ['foo', 'bar'] ++++ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/simple.md.prettier-snap new file mode 100644 index 000000000000..7a0aa6e7373c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/toml/simple.md.prettier-snap @@ -0,0 +1,5 @@ ++++ +date: '2017-10-10T22:49:47.369Z' +title: 'My Post Title' +categories: ['foo', 'bar'] ++++ diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/additional-spacing.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/additional-spacing.md new file mode 100644 index 000000000000..ad7c0b9068c1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/additional-spacing.md @@ -0,0 +1 @@ +[[Additional spacing within the link should be preserved]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/additional-spacing.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/additional-spacing.md.prettier-snap new file mode 100644 index 000000000000..ad7c0b9068c1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/additional-spacing.md.prettier-snap @@ -0,0 +1 @@ +[[Additional spacing within the link should be preserved]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/end-of-line.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/end-of-line.md new file mode 100644 index 000000000000..b3ec177a3582 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/end-of-line.md @@ -0,0 +1,2 @@ +If I have some markdown text, it should be wrapped properly at the character limit for markdown. +However, if I have a link that overflows the end of line it should be [[wrapped as a single entity]] like this. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/end-of-line.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/end-of-line.md.prettier-snap new file mode 100644 index 000000000000..b3ec177a3582 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/end-of-line.md.prettier-snap @@ -0,0 +1,2 @@ +If I have some markdown text, it should be wrapped properly at the character limit for markdown. +However, if I have a link that overflows the end of line it should be [[wrapped as a single entity]] like this. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose-broken.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose-broken.md new file mode 100644 index 000000000000..070b8bda4e46 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose-broken.md @@ -0,0 +1,2 @@ +I have some markdown prose here, with a horrible run-on sentence that [[makes little sense at all as I +continue it into an obscenely long wiki-style link thingy]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose-broken.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose-broken.md.prettier-snap new file mode 100644 index 000000000000..070b8bda4e46 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose-broken.md.prettier-snap @@ -0,0 +1,2 @@ +I have some markdown prose here, with a horrible run-on sentence that [[makes little sense at all as I +continue it into an obscenely long wiki-style link thingy]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose.md new file mode 100644 index 000000000000..c74bc9c9d692 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose.md @@ -0,0 +1 @@ +I have some markdown prose here, with a horrible run-on sentence that [[makes little sense at all as I continue it into an obscenely long wiki-style link thingy]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose.md.prettier-snap new file mode 100644 index 000000000000..c74bc9c9d692 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length-in-prose.md.prettier-snap @@ -0,0 +1 @@ +I have some markdown prose here, with a horrible run-on sentence that [[makes little sense at all as I continue it into an obscenely long wiki-style link thingy]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length.md new file mode 100644 index 000000000000..357750691c70 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length.md @@ -0,0 +1 @@ +[[Here is an incredibly long wiki-style link that overflows the standard wrap width for markdown]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length.md.prettier-snap new file mode 100644 index 000000000000..357750691c70 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/exceeds-line-length.md.prettier-snap @@ -0,0 +1 @@ +[[Here is an incredibly long wiki-style link that overflows the standard wrap width for markdown]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-leading.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-leading.md new file mode 100644 index 000000000000..24e58c13eeb4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-leading.md @@ -0,0 +1,2 @@ +A very long line of markdown with additional brackets as it wraps over [[[the end like this]]. + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-leading.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-leading.md.prettier-snap new file mode 100644 index 000000000000..26a689c4db17 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-leading.md.prettier-snap @@ -0,0 +1 @@ +A very long line of markdown with additional brackets as it wraps over [[[the end like this]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-trailing.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-trailing.md new file mode 100644 index 000000000000..b9720bbb0335 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-trailing.md @@ -0,0 +1,2 @@ +A very long line of markdown with additional brackets as it wraps over [[the end like this]]]. + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-trailing.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-trailing.md.prettier-snap new file mode 100644 index 000000000000..01270e1ebfb0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets-trailing.md.prettier-snap @@ -0,0 +1 @@ +A very long line of markdown with additional brackets as it wraps over [[the end like this]]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets.md new file mode 100644 index 000000000000..7b5595f1ae99 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets.md @@ -0,0 +1,2 @@ +A very long line of markdown with additional brackets as it wraps over the [[[end like this]]]. + diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets.md.prettier-snap new file mode 100644 index 000000000000..78827c4290d1 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/extra-brackets.md.prettier-snap @@ -0,0 +1 @@ +A very long line of markdown with additional brackets as it wraps over the [[[end like this]]]. diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/multi-line.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/multi-line.md new file mode 100644 index 000000000000..803eeac94cf2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/multi-line.md @@ -0,0 +1,2 @@ +[[a +b]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/multi-line.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/multi-line.md.prettier-snap new file mode 100644 index 000000000000..803eeac94cf2 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/multi-line.md.prettier-snap @@ -0,0 +1,2 @@ +[[a +b]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/nested-link.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/nested-link.md new file mode 100644 index 000000000000..be908a4e9a0d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/nested-link.md @@ -0,0 +1 @@ +Here's some text to ensure that the link and wiki link break the line [[a[b](http://www.example.com/)]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/nested-link.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/nested-link.md.prettier-snap new file mode 100644 index 000000000000..be908a4e9a0d --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/nested-link.md.prettier-snap @@ -0,0 +1 @@ +Here's some text to ensure that the link and wiki link break the line [[a[b](http://www.example.com/)]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/simple.md new file mode 100644 index 000000000000..2755eca02ae5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/simple.md @@ -0,0 +1 @@ +[[A simple wiki link on a single line]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/simple.md.prettier-snap new file mode 100644 index 000000000000..2755eca02ae5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/simple.md.prettier-snap @@ -0,0 +1 @@ +[[A simple wiki link on a single line]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/with-whitespace.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/with-whitespace.md new file mode 100644 index 000000000000..6f37e96ea118 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/with-whitespace.md @@ -0,0 +1 @@ +[[ Here is a link with leading and trailing whitespace. ]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/with-whitespace.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/with-whitespace.md.prettier-snap new file mode 100644 index 000000000000..b0c1469565d0 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/wiki-link/with-whitespace.md.prettier-snap @@ -0,0 +1 @@ +[[Here is a link with leading and trailing whitespace.]] diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/word/escape.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/word/escape.md new file mode 100644 index 000000000000..07b40ab927ec --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/word/escape.md @@ -0,0 +1,29 @@ +hello \* world _ ~~ ya + +escape & html < entity > foo + +qweqwe \\ \ \1 123123 + +asd & asd „ 123 + +123_123_123 + +456 _ 456 _ 456 + +123*123*123 + +123 * 123 * 123 + +## 类的 prototype 属性和\_\_proto\_\_属性 + +123�123 + +123#123 + +123Ϡ123 + +123😉123 + +123"123 + +123�123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/word/escape.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/word/escape.md.prettier-snap new file mode 100644 index 000000000000..2d8b9520fe54 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/word/escape.md.prettier-snap @@ -0,0 +1,29 @@ +hello \* world \_ ~~ ya + +escape & html < entity > foo + +qweqwe \\ \ \1 123123 + +asd & asd „ 123 + +123_123_123 + +456 _ 456 _ 456 + +123*123*123 + +123 _ 123 _ 123 + +## 类的 prototype 属性和\_\_proto\_\_属性 + +123�123 + +123#123 + +123Ϡ123 + +123😉123 + +123"123 + +123�123 diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/complex.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/complex.md new file mode 100644 index 000000000000..3584e74e06eb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/complex.md @@ -0,0 +1,6 @@ +--- +- hello: world +- 123 +--- + +# something diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/complex.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/complex.md.prettier-snap new file mode 100644 index 000000000000..3584e74e06eb --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/complex.md.prettier-snap @@ -0,0 +1,6 @@ +--- +- hello: world +- 123 +--- + +# something diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty-2.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty-2.md new file mode 100644 index 000000000000..95d5a80ed1c4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty-2.md @@ -0,0 +1,4 @@ +--- +--- + +Content diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty-2.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty-2.md.prettier-snap new file mode 100644 index 000000000000..95d5a80ed1c4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty-2.md.prettier-snap @@ -0,0 +1,4 @@ +--- +--- + +Content diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty.md new file mode 100644 index 000000000000..a845151cc840 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty.md.prettier-snap new file mode 100644 index 000000000000..a845151cc840 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/empty.md.prettier-snap @@ -0,0 +1,2 @@ +--- +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple-2.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple-2.md new file mode 100644 index 000000000000..c33d4d73b3f4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple-2.md @@ -0,0 +1,5 @@ +--- +hello: world +--- + +Content diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple-2.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple-2.md.prettier-snap new file mode 100644 index 000000000000..c33d4d73b3f4 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple-2.md.prettier-snap @@ -0,0 +1,5 @@ +--- +hello: world +--- + +Content diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple.md new file mode 100644 index 000000000000..5af4ef4af83c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple.md @@ -0,0 +1,3 @@ +--- +hello: world +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple.md.prettier-snap new file mode 100644 index 000000000000..5af4ef4af83c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/simple.md.prettier-snap @@ -0,0 +1,3 @@ +--- +hello: world +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/trailing-spaces.md b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/trailing-spaces.md new file mode 100644 index 000000000000..447c327266d5 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/trailing-spaces.md @@ -0,0 +1,7 @@ +--- + v spaces +--- + +This paragraph should be considered part of the _markdown_ instead of *yaml*. + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/trailing-spaces.md.prettier-snap b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/trailing-spaces.md.prettier-snap new file mode 100644 index 000000000000..293d7403cd7c --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/markdown/yaml/trailing-spaces.md.prettier-snap @@ -0,0 +1,7 @@ +--- + v spaces +--- + +This paragraph should be considered part of the _markdown_ instead of _yaml_. + +--- diff --git a/crates/biome_markdown_formatter/tests/specs/prettier/prepare_tests.cjs b/crates/biome_markdown_formatter/tests/specs/prettier/prepare_tests.cjs new file mode 100644 index 000000000000..49a2b62c9f62 --- /dev/null +++ b/crates/biome_markdown_formatter/tests/specs/prettier/prepare_tests.cjs @@ -0,0 +1,14 @@ +const { + extractPrettierTests, +} = require("../../../../biome_formatter_test/src/prettier/prepare_tests"); + +async function main() { + await extractPrettierTests("markdown", { + parser: "markdown", + }); +} + +main().catch((err) => { + console.error(err); + process.exit(1); +});