summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-11-07 14:33:06 +0800
committerLauris BH <lauris@nix.lv>2017-11-07 08:33:06 +0200
commit62d0a4d8829f214af4f9c00ecf8a81907d86ef06 (patch)
treec227fd240dcebde532b5ecef7d4b60a042e1f77e /conf
parentddb75191eca30343783521c06f8706397c9260b8 (diff)
downloadgitea-62d0a4d8829f214af4f9c00ecf8a81907d86ef06.tar.gz
gitea-62d0a4d8829f214af4f9c00ecf8a81907d86ef06.zip
Add external markup render support (#2570)
* add external markup render support * bug fixed * refacotr codes and fix wrong error log * fix comments and add check to prevent leaks * add check for config file and improve the example * check file close error * use ioutil.TempFile instead uuid * correct Render -> Parser * improve warning when incorrect markup setting * fix typos
Diffstat (limited to 'conf')
-rw-r--r--conf/app.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/conf/app.ini b/conf/app.ini
index 07c60ea0a9..603f8c14fc 100644
--- a/conf/app.ini
+++ b/conf/app.ini
@@ -573,3 +573,12 @@ SHOW_FOOTER_BRANDING = false
SHOW_FOOTER_VERSION = true
; Show time of template execution in the footer
SHOW_FOOTER_TEMPLATE_LOAD_TIME = true
+
+[markup.asciidoc]
+ENABLED = false
+; List of file extensions that should be rendered by an external command
+FILE_EXTENSIONS = .adoc,.asciidoc
+; External command to render all matching extensions
+RENDER_COMMAND = "asciidoc --out-file=- -"
+; Input is not a standard input but a file
+IS_INPUT_FILE = false \ No newline at end of file