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 60ce8042c..c2f154911 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1325,7 +1325,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) => {