Value statement
As a Wikipedia Preview partner
I want to know what Wikipedia Preview is trying to do
So I can figure out why it's not working
Request
Introduce a debug boolean option to the init() function. When set to true or something truthy, the component will output all relevant information to the js console
- Which content section it is trying to find preview targets in
- How it is trying to find preview targets (selector vs hyperlinks)
- For each preview targets found
- text
- title
- lang
- Anything else that looks relevant for debugging purposes
Update the documentation in the README accordingly