You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For inline links, it simply treats dest_url as the href. But for all other kinds of links, it will invoke extract_raw_uri_from_plaintext which uses some kind of heuristics to detect URLs. So anything that doesn't look like a URL in [label]: foo_bar_baz.md are ignored.
The text was updated successfully, but these errors were encountered:
Test case:
Save this as
~/junk/lychee/baz.md
and process it withlychee baz.md --dump -vv
, and it prints:It successfully extracts the link to
target1.md
and resolved it as a relative URL starting withfile:///...
.But link2 to link4 failed to be extracted. Link5 points to a full URL instead of a filename, and it is extracted, too.
I think the problem is in the handling of links in the markdown parser.
For inline links, it simply treats
dest_url
as the href. But for all other kinds of links, it will invokeextract_raw_uri_from_plaintext
which uses some kind of heuristics to detect URLs. So anything that doesn't look like a URL in[label]: foo_bar_baz.md
are ignored.The text was updated successfully, but these errors were encountered: