* Handle bad values in x-forwarded-host
If a bad value is provide by this header, we simply ignore it and
fallback to the host provided by the host header (if there is one).
* Add changeset
* Update packages/astro/src/core/app/node.ts
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* chore: add tests for HEAD requests to endpoints
* Fix test
* chore: run tests on ssr fixture
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
* feat: add new method `insertPageRoute` to container
* chore: add back the correct use
* Update .changeset/ninety-cups-decide.md
Co-authored-by: Matt Kane <m@mk.gg>
---------
Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
* Fix/render to string slots (#1)
* add force HTMLString with local tests
* remove local test & logs
* remove test counter in basic exemple
* re-add test & create SlotString instead of HTMLString
* add test of a nested rendered component inside renderToString slots function
* add changeset on astro package
* Apply suggestions from code review
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: ematipico <602478+ematipico@users.noreply.github.com>
* feat: experimental flag from compiler
* better changelog
* apply suggestion
* add space
* Apply suggestions from code review
Co-authored-by: Matt Kane <m@mk.gg>
* Apply suggestions from code review
Co-authored-by: Matt Kane <m@mk.gg>
* more docs
* Update .changeset/cold-rats-swim.md
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
* Update .changeset/cold-rats-swim.md
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
---------
Co-authored-by: Matt Kane <m@mk.gg>
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: ascorbic <213306+ascorbic@users.noreply.github.com>
Co-authored-by: sarah11918 <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: florian-lefebvre <69633530+florian-lefebvre@users.noreply.github.com>
* Add `experimental.headingIdCompat` option schema & types
* Markdown and MDX support
* Markdoc support
* Add changeset
* Fix missing argument in Markdoc integration
* Improve JSDoc comment
Co-authored-by: Matt Kane <m@mk.gg>
* Refactor to avoid global context object in Markdoc
* Minor changeset tweak
* Make `rehypeHeadingIds()` argument optional for backwards compatibility
* Add doc comment to `rehypeHeadingIds()`
* Document rehype plugin usage in changeset
---------
Co-authored-by: Matt Kane <m@mk.gg>
* demonstrative implementation of excludeLangs
* add tests
* add changset
* clean up exclude languages into a const
* update changeset to include astro minor
* update jsdoc
* first cut in moving the config into markdown settings
* format code
* update test
* update changset
* remove old incorrect doc change
* make test stronger yet simplifying it
* refactor tests
* refactor logic for readability
* add syntax highlight defaults
* improve changset doc
* add more documentation
* add more defaults to each part of schema
* attempt to fix js doc parsing
* attempt to fix test
* Extremely draft syntax of what docs should look like!
* Update .changeset/large-dolphins-roll.md
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
* one pass on the documentation
* remove unused import
* gentle change
* use different approach
---------
Co-authored-by: Sarah Rainsberger <5098874+sarah11918@users.noreply.github.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* fix `image.domains` and `image.remotePatterns` default values
* deduplicate `i18n` type
* remove the `strategy` key in `i18n.routing`
* merge `i18n.routing.manual` docs into `i18n.routing`
* add missing `@docs` tag to `i18n.domains`
* add changeset
A formatter introduced newlines inside the anchor tags on the blog example's home `index.astro` page, causing the link to include a trailing space. Not the worst thing, just looks a little unpolished compared to everything else I've experienced getting to know Astro :)
I've put the anchor tags on their own lines to avoid this issue, _and_ prevent future formatters from re-introducing the issue (tested with Astro extension's formatter, at least). Ran the example locally (`cd examples/blog && npm run dev`) and it fixes the issue.
Co-authored-by: Matt Kane <m@mk.gg>