Physikerwelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/255930
Change subject: Get the wikitext representation for a MathObject ...................................................................... Get the wikitext representation for a MathObject Change-Id: I23f2c7f700e87aaa9ce50065a10c45a8b8495261 --- M MathObject.php 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch refs/changes/30/255930/1 diff --git a/MathObject.php b/MathObject.php index e1c1197..26c75b2 100644 --- a/MathObject.php +++ b/MathObject.php @@ -470,4 +470,16 @@ return false; } } + + public function getWikiText() { + $attributes =''; + foreach ( $this->params as $key=>$value ){ + if ( $key ) { + $attributes .= " $key=\"$value\""; + } else { + $attributes .= " $value"; + } + } + return "<math$attributes>{$this->userInputTex}</math>"; + } } -- To view, visit https://gerrit.wikimedia.org/r/255930 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I23f2c7f700e87aaa9ce50065a10c45a8b8495261 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MathSearch Gerrit-Branch: master Gerrit-Owner: Physikerwelt <w...@physikerwelt.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits