Repository navigation
Syntax :::important doesn't supported on website #5062
Description
Activity
Hey @retyui, we should just use the existing
:::infoinstead since looking at your PR it does not differ visually from that admonition.Alternatively, you can use
:::tipone, just like we do for things only in canary, i.e.:Oh, you have in mind not the fact that
importantdoes not work, but that it's using old syntax, thus does not render correctly, I see now. Seen the PR changes before force push and was a bit confused.- linked a pull request that will close this issueFix `important` admonition syntax #5063
on Apr 27, 2026 Fixed in linked above PR, thanks! 🙏
@Simek
importantis never mentioned in the docs
so I thought this was the root cause of the issuebut then I found out title should be wrapper in
[]Reacted by Bartosz Kaszubowski@retyui Yeah, it's the new strict MDX validation change in Docusaurs 3.10:
Must have missed that particular case when I was migrating, thanks for catching that!
@Simek maybe we can replace
importantwithinfoto avoid misunderstanding in future ?Reacted by Bartosz Kaszubowski@retyui Yeah, we could. IIRC support for it was added during migration to v2 for legacy purpose, since prior that we had our own admonitions components which did not map 1:1 with newly added ones in Docusaurs.
Since we do not alter their appearance it might be fine to replace them, alternative approach would to be switch the colors to unique ones, i.e. violet, to match GitHub notes (also adding an unique icon), but I'm not fully sure which approach would be better.
Important
Test 123
Would you be interested in working on those changes?
@Simek I can add smth. like that:
.alert--important { --ifm-alert-background-color: #8250df33; --ifm-alert-background-color-highlight: #8250df; --ifm-alert-foreground-color: #281846; --ifm-alert-border-color: #8250df; }

@retyui Let's reduce the contrast between background and border so it matches other admonitions style:
background-color: #8250df2a; border-color: #e0cfff (light) / #442f6b (dark)Something like above might work. Also remember to test in dark theme, and with links inside (custom decoration color).
Description
The next syntax doesn't work on website
see: https://reactnative.dev/docs/next/virtualview
Documentation version
all