Open gerbrent opened 2 years ago
That's an interesting one...🤔
Dug into it, it's an html2text bug with "
in the link title. Minimal reproduction:
$ printf '<a title=""" href="/">foo</a>' | html2text
[foo](/ """)
So @xPMo , can you think of any to fix this besides just stripping out the html encoded version of the quote?
I guess we could convert it to be the html encoded version of the single quote '
(src) instead?
We could also simply.... not use quotes if that's easier.
Could scrape the scrapped data for quoted links and scrape them out of there. Unless that idea is scrap.
I made an issue upstream, and might make a PR too.
Could scrape the scrapped data for quoted links and scrape them out of there. Unless that idea is scrap.
I'd be reticent to hack a post-conversion fix into the scraper. I have an idea that might work but it might cause breakage elsewhere. I don't know how the scraper interacts with git; if we just fix it manually, will it overwrite it?
If not, an exeptions list for the scraper might make it easier to address future one-offs.
See https://jupiterbroadcasting.net/show/linux-action-news/250/
Behaviour
One of the links on this particular episode renders as:
[Bug #1974196 “Installing libudev1 on a new Jammy installation"](https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1974196 “Bug #1974196 “Installing libudev1 on a new Jammy installation”")
Expected
The link should be formatted as the others, namely:
Bug #1974196 "Installing libudev1 on a new Jammy installation"
I blame all the quotes.