A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/838 below:

Syntactic support for Alerts · Issue #838 · jrblevin/markdown-mode · GitHub

Enhancement: I would like gfm-mode to support GFM Alerts. I would really like this to work for fill-paragraph, but it would be nice if syntax highlighting was also supported.

Expected Behavior

In gfm-mode, I expect that fill-paragraph does not flow text to invalidate GFM Alerts:

If I run fill-paragraph in a alert block, it should preserve the alert block on the first line:

> [!TIP]
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

To

> [!TIP]
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
> incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
> exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
> dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
> pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
> deserunt mollit anim id est laborum.
Actual Behavior

Currently, it goes from:

State 1

> [!TIP]
> This is a tip.

To this:

State 2

The rendered markdown goes from

BEGIN_SRC

END_SRC

to

BEGIN_SRC

[!TIP] This is a tip.

END_SRC

Steps to Reproduce

Run fill-paragraph on a text block that begins with > [!NOTE]\n> ....

Backtrace

NA: This is a feature request, not a bug.

Software Versions

I'd be willing to take a crack at resolving this if you would take the change.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4