Skip to content

Bug in message block parsing #30

@delfuego

Description

@delfuego

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions