0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-10 22:38:53 -05:00

[docs] fix syntax error, avoid a Markdown table (#9713)

This commit is contained in:
Sarah Rainsberger 2024-01-17 11:56:36 -04:00 committed by GitHub
parent b325fada56
commit 3ff704c0b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1601,7 +1601,7 @@ export interface AstroUserConfig {
* @name experimental.clientPrerender * @name experimental.clientPrerender
* @type {boolean} * @type {boolean}
* @default `false` * @default `false`
* @version: 4.2.0 * @version 4.2.0
* @description * @description
* Enables pre-rendering your prefetched pages on the client in supported browsers. * Enables pre-rendering your prefetched pages on the client in supported browsers.
* *
@ -1642,20 +1642,20 @@ export interface AstroUserConfig {
* *
* Prioritizes redirects and injected routes equally alongside file-based project routes, following the same [route priority order rules](https://docs.astro.build/en/core-concepts/routing/#route-priority-order) for all routes. * Prioritizes redirects and injected routes equally alongside file-based project routes, following the same [route priority order rules](https://docs.astro.build/en/core-concepts/routing/#route-priority-order) for all routes.
* *
* The following table shows which route builds certain page URLs when file-based routes, injected routes, and redirects are combined as shown below: * This allows more control over routing in your project by not automatically prioritizing certain types of routes, and standardizes the route priority ordering for all routes.
*
* The following example shows which route will build certain page URLs when file-based routes, injected routes, and redirects are combined as shown below:
* - File-based route: `/blog/post/[pid]` * - File-based route: `/blog/post/[pid]`
* - File-based route: `/[page]` * - File-based route: `/[page]`
* - Injected route: `/blog/[...slug]` * - Injected route: `/blog/[...slug]`
* - Redirect: `/blog/tags/[tag]` -> `/[tag]` * - Redirect: `/blog/tags/[tag]` -> `/[tag]`
* - Redirect: `/posts` -> `/blog` * - Redirect: `/posts` -> `/blog`
* *
* URLs are handled by the following routes: * With `experimental.globalRoutingPriority` enabled (instead of Astro 4.0 default route priority order):
* *
* | Page | Current Behavior | Global Routing Priority Behavior | * - `/blog/tags/astro` is built by the redirect to `/tags/[tag]` (instead of the injected route `/blog/[...slug]`)
* | ------------------ | -------------------------------- | ----------------------------------- | * - `/blog/post/0` is built by the file-based route `/blog/post/[pid]` (instead of the injected route `/blog/[...slug]`)
* | `/blog/tags/astro` | Injected route `/blog/[...slug]` | Redirect to `/tags/[tag]` | * - `/posts` is built by the redirect to `/blog` (instead of the file-based route `/[page]`)
* | `/blog/post/0` | Injected route `/blog/[...slug]` | File-based route `/blog/post/[pid]` |
* | `/posts` | File-based route `/[page]` | Redirect to `/blog` |
* *
* *
* In the event of route collisions, where two routes of equal route priority attempt to build the same URL, Astro will log a warning identifying the conflicting routes. * In the event of route collisions, where two routes of equal route priority attempt to build the same URL, Astro will log a warning identifying the conflicting routes.