From 3b0f9eafafadf8aa8dcd4f3579002b4d78d74bd4 Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Mon, 6 Jul 2026 00:38:47 +0200 Subject: [PATCH] Default new pages to Markdown out of the box (Everywhere on by default) --- extension.json | 2 +- tests/phpunit/EntryPoints/MarkdownContentHandlerTest.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/extension.json b/extension.json index 3f28bac..7ad5e16 100644 --- a/extension.json +++ b/extension.json @@ -47,7 +47,7 @@ }, "NativeMarkdownEverywhere": { "description": "If new pages should default to the markdown content model everywhere, except discussion, Template and MediaWiki namespaces and namespaces with an explicitly configured content model.", - "value": false + "value": true }, "NativeMarkdownSuffixDetection": { "description": "If new pages with a title ending in .md should default to the markdown content model.", diff --git a/tests/phpunit/EntryPoints/MarkdownContentHandlerTest.php b/tests/phpunit/EntryPoints/MarkdownContentHandlerTest.php index f3c837b..202ef8d 100644 --- a/tests/phpunit/EntryPoints/MarkdownContentHandlerTest.php +++ b/tests/phpunit/EntryPoints/MarkdownContentHandlerTest.php @@ -47,7 +47,8 @@ public function testRendersMissingPageAsRedLink(): void { } public function testBatchedExistenceLookupKeepsBlueAndRedLinksApart(): void { - $this->getExistingTestPage( 'Batch Existing Page' ); + // Only needs the target to exist; editPage works whatever the default model is. + $this->editPage( 'Batch Existing Page', 'It exists.' ); $output = $this->getParserOutput( 'Blue [[Batch Existing Page]] and red [[Batch Missing Page]]' );