WikiEducationFoundation / WikiEduDashboard

Wiki Education Foundation's Wikipedia course dashboard system
https://dashboard.wikiedu.org
MIT License
388 stars 626 forks source link

ArticleViewer hightlighted html doesn't handle <mapframe> element properly #5135

Open ragesoss opened 2 years ago

ragesoss commented 2 years ago

What is happening?

When this article loads the the highlighted text, it shows the <mapframe> element as text, while that element doesn't show up in the normal rendered version.

https://dashboard.wikiedu.org/courses/IUPUI/Historic_Site_Interpretation_(Spring_2022)/articles/edited?showArticle=247310123

Additional context

This is likely a bug with the WikiWho algorithm, related to the parser not knowing how to handle the mapframe element. It may require an upstream fix.

cyrillefr commented 1 year ago

I have looked a bit for this issue. I have installed the Whowatch plugin to visualize last changes on Wikipedia. And I see exactly the same output for the same page on Wikipedia. The extension https://www.mediawiki.org/wiki/Extension:Kartographer has to be installed on the server for the mapframe tag to be processed.

MDCODE247 commented 1 week ago

Working on this right now