question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Link-targets are linkified but shouldn't

See original GitHub issue

Problem 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:

  1. In a docstring, add link a valid identifier (e.g. mymodule) is part of the target, e.g. [my link](https://mymodule.org).
  2. 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jstriebelcommented, Feb 8, 2022

@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 🙏

0reactions
mhilscommented, Feb 3, 2022

After unzipping mymodule.zip and running pdoc mymodule, I get a page that looks correct:

$ pdoc --version
pdoc: 9.0.1 (+7, commit 4688086)
Python: 3.10.0
Platform: Windows-10-10.0.19044-SP0
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found