From e654ca8a3130108a6616131e35524d8f50d80ed0 Mon Sep 17 00:00:00 2001 From: hoijui Date: Mon, 21 Oct 2019 22:10:06 +0200 Subject: Allow to generate lower case header references through the config This makes the references consistent/compatible with GitHub, GitLab, Pandoc and many other tools. This behavior can be enabled in config.json with: ``` "linkifyHeaderStyle": "gfm" ``` Signed-off-by: hoijui --- public/js/lib/common/constant.ejs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'public/js/lib/common') diff --git a/public/js/lib/common/constant.ejs b/public/js/lib/common/constant.ejs index a94b815e..bbcb8c7a 100644 --- a/public/js/lib/common/constant.ejs +++ b/public/js/lib/common/constant.ejs @@ -5,4 +5,6 @@ window.version = '<%- version %>' window.allowedUploadMimeTypes = <%- JSON.stringify(allowedUploadMimeTypes) %> +window.linkifyHeaderStyle = <%- JSON.stringify(linkifyHeaderStyle) %> + window.DROPBOX_APP_KEY = '<%- DROPBOX_APP_KEY %>' -- cgit v1.2.3