WordPress / press-this

Press This is a little tool that lets you grab bits of the web and create new posts with ease. It will even allow you to choose from images or videos included on the page and use them in your post. Use Press This as a quick and lightweight way to highlight another page on the web.
49 stars 22 forks source link

Some Wikipedia links aren't parsed correctly #20

Open jpluimers opened 7 years ago

jpluimers commented 7 years ago

Parsing either these URLs gives an empty post:

I've seen this happen with other Wikipedia links as well, but not enough of them to assume all of them fail.

Will update this issue if I recognise a pattern in the failing links.

dshanske commented 6 years ago

They don't have any of the markup needed to be interpreted. You can, in theory, teach a parser to identify a mediawiki site and deal with it's way of doing things which might be worth it.

jpluimers commented 6 years ago

I remember the old bookmarklet parsing many of these correctly from a UX perspective.

If the v8 bookmarklet didn't work, then the v4 bookmarklet usually worked fine, but I cannot test with those any more as that functionality got broken.

Related to https://github.com/WordPress/press-this/issues/11