A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/Python-Markdown/markdown/issues/897 below:

HR preceeded by ***word*** doesn't render as HR · Issue #897 · Python-Markdown/markdown · GitHub

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,})[ ]*$'

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