Skip to content

HR preceeded by ***word*** doesn't render as HR #897

Closed
@kutetapolu

Description

@kutetapolu

Input:

***test***
***

Output (second line will be rendered as a literal ***):

<p><strong><em>test</em></strong>
***</p>

Expected output according to Markdown.pl:

<p><strong><em>test</em></strong>
</p>
<hr />

The same problem occurs with --- and ___ as HR.

I think it can be fixed by changing RE in HRProcessor:

497c497
<     RE = r'^[ ]{0,3}((-+[ ]{0,2}){3,}|(_+[ ]{0,2}){3,}|(\*+[ ]{0,2}){3,})[ ]*'
---
>     RE = r'^[ ]{0,3}((-+[ ]{0,2}){3,}|(_+[ ]{0,2}){3,}|(\*+[ ]{0,2}){3,})[ ]*$'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report.confirmedConfirmed bug report or approved feature request.coreRelated to the core parser code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions