diff options
author | Sheogorath | 2019-12-03 14:40:00 +0100 |
---|---|---|
committer | GitHub | 2019-12-03 14:40:00 +0100 |
commit | 33150b79c7a4c3ba456afdadb31c709b3be18980 (patch) | |
tree | e8f4be1a385a70336830e1851ab86d7d9fb686a5 /lib | |
parent | 2ddec15af8e77fcad85e62ee8c0b6eccefc52405 (diff) | |
parent | ad1a2fb19c842ea5e4cb46a24989ce95b2041902 (diff) |
Merge pull request #218 from hoijui/linkifyHeaderStyle
Linkify header style
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config/default.js | 13 | ||||
-rw-r--r-- | lib/config/environment.js | 3 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index f5cceac6..a52a8a4f 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -158,5 +158,18 @@ module.exports = { allowGravatar: true, allowPDFExport: true, openID: false, + // linkifyHeaderStyle - How is a header text converted into a link id. + // Header Example: "3.1. Good Morning my Friend! - Do you have 5$?" + // * 'keep-case' is the legacy CodiMD value. + // Generated id: "31-Good-Morning-my-Friend---Do-you-have-5" + // * 'lower-case' is the same like legacy (see above), but converted to lower-case. + // Generated id: "#31-good-morning-my-friend---do-you-have-5" + // * 'gfm' _GitHub-Flavored Markdown_ style as described here: + // https://gist.github.com/asabaylus/3071099#gistcomment-1593627 + // It works like 'lower-case', but making sure the ID is unique. + // This is What GitHub, GitLab and (hopefully) most other tools use. + // Generated id: "31-good-morning-my-friend---do-you-have-5" + // 2nd appearance: "31-good-morning-my-friend---do-you-have-5-1" + // 3rd appearance: "31-good-morning-my-friend---do-you-have-5-2" linkifyHeaderStyle: 'keep-case' } diff --git a/lib/config/environment.js b/lib/config/environment.js index 716f8b75..944a2fb2 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -134,5 +134,6 @@ module.exports = { allowEmailRegister: toBooleanConfig(process.env.CMD_ALLOW_EMAIL_REGISTER), allowGravatar: toBooleanConfig(process.env.CMD_ALLOW_GRAVATAR), allowPDFExport: toBooleanConfig(process.env.CMD_ALLOW_PDF_EXPORT), - openID: toBooleanConfig(process.env.CMD_OPENID) + openID: toBooleanConfig(process.env.CMD_OPENID), + linkifyHeaderStyle: process.env.CMD_LINKIFY_HEADER_STYLE } |