NUKnightLab / TimelineJS3

TimelineJS v3: A Storytelling Timeline built in JavaScript. http://timeline.knightlab.com
Mozilla Public License 2.0
2.99k stars 621 forks source link

Wikipedia internal links should create extract text from relevant section #840

Open rezeau opened 1 year ago

rezeau commented 1 year ago

When inserting a link to a Wikipedia article in a TimelineJS3, a short extract from the beginning of that article/page is created and displayed. And a clickable link is made available, taking the user to that same Wikipedia article. Example: https://en.wikipedia.org/wiki/Carthage However, if one inserts a link to a section of that article, e.g. https://en.wikipedia.org/wiki/Carthage#Archaeological_site, in the Timeline JS3 slide, the Wikipedia link is correctly created to that section, but the extract is still extracted from the beginning of the page/article. It would be a nice improvement if an extract pointing to a section were created from that section.