Feature Request: GitHub Alerts
Opened this issue · 3 comments
In May 2024 GitHub revised their callout syntax (they call them Alerts).
It would be lovely to gain support for these in QLMarkdown.
(Various 3rd-party Markdown editors now support it including Typora.)
Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
Warning
Critical content demanding immediate user attention due to potential risks.
Caution
Negative potential consequences of an action.
Why only English? They could just put an icon without text.
https://github.com/orgs/community/discussions/16925#discussioncomment-10458963
If this feature is to be added to QLMarkdown, a CSS trick for other languages is required.
People have been expressing a desire for localized versions of these for years (as seen by the many comments on that GitHub issue thread). There's been no movement from GitHub staff to implement any thus far. Perhaps they will in future, but all we have are English alerts for now.
I would certainly understand any hesitancy of implementing the behaviour in QLMarkdown with that considered. I'm only suggesting it so as to closer match QLMarkdown's rendering to GitHub's rendering, as-is.
Perhaps we would be able to meet in the middle, like you say. If QLMarkdown rendered them with the colored line and the icon, it could just omit the text label. That way no localization is necessary, even though it won't explicitly mirror GitHub's rendering.