Skip to content

Commit 3d5d8e2

Browse files
committed
document linkifyHeaderStyle in default.js
Signed-off-by: hoijui <[email protected]>
1 parent c4906c0 commit 3d5d8e2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/config/default.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,18 @@ module.exports = {
163163
allowGravatar: true,
164164
allowPDFExport: true,
165165
openID: false,
166+
// linkifyHeaderStyle - How is a header text converted into a link id.
167+
// Header Example: "3.1. Good Morning my Friend! - Do you have 5$?"
168+
// * 'keep-case' is the legacy CodiMD value.
169+
// Generated id: "31-Good-Morning-my-Friend---Do-you-have-5"
170+
// * 'lower-case' is the same like legacy (see above), but converted to lower-case.
171+
// Generated id: "#31-good-morning-my-friend---do-you-have-5"
172+
// * 'gfm' _GitHub-Flavored Markdown_ style as described here:
173+
// https://gist.github.com/asabaylus/3071099#gistcomment-1593627
174+
// It works like 'lower-case', but making sure the ID is unique.
175+
// This is What GitHub, GitLab and (hopefully) most other tools use.
176+
// Generated id: "31-good-morning-my-friend---do-you-have-5"
177+
// 2nd appearance: "31-good-morning-my-friend---do-you-have-5-1"
178+
// 3rd appearance: "31-good-morning-my-friend---do-you-have-5-2"
166179
linkifyHeaderStyle: 'keep-case'
167180
}

0 commit comments

Comments
 (0)