Markdown: Cap ordered list mark at 999,999,999 (#19351 by @tats-u)
CommonMark parsers only support ordered list item numbers up to 999,999,999.
With this change, Prettier now caps the ordered list item number at 999,999,999 to ensure that the output is correctly parsed as an ordered list by CommonMark parsers. Numbers larger than 999,999,999 are not parsed as list item numbers and are left unchanged in the output:
<!-- Input -->
999999998. text
999999998. text
999999998. text
999999998. text
1234567890123456789012) text
<!-- Prettier 3.9.4 -->
999999998. text
999999999. text
1000000000. text
1000000001. text
1234567890123456789012) text
<!-- Prettier 3.9.5 -->
999999998. text
999999999. text
999999999. text
999999999. text
1234567890123456789012) text
Markdown: Avoid corrupting empty link with title (#19487 by @andersk)
Do not remove <> from an inline link or image with an empty URL and a title, as this removal would change its interpretation.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps [prettier](https://github.com/prettier/prettier) from 3.9.4 to 3.9.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p>
<blockquote>
<h2>3.9.5</h2>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/3.9.5/CHANGELOG.md#395">Changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p>
<blockquote>
<h1>3.9.5</h1>
<p><a href="https://github.com/prettier/prettier/compare/3.9.4...3.9.5">diff</a></p>
<h4>Markdown: Cap ordered list mark at 999,999,999 (<a href="https://redirect.github.com/prettier/prettier/pull/19351">#19351</a> by <a href="https://github.com/tats-u"><code>@tats-u</code></a>)</h4>
<p>CommonMark parsers only support ordered list item numbers up to 999,999,999.</p>
<p>With this change, Prettier now caps the ordered list item number at 999,999,999 to ensure that the output is correctly parsed as an ordered list by CommonMark parsers. Numbers larger than 999,999,999 are not parsed as list item numbers and are left unchanged in the output:</p>
<!-- raw HTML omitted -->
<pre lang="markdown"><code><!-- Input -->
999999998. text
999999998. text
999999998. text
999999998. text
<p>1234567890123456789012) text</p>
<p><!-- Prettier 3.9.4 -->
999999998. text
999999999. text
1000000000. text
1000000001. text</p>
<p>1234567890123456789012) text</p>
<p><!-- Prettier 3.9.5 -->
999999998. text
999999999. text
999999999. text
999999999. text</p>
<p>1234567890123456789012) text
</code></pre></p>
<h4>Markdown: Avoid corrupting empty link with title (<a href="https://redirect.github.com/prettier/prettier/pull/19487">#19487</a> by <a href="https://github.com/andersk"><code>@andersk</code></a>)</h4>
<p>Do not remove <code><></code> from an inline link or image with an empty URL and a title, as this removal would change its interpretation.</p>
<!-- raw HTML omitted -->
<pre lang="md"><code><!-- Input -->
[link](https://github.com/prettier/prettier/blob/main/<> "title")
<p><!-- Prettier 3.9.4 -->
[link](<a href="https://github.com/prettier/prettier/blob/main/">https://github.com/prettier/prettier/blob/main/</a> "title")</p>
<p><!-- Prettier 3.9.5 -->
</tr></table>
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/prettier/prettier/commit/b6c7d1806807162658fd5694d002b54b778c3756"><code>b6c7d18</code></a> Release 3.9.5</li>
<li><a href="https://github.com/prettier/prettier/commit/cd54ccc7288f2a4585ba5bf96883e2ed3b18e781"><code>cd54ccc</code></a> Avoid corrupting empty Markdown link with title (<a href="https://redirect.github.com/prettier/prettier/issues/19487">#19487</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/2bb67ce8cd326dbaccbdec97e7578985f6009a14"><code>2bb67ce</code></a> Preserving comments' <code>placement</code> property (<a href="https://redirect.github.com/prettier/prettier/issues/19567">#19567</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/91bcac88ec1d784767ebbf5ec4686a5dbf37c3c1"><code>91bcac8</code></a> Add more tests for comment-only object type (<a href="https://redirect.github.com/prettier/prettier/issues/19587">#19587</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/cbee7377a1875686558bfc9416b789d66771d9e7"><code>cbee737</code></a> Remove space in empty object type (<a href="https://redirect.github.com/prettier/prettier/issues/19583">#19583</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/6394c732090efdf7798e0c8dc44c46583b4131c3"><code>6394c73</code></a> Align empty module declaration with TS (<a href="https://redirect.github.com/prettier/prettier/issues/19568">#19568</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/a4e6f7a0264bad45f3c153773111f60a5d406d55"><code>a4e6f7a</code></a> Prevent the addition of space in <code>type()</code> with <code>+</code> (<a href="https://redirect.github.com/prettier/prettier/issues/19516">#19516</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/3d063b57b1a2fdc660341b6e1c719e09997cc72c"><code>3d063b5</code></a> Ignore dangling comments when checking type parameter comments (<a href="https://redirect.github.com/prettier/prettier/issues/19572">#19572</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/908503e9ee02718ef0ec21a023f2c0fd5fb00603"><code>908503e</code></a> Handle dangling comments in <code>SwitchStatement</code> (<a href="https://redirect.github.com/prettier/prettier/issues/19581">#19581</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/943a475c3592149aad6062ad235338da548365ea"><code>943a475</code></a> Angular: Support expression for exhaustive typechecking (<a href="https://redirect.github.com/prettier/prettier/issues/19571">#19571</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/3.9.4...3.9.5">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps prettier from 3.9.4 to 3.9.5.
Release notes
Sourced from prettier's releases.
Changelog
Sourced from prettier's changelog.
... (truncated)
Commits
b6c7d18Release 3.9.5cd54cccAvoid corrupting empty Markdown link with title (#19487)2bb67cePreserving comments'placementproperty (#19567)91bcac8Add more tests for comment-only object type (#19587)cbee737Remove space in empty object type (#19583)6394c73Align empty module declaration with TS (#19568)a4e6f7aPrevent the addition of space intype()with+(#19516)3d063b5Ignore dangling comments when checking type parameter comments (#19572)908503eHandle dangling comments inSwitchStatement(#19581)943a475Angular: Support expression for exhaustive typechecking (#19571)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.