According to the content guide, one should be able to produce a specific type of message block with something akin to:
> [Inform] informative text
Doing so doesn't lead to any special handling, though, and it looks like the issue is in the regular expression that looks for these special blockquotes. The regex is as follows:
/^<p>\[(Success|Warning|Error|Inform)\]:\s*/I
which expects the blockquoted string to start with the literal string <p>. But of course, it won't have that.
Removing this from the regex restores the functionality where express-markdown-pages converts these specially-formatted blockquotes to message blocks with the expected HTML and CSS.
According to the content guide, one should be able to produce a specific type of message block with something akin to:
> [Inform] informative textDoing so doesn't lead to any special handling, though, and it looks like the issue is in the regular expression that looks for these special blockquotes. The regex is as follows:
/^<p>\[(Success|Warning|Error|Inform)\]:\s*/Iwhich expects the blockquoted string to start with the literal string
<p>. But of course, it won't have that.Removing this from the regex restores the functionality where
express-markdown-pagesconverts these specially-formatted blockquotes to message blocks with the expected HTML and CSS.