Looking at this a bit more, I added a debug statement in the CargoStore Class after breaking up the parameters passed in and returned $parts…
Already here I could see that the strip markers are in the text instead of the <syntaxhighlight> tags and what’s inside.
I saw something about a $parser->unstrip() function - would that be the right direction to look in if I need the <syntaxhghlight> saved unevaluated into the cargo db?
From: Markus Heckmann
Sent: May 27, 2017 10:50 AM
To: Yaron Koren <***@wikiworks.com>
Subject: RE: [Semediawiki-user] saving tags in cargo table
I had it first set to Wikitext and then thought that I might have to change it to Text. So this might be a bug.
Any hints where I could look to fix it? I’m not a php expert but can find my way around…
From: ***@gmail.com<mailto:***@gmail.com> [mailto:***@gmail.com] On Behalf Of Yaron Koren
Sent: May 26, 2017 19:39
To: Markus Heckmann <***@derivative.ca<mailto:***@derivative.ca>>
Subject: Re: [Semediawiki-user] saving tags in cargo table
If that field is not of type "Wikitext", I would try changing it to "Wikitext" - hopefully that will fix the problem. If that doesn't work, it may be a bug.
On Fri, May 26, 2017 at 5:06 PM, Markus Heckmann <***@derivative.ca<mailto:***@derivative.ca>> wrote:
I got stuck again with a new issue:
For one of my templates I require to save text which can include tags that point to extensions like <syntaxhighlight>. Unfortunately, what is saved in the table is a stripmarker from syntaxhighlight - something like this: '"`UNIQ--syntaxhighlight-0000000B-QINU`"'
I tried getting around this by using a lua script to replace the tag before passing it on to another template where I'm saving it to a table but it seems the syntaxhighlight is evaluated too early for me to interject?
Is there a way to save strings that contain these kinds of tags in the cargo db?
Thank you very much
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Semediawiki-user mailing list
WikiWorks · MediaWiki Consulting · http://wikiworks.com