Commit Graph
10 Commits
Author SHA1 Message Date
upstream 87f03af20c Upstream thephpleague/html-to-markdown state of the touched files before aa29149d30 2026-10-03 02:31:49 +02:00
dualfroz 94062cea69 fix: use autolinks for URLs that contain an ampersand
The link text goes through TextConverter, which escapes `&` to `&`,
while the href is the decoded attribute value, so `$href === $text` never
held for a URL with a query string like `?a=1&b=2`. Undo that escaping
before comparing. Only `&amp;` is undone: `<` and `>` cannot appear in an
autolink, so those links keep the inline form.

Fixes #248
2026-10-03 02:27:25 +02:00
upstream a82cc3b9b6 Upstream thephpleague/html-to-markdown state of the touched files before f345fb4bc5 2026-10-03 02:27:25 +02:00
dualfroz 1bb05d0606 fix: separate block elements from the inline content before them
An image or link right before a heading or paragraph ended up on the
same line, e.g. `![](a.png)### A`.

Fixes #259
2026-10-02 16:19:40 +02:00
upstream 6b7a074e8d Upstream thephpleague/html-to-markdown state of the touched files before 7af7830eab 2026-10-02 16:19:40 +02:00
dualfroz 806387f3f6 fix: strip the newline right after the <pre> start tag
Fixes #244
2026-10-02 16:19:40 +02:00
dualfroz f194c36ae3 fix: honor start="0" on ordered lists (#277) 2026-09-07 09:42:24 -04:00
upstream 12911d68c6 Upstream thephpleague/html-to-markdown state of the touched files before 1cce345706 2026-09-07 15:42:24 +02:00
dualfroz 19b1be8421 fix: honor start="0" on ordered lists
The ordered-list numbering used intval() on the "start" attribute inside a
truthiness check, so a valid start="0" was treated as absent and the list
restarted numbering at 1. Detect an explicit numeric start attribute with
is_numeric() instead, so <ol start=\"0\"> renders as 0. 1. ...
2026-09-04 09:09:23 +02:00
upstream e017c9ceda Upstream thephpleague/html-to-markdown state of the touched files before b7d420c301 2026-09-04 09:09:04 +02:00