diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl
index 276ea54f3..002a36de9 100644
--- a/templates/repo/wiki/new.tmpl
+++ b/templates/repo/wiki/new.tmpl
@@ -21,7 +21,7 @@
{{.i18n.Tr "preview"}}
-
+
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 46b042501..553948bb3 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1323,7 +1323,8 @@ function initWikiForm() {
_csrf: csrf,
mode: 'gfm',
context: $editArea.data('context'),
- text: plainText
+ text: plainText,
+ wiki: true
}, (data) => {
preview.innerHTML = `
${data}
`;
$(preview).find('pre code').each((_, e) => {