marked-extensions icon indicating copy to clipboard operation
marked-extensions copied to clipboard

Custom title for alert

Open SelfRef opened this issue 8 months ago • 1 comments

  • Extension Name: marked-alert
  • Extension Version: 2.1.2

Use case

Would be nice to have control of alert's title name, like in Obsidian.

Proposal

Obsidian supports Alerts just like GFM does, but extends them further to support custom titles like this:

> [!NOTE] Example
> Description=Remaps some keycodes to other keys

Image

It also allows for one-line alerts:

> [!INFO] Docstring can be read using property `fun.__doc__`

Image

The same syntax is already considered for GFM alerts.

SelfRef avatar Apr 24 '25 22:04 SelfRef

This also works that way on hackmd, would be nice to have it

erw-1 avatar Sep 08 '25 13:09 erw-1