In Wiki improvement – Split content into multiple sections?
Stephen notes:
Here is a possible way with a variation on develop a discourse plugin to extend the wiki functionality
but instead of a plugin it might be doable with a theme since a them is just JavaScript and CSS.
The editor for Wikimedia is MIT licensed and as noted in the Wikipedia article is written in JavaScript, Node.js, PHP
Just thinking out loud but would it be possible to use a theme like DiscoTOC or similar to add the [edit] at the end of each section which when clicked takes the section, passes it off to the Wikimedia editor and when the changes are done updates Discourse post. Then Discourse would be able to side step the whole issue of having to create a Wiki editor yet get the pizzazz and marketability of having better wiki pages.
Its a good thing Discourse doesn’t have down votes, I would never offer this up as an answer at StackOverflow.