Skip to content

Syntax :::important doesn't supported on website #5062

Description

@retyui

Description

The next syntax doesn't work on website

:::important Text
:::

see: https://reactnative.dev/docs/next/virtualview

Image

Documentation version

all

Activity

  1. Simek commented on Apr 27, 2026

    @Simek
    Collaborator

    Hey @retyui, we should just use the existing :::info instead since looking at your PR it does not differ visually from that admonition.

    Alternatively, you can use :::tip one, just like we do for things only in canary, i.e.:

  2. Simek commented on Apr 27, 2026

    @Simek
    Collaborator

    Oh, you have in mind not the fact that important does 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.

  3. linked a pull request that will close this issueFix `important` admonition syntax #5063on Apr 27, 2026
  4. Simek commented on Apr 27, 2026

    @Simek
    Collaborator

    Fixed in linked above PR, thanks! 🙏

  5. retyui commented on Apr 27, 2026

    @retyui
    ContributorAuthor

    @Simek important is never mentioned in the docs
    so I thought this was the root cause of the issue

    but then I found out title should be wrapper in []

  6. Simek commented on Apr 27, 2026

    @Simek
    Collaborator

    @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!

  7. retyui commented on Apr 27, 2026

    @retyui
    ContributorAuthor

    @Simek maybe we can replace important with info to avoid misunderstanding in future ?

  8. Simek commented on Apr 27, 2026

    @Simek
    Collaborator

    @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?

  9. retyui commented on Apr 27, 2026

    @retyui
    ContributorAuthor

    @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;
    }
    Image
  10. Simek commented on Apr 27, 2026

    @Simek
    Collaborator

    @retyui Let's reduce the contrast between background and border so it matches other admonitions style:

    Image Image
    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).

  11. retyui commented on Apr 27, 2026

    @retyui
    ContributorAuthor

    @Simek here is the PR: #5064

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions