sillsdev / docu-notion

Download Notion pages as markdown and image files, preserving hierarchy and enabling workflow properties. Works with Docusaurus.
MIT License
159 stars 30 forks source link

Docusaurus v3 deprecates :::caution admonition #107

Open andrew-polk opened 5 months ago

andrew-polk commented 5 months ago

See https://docusaurus.io/blog/preparing-your-site-for-docusaurus-v3#admonition-warning.

With v3, you are supposed to use either :::danger or :::warning. :::caution will still show the yellow (caution) admonition, but it is deprecated. But in v2, :::warning produces the red (danger) admonition.

So, we will probably need to introduce a flag indicating if you are targeting v2 or v3. (Of course, we will likely find there are other important factors depending on which you are targeting when we start testing on v3.

This is not urgent since v3 will continue to support :::caution.