Topic on Extension talk:StructuredDiscussions

Hook to process StructuredDiscussions text before display

2
Summary by Spas.Z.Spasov

It doesn't look like such a hook exists. It wouldn't be that easy to add, either, because SD content can be stored as either wikitext or HTML, and it's stored per-comment rather than as one page.

Spas.Z.Spasov (talkcontribs)

Hello,

I'm working on a small extension that uses $wgHooks['ParserAfterTidy'][] in order to hyphenate the text. The extension works great, despite I'm having lot of work to do on it.

Today I noticed the StructuredDiscussions pages are not processed and there are no hyphens (­), so my question is:

Whether there is a suitable Hook where I can process the content of the StructuredDiscussions pages before they are displayed?
Roan Kattouw (WMF) (talkcontribs)

It doesn't look like such a hook exists, sorry. It wouldn't be that easy to add, either, because SD content can be stored as either wikitext or HTML, and it's stored per-comment rather than as one page.