Sergio Benitez and wxiaoguang
ab9bcd6a79
fix(markdown): parse escaped alerts by default ( #39633 )
...
Previously, recognition of escaped alert markers such as `\[!NOTE\]`
accidentally depended on enabling the optional `inline-parentheses` math
setting, resulting in such escaped alerts not rendering properly.
Goldmark splits the escaped marker differently based on the setting
being enabled or disabled, and only one form was handled. This commit
handles both forms.
For example, in a README or issue:
```
> \[!NOTE\]
> text
```
Before this commit, we'd get an ordinary blockquote displaying literal
`[!NOTE]` followed by `text`. With this commit, we get the styled
admonition.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2026-10-08 13:47:17 +00:00
..
2026-10-05 10:29:49 +00:00
2026-10-05 10:11:50 +00:00
2026-09-29 14:43:36 +02:00
2026-08-24 18:26:10 +00:00
2026-05-26 15:49:31 -07:00
2026-08-27 15:31:20 +00:00
2026-10-02 18:16:34 +02:00
2026-09-30 16:37:30 +00:00
2026-10-04 23:50:46 +00:00
2026-03-31 17:22:18 +00:00
2026-10-06 08:22:36 +00:00
2026-07-24 02:05:38 +00:00
2026-05-26 15:49:31 -07:00
2026-10-06 08:22:36 +00:00
2026-10-06 14:36:06 +08:00
2026-09-24 20:23:15 +00:00
2026-07-15 17:30:01 +00:00
2026-06-08 18:18:58 +00:00
2026-10-06 14:39:36 +00:00
2026-08-09 10:25:06 +00:00
2026-08-09 10:25:06 +00:00
2026-08-29 19:54:07 +00:00
2026-10-01 10:01:45 +00:00
2026-05-26 15:49:31 -07:00
2026-08-06 18:07:36 +08:00
2026-09-14 22:15:21 +02:00
2026-10-04 13:13:24 +00:00
2026-09-26 07:42:36 +00:00
2026-10-02 22:21:41 +08:00
2026-09-24 07:57:42 +00:00
2026-08-19 14:15:42 +08:00
2026-10-01 07:50:47 +00:00
2026-05-29 01:12:11 +00:00
2026-10-03 10:04:24 +00:00
2026-09-16 20:41:57 +02:00
2026-09-25 06:22:04 -07:00
2026-10-08 13:47:17 +00:00
2026-07-21 13:41:54 +00:00
2026-05-26 15:49:31 -07:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2026-05-29 01:12:11 +00:00
2026-05-26 15:49:31 -07:00
2026-10-01 07:50:47 +00:00
2026-06-03 17:40:38 +00:00
2026-07-17 22:28:59 +08:00
2026-10-08 00:33:55 +08:00
2026-08-29 19:54:07 +00:00
2026-09-29 14:43:36 +02:00
2026-05-26 15:49:31 -07:00
2026-09-24 20:23:15 +00:00
2026-08-22 01:30:41 +00:00
2026-05-26 15:49:31 -07:00
2026-10-04 14:51:46 +02:00
2026-09-14 14:59:18 +00:00
2026-10-06 14:39:36 +00:00
2026-08-26 19:32:44 +00:00
2026-10-02 21:08:14 +02:00
2026-10-08 08:52:24 +00:00
2026-06-14 18:26:22 +00:00
2026-10-05 01:45:50 -07:00
2026-10-06 07:45:31 +00:00
2026-10-02 15:37:41 +02:00
2026-08-09 10:25:06 +00:00
2026-05-26 15:49:31 -07:00
2026-07-23 14:31:29 +00:00
2026-09-25 03:08:15 +00:00
2026-09-23 14:34:19 +00:00
2026-05-26 15:49:31 -07:00
2026-09-22 22:49:36 +08:00
2026-08-19 12:50:06 +00:00
2026-08-09 10:25:06 +00:00
2026-03-26 00:37:48 +08:00
2026-05-26 15:49:31 -07:00
2026-07-12 17:14:09 +00:00
2026-10-06 08:22:36 +00:00
2026-10-06 08:22:36 +00:00
2026-10-08 00:33:55 +08:00
2026-10-05 10:11:50 +00:00
2026-06-04 13:38:56 +00:00