Percent-encoded URLs in Markdown fields are incorrectly converted. #79

Open
opened 2026-09-23 15:48:02 +00:00 by scossu · 0 comments
Owner

A markdown text value such as

[link](https://example.org/item%20title)

gets converted to

<a href="https://example.org/item%2520title">link</a>

Thus, the percent sign is double-encoded.

This is a Discount bug that may or may not be addressed soon, so a workaround (post-processing) may be needed.

A markdown text value such as ``` [link](https://example.org/item%20title) ``` gets converted to ``` <a href="https://example.org/item%2520title">link</a> ``` Thus, the percent sign is double-encoded. This is a [Discount bug](https://github.com/asb/lua-discount/issues/3) that may or may not be addressed soon, so a workaround (post-processing) may be needed.
scossu added this to the v1.0.0 milestone 2026-09-23 15:48:02 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ktx/pocket_archive#79
No description provided.