Link-targets are linkified but shouldn't
See original GitHub issueProblem Description
If an identifier is part of a link-target it is re-linked by linkify, breaking the original a-tag. This is similar to #335, but concerns the target instead.
Steps to reproduce the behavior:
- In a docstring, add link a valid identifier (e.g.
mymodule
) is part of the target, e.g.[my link](https://mymodule.org)
. - The result is hmtl similar to
<a href="[https://<a href=](https://%3Ca%20href%3D/)"../../mymodule.html#org">mymodule.org</a>">my_link</a>
.
System Information
pdoc: 9.0.1 Python: 3.7.3 Platform: Linux-4.19.0-18-amd64-x86_64-with-debian-10.11
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
linkify is eager about top level domain URLs #35 - GitHub
It seems that linkify will turn anything that looks like a domain into a URL. There should be a way to turn this...
Read more >Regex should capture links and convert to HTML but not ...
This here should work, sample text provided to test various scenarios: function linkify(text) { // turn standalone www. into a URL: const ...
Read more >Options · Documentation - Linkify - JS.ORG
Specify a function that accepts an intermediate representation of the target link (an object including tag name, attributes, text content). The return value ......
Read more >Don't Use The Target="_Blank" Link Attribute In These Cases
The _blank link attribute tells the browser to open a link within a brand new tab. You can have multiple links that use...
Read more >Using Android Linkify to add inline links to a Xamarin Forms ...
Android's Linkify, ITransformFilter and IMatchFilter can be used to ... Linkify, ITransformFilter and IMatchFilter shouldn't be that hard!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mhils Indeed, this issue is fixed, I messed up installing the correct version first. Sorry for this and the late reply! And thank you very much for your responsiveness and maintaining this great project 🙏
After unzipping mymodule.zip and running
pdoc mymodule
, I get a page that looks correct: