~tsileo/microblog.pub#117: 
markdown parsing of #tag inside link text

If a link text starts with a #tag the link is not shown:

source:

[#tag marked as link](http://chrichri.ween.de/)

normal text

[link text - no tag](http://chrichri.ween.de/)

parsed on sr.ht:

#tag marked as link

normal text

link text - no tag

example on my site - source copied from microblogpub.db dump using sqlite3:

[...] z.B. das [#Angelman Syndrom](https://angelman.de/) aufmerksam [...]

[...] like the [#angelman syndrom](https://www.angelman.org/) and [...]

Writing this just found the conflict that each #tag is a link in itself. Maybe it would be possible in these cases to attach an external link symbol automatically 🔗 or show a warning or...?

Status
REPORTED
Submitter
~chrichri
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
No labels applied.

~chrichri a month ago

just looked at the html source:

[...] das <a href="https://angelman.de/"></a><a class="mention hashtag" href="https://chrichri.ween.de/t/angelman" rel="tag">#<span>Angelman</span></a> Syndrom [...]

[...] the <a href="https://www.angelman.org/"></a><a class="mention hashtag" href="https://chrichri.ween.de/t/angelman" rel="tag">#<span>angelman</span></a> syndrom [...]

The link is already there, but with an empty link text.

Register here or Log in to comment, or comment via email.