diff options
author | hoijui | 2019-10-21 22:10:06 +0200 |
---|---|---|
committer | hoijui | 2019-10-22 09:05:37 +0200 |
commit | e654ca8a3130108a6616131e35524d8f50d80ed0 (patch) | |
tree | e3e54724c3c55a5ce79e33482f09201e62b31a73 /lib/web | |
parent | 20adab2f32a785c2dedcd42ee8e0750039fd9dd9 (diff) |
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 <hoijui.quaero@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | lib/web/statusRouter.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/web/statusRouter.js b/lib/web/statusRouter.js index da69e62c..1d9a1157 100644 --- a/lib/web/statusRouter.js +++ b/lib/web/statusRouter.js @@ -96,7 +96,8 @@ statusRouter.get('/config', function (req, res) { debug: config.debug, version: config.fullversion, DROPBOX_APP_KEY: config.dropbox.appKey, - allowedUploadMimeTypes: config.allowedUploadMimeTypes + allowedUploadMimeTypes: config.allowedUploadMimeTypes, + linkifyHeaderStyle: config.linkifyHeaderStyle } res.set({ 'Cache-Control': 'private', // only cache by client |