Project

General

Profile

Actions

Feature #42603

open

Enable commonmark alert extension

Added by Marius BĂLTEANU 10 days ago. Updated 1 day ago.

Status:
Resolved
Priority:
Normal
Category:
Text formatting
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Files

Actions #1

Updated by Mizuki ISHIKAWA 3 days ago

I am attaching a patch that enables the alerts extension in commonMark.

Input:

> [!TIP]
> Something of tip

> [!note]
> Something of note

> [!warning]
> Something of warning
> |A |B |
> |--|--|
> |  |  |

> [!important]
> Something of warning

> [!caution]
> Something of warning

> [!other]
> This should not become an alert.

It will be displayed as follows by the common_mark gem:

Feedback on the appearance of the alerts, such as their colors, is welcome.

Additional Notes:
  • This patch does not support PDF export functionality.
  • Alert types such as Note and Important are not localized and will always be displayed in English regardless of the user's language.
Actions #2

Updated by Marius BĂLTEANU 1 day ago

  • Category set to Text formatting
  • Status changed from New to Resolved
  • Assignee set to Marius BĂLTEANU
  • Target version changed from Candidate for next major release to 6.1.0
  • Resolution set to Fixed

Thanks for taking care of this!

Mizuki ISHIKAWA wrote in #note-1:

I am attaching a patch that enables the alerts extension in commonMark.

Input:
[...]

It will be displayed as follows by the common_mark gem:
[...]

Feedback on the appearance of the alerts, such as their colors, is welcome.

From my point of view, the colors are ok.

Additional Notes:
  • This patch does not support PDF export functionality.

I think this we should fix it, I will take a look in the following days.

  • Alert types such as Note and Important are not localized and will always be displayed in English regardless of the user's language.

I'm not sure if it's really needed.

Beside these, we need to update the wiki pages help.

Actions

Also available in: Atom PDF