Skip to content

Commit 372459c

Browse files
committed
feat: add Extension:WikiMarkdown
1 parent 1e0d6c6 commit 372459c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

mediawiki/config/DockerSettings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,9 @@
533533
#wfLoadExtension( 'GettingStarted' );
534534
#wfLoadExtension( 'Iframe' );
535535
wfLoadExtension( 'Reveal' );
536-
536+
wfLoadExtension( 'WikiMarkdown' );
537+
$wgAllowMarkdownExtra = true; // allows usage of Parsedown Extra
538+
$wgAllowMarkdownExtended = true; // allows usage of Parsedown Extended
537539

538540
####################### Auth ####################
539541
## Manual Account request and confirmation

mediawiki/config/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,16 @@ RUN set -x; \
259259
&& cd $MW_HOME/extensions \
260260
&& git clone --depth 1 -b $MW_VERSION https://github.com/wikimedia/mediawiki-extensions-VEForAll.git VEForAll \
261261
&& git clone --depth 1 -b $MW_VERSION https://github.com/wikimedia/mediawiki-extensions-CodeMirror.git CodeMirror \
262+
&& git clone --depth 1 -b dev https://github.com/OpenSemanticLab/WikiMarkdown.git WikiMarkdown \
263+
&& cd $MW_HOME && jq '.extra."merge-plugin".include += ["extensions/WikiMarkdown/composer.json"]' < composer.local.json > tmp.$$.json && mv tmp.$$.json composer.local.json && cd $MW_HOME/extensions \
262264
## Other Editors
263265
#&& git clone --depth 1 -b $MW_VERSION https://github.com/wikimedia/mediawiki-extensions-DrawioEditor.git DrawioEditor \
264266
&& git clone --depth 1 -b dev https://github.com/OpenSemanticLab/mediawiki-extensions-DrawioEditor DrawioEditor \
265267
# apply patch for private wikis, see: https://phabricator.wikimedia.org/T271347
266268
&& sed -i -e "s/static \$validNamespaces = \[/static \$validNamespaces = \['http:\/\/www.w3.org\/1999\/xhtml',/g" $MW_HOME/includes/upload/UploadBase.php \
267269
&& sed -i -e "s/datastr = datastr.replace( expr, '\"http:\/\/www.w3.org\/2000\/svg\"' );/\/\/datastr = datastr.replace( expr, '\"http:\/\/www.w3.org\/2000\/svg\"' ); /g" $MW_HOME/extensions/DrawioEditor/resources/ext.drawioeditor.js \
268-
&& cd ..
270+
&& cd $MW_HOME \
271+
&& composer update --no-dev --prefer-source
269272

270273
##### UI extensions
271274
RUN set -x; \

0 commit comments

Comments
 (0)