ProfessionalWiki / ExternalContent

MediaWiki extension that allows embedding external content
https://professional.wiki/en/news/external-content
GNU General Public License v2.0
6 stars 4 forks source link

Support code embedding #30

Closed JeroenDeDauw closed 9 months ago

JeroenDeDauw commented 10 months ago

AC

JeroenDeDauw commented 10 months ago

The plugin system for different renders is already in place

image

malberts commented 10 months ago

Syntax highlighting can possibly be done client side using something like:

That way we can avoid the SyntaxHighlight extension which depends on a Python library and which normally expects to be used with the code in the wikitext.

JeroenDeDauw commented 10 months ago

Here is a diagram I created before writing the extension. It's likely somewhat out of date but still conveys the high-level structure: image

For this task you presumably need a new ContentRenderer implementation