-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for notes in GitHub syntax #188
Comments
👍 Probably makes sense to support GitHub's syntax, but they support different variants in different places — and no one syntax works everywhere — even on their own platform. 2022 beta: blockquote syntax with bold labelsOn May 10, 2022, a blockquote-based syntax was initially proposed in
> **Note**
> This is a note
> **Warning**
> This is a warning This syntax is still supported, and rendered in README files with icons and special admonition styling like the newer 2023 format shown in the issue description above:
🎗️ This initial syntax has the advantage that it degrades gracefully to standard blockquote rendering in wikis, where the bold label is preserved (just without the icon & color). In addition to the multiline format, this syntax can be compressed to a single line as follows: > **Note:** This is a note.
This format is now deprecated per https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts:
2023 Alert syntaxAs of July 21, 2023, the bold labels from the initial proposal were replaced with a new > [!NOTE]
> Highlights information that users should take into account, even when skimming.
> [!IMPORTANT]
> Crucial information necessary for users to succeed.
> [!WARNING]
> Critical content demanding immediate user attention due to potential risks. Warning This new syntax does not degrade as gracefully in wikis, where the labels appear verbatim as DocusaurusIn addition to the GitHub format(s), we might want to consider the remark-admonitions syntax used by Docusaurus (and several other tools), which supports several DITA-compatible types. https://docusaurus.io/docs/markdown-features/admonitions
:::note
Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
:::
:::tip
Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
:::
:::info
Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
:::
:::caution
Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
:::
:::danger
Some **content** with _Markdown_ `syntax`. Check [this `api`](#).
::: In this syntax, custom titles can be specified after the type label: :::note Your Title |
If support were added for additional admonition formats in Markdown input, we'd need to consider how to configure which format should be generated for DITA |
Note
Highlights information that users should take into account, even when skimming.
Important
Crucial information necessary for users to succeed.
Warning
Critical content demanding immediate user attention due to potential risks.
Related links
The text was updated successfully, but these errors were encountered: