Astro Docs
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Original source: [astro/changelog/3.0.0-beta0](https://github.com/withastro/astro/blob/refs/heads/next/packages/astro/CHANGELOG.md#300-beta0) For cross-checking against: [**List of Docs PRs for v3.0 additions/changes**](https://github.com/withastro/docs/pulls?q=is%3Aopen+is%3Apr+label%3Av3.0) **Breaking Changes Issue:** https://github.com/withastro/docs/issues/3756 ~~Old v2 upgrade guide model/format: https://docs.astro.build/en/guides/upgrade-to/v2/~~ Draft v3 guide: https://deploy-preview-4166--astro-docs-2.netlify.app/en/guides/upgrade-to/v3/ ## Integrations [**Remove image integration Docs Issue**](https://github.com/withastro/docs/issues/3756#issuecomment-1662649399) / [Included in DOCS PR 3739 image guide](https://github.com/withastro/docs/pull/3739) ## Major Changes (Breaking Changes) ~~1. [**PR 7780**](https://github.com/withastro/astro/pull/7780) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1649838063) Thanks @Princesseuh! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.~~ ~~2. [**PR7845**](https://github.com/withastro/astro/pull/7845) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1654216966) Thanks @Princesseuh! - Removed automatic flattening of getStaticPaths result. .flatMap and .flat should now be used to ensure that you're returning a flat array.~~ ~~3. [**PR 7839**](https://github.com/withastro/astro/pull/7839) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1669248285) Thanks @ematipico! - The build.split and build.excludeMiddleware configuration options are deprecated and have been replaced by options in the adapter config~~. ~~4. [**PR 7908**](https://github.com/withastro/astro/pull/7908) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1660190933) / [Included in DOCS PR 3739 image guide](https://github.com/withastro/docs/pull/3739) Thanks @Princesseuh! - Sharp is now the default image service used for astro:assets. If you would prefer to still use Squoosh, you can update your config with the following:~~ ~~5. [**PR 7903**](https://github.com/withastro/astro/pull/7903) / [**NEEDS DOCS ISSUE IF USER FACING see comments below**] / [Included in DOCS PR 3739 image guide](https://github.com/withastro/docs/pull/3739) Thanks @Princesseuh! - When using an adapter that supports neither Squoosh or Sharp, Astro will now automatically use an image service that does not support processing, but still provides the other benefits of astro:assets such as enforcing alt, no CLS etc to users~~ ~~6. [**PR 7822**](https://github.com/withastro/astro/pull/7822) / [**NEEDS DOCS ISSUE**] Thanks @ematipico! - Removed support for old syntax of the API routes.~~ ~~7. [**PR 7872**](https://github.com/withastro/astro/pull/7872) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1658418506) Thanks @bluwy! - Remove MDX plugin re-ordering hack - How user facing is this? Will there be any difference in usage for user? - Is there anything that the user can do besides updating integration to latest~~? ~~8. [**PR 7840**](https://github.com/withastro/astro/pull/7840) / [**NEED DOCS ISSUE IF USER FACING**] Thanks @Princesseuh! - Reduced the amount of polyfills provided by Astro. Astro will no longer provide (no-op) polyfills for several web apis such as HTMLElement, Image or Document. If you need access to those APIs on the server, we recommend using more proper polyfills available on npm.~~ ~~9. [**PR 7785**](https://github.com/withastro/astro/pull/7785) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1669344282) Thanks @Princesseuh! - Update tsconfig.json presets with moduleResolution: 'bundler' and other new options from TypeScript 5.0. Astro now assumes that you use TypeScript 5.0 (March 2023), or that your editor includes it, ex: VS Code 1.77~~ ~~10. [**PR 7892**](https://github.com/withastro/astro/pull/7892) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1660122146) Thanks @Princesseuh! - The astro check command now requires an external package @astrojs/check and an install of typescript in your project. This was done in order to make the main astro package smaller and give more flexibility to users in regard to the version of TypeScript they use.~~ ~~11. [**PR 7783**](https://github.com/withastro/astro/pull/7783) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1651175248) Thanks @ematipico! - Lowercase names for endpoint functions are now deprecated~~. ~~12. [**PR 7888**](https://github.com/withastro/astro/pull/7888) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1659089039) Thanks @matthewp! - Astro.cookies.get(key) returns undefined if cookie doesn't exist~~ ~~13. [**PR 7918**](https://github.com/withastro/astro/pull/7918) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1664238972) Thanks @ematipico! - The property compressHTML is now true by default. Setting this value to true is no longer required.~~ ~~14. [**PR 7874**](https://github.com/withastro/astro/pull/7874) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1664749752) / [**DOCS PR 3977**](https://github.com/withastro/docs/pull/3977) Thanks @ematipico! - Astro's default port when running the dev or preview server is now 4321.~~ ~~15. [**PR 7904**](https://github.com/withastro/astro/pull/7904) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1661883775) Thanks @bluwy! - Remove MDX special components export handling~~ ## astro@3.0.0-beta.1 ## Major Changes ~~1. [**PR 7931**](https://github.com/withastro/astro/pull/7931) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1665317818) Thanks @bluwy! - Remove support for Astro.__renderMarkdown which is used by @astrojs/markdown-component.~~ ~~The <Markdown /> component was deprecated in Astro v1 and is completely removed in v3. This integration must now be removed from your project. As an alternative, you can use community packages that provide a similar component like natemoo-re/astro-remote instead.~~ ~~2. [**PR #8019**](https://github.com/withastro/astro/pull/8019) / [**DOCS ISSUE NEEDED**] Thanks @bluwy! - Remove backwards-compatible kebab-case transform for camelCase CSS variable names passed to the style attribute. If you were relying on the kebab-case transform in your styles, make sure to use the camelCase version to prevent missing styles. For example:~~ ~~3. [**PR #7893**](https://github.com/withastro/astro/pull/7893) [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1670834703) Thanks @ematipico! - Implements a new scope style strategy called "attribute". When enabled, styles are applied using data-* attributes.~~ ~~4. [**PR #7924**](https://github.com/withastro/astro/pull/7924) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1672025268) Thanks @matthewp! - Astro's JSX handling has been refactored with better support for each framework.~~ ~~5. [**PR 7878**](https://github.com/withastro/astro/pull/7878) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1669109574) Thanks @bluwy! - Changed import.meta.env.BASE_URL default trailingSlash behaviour~~ ~~6. [**PR 7903**](https://github.com/withastro/astro/pull/7903) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1669669132) - When using an adapter that supports neither Squoosh or Sharp, Astro will now automatically use an image service that does not support processing, but still provides the other benefits of `astro:assets` such as enforcing `alt`, no CLS etc to users~~ ~~Added simple asset support for Cloudflare, Deno, Vercel Edge and Netlify Edge In Astro v2.x, using the assets feature in Cloudflare, Deno, Vercel Edge and Netlify Edge errors in runtime as the environments do not support Astro's builtin Squoosh and Sharp image optimization.Astro v3.0 allows these environments to work without errors, but does not perform any image transformation and processing. However, you would still get benefits, e.g. no Cumulative Layout Shift (CLS), enforced alt attribute, etc.~~ ## astro@3.0.0-beta.2 No major changes ## astro@3.0.0-beta.3 ## Major Changes . [**PR 8019**](https://github.com/withastro/astro/pull/8019) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1679069656) - bluwy changed camel case . [**PR 8085**](https://github.com/withastro/astro/pull/8085) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1679077708) - bluwy changed entry point . [**PR 8118**](https://github.com/withastro/astro/pull/8118) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1684007063) - lilnasy small stylesheets . [**PR 8142**](https://github.com/withastro/astro/pull/8142) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1684441446) - nate classlist /clsx . [**PR 8142**](https://github.com/withastro/astro/pull/8142) / [**DOCS ISSUE**](https://github.com/withastro/docs/issues/3756#issuecomment-1684446268) - nate classlist directive for components ## astro@3.0.0-beta.4 No major changes . [**PR **]() / [**DOCS ISSUE**]

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully