openresty / opm

OpenResty Package Manager
https://opm.openresty.org/
460 stars 75 forks source link

Markdown parsing mistakes #95

Open LoganDark opened 2 years ago

LoganDark commented 2 years ago

The URL portion of links [text](url) should trim all leading and trailing whitespace from within the parenthesis, including newlines. GitHub parses it this way, but the OPM website does not.

I am referring to wrapping long URLs like this:

Some long line of text, where the link may occur [in the middle](
https://example.com/some-long-url-that-should-be-wrapped)

I use that often in GitHub READMEs.

Additionally, bold inline code:

**`something`**

is not parsed correctly, the ending ** is ignored and it creates a so-called "POD error" Unterminated B<...> sequence.

zhuizhuhaomeng commented 2 years ago

@xlibor would you have a look at this when you have time?