Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to generate lower case header references through the config #205

Merged
merged 2 commits into from Oct 23, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

slight doc comment touch-up/simplification [minor]

Signed-off-by: hoijui <hoijui.quaero@gmail.com>
  • Loading branch information
hoijui committed Oct 21, 2019
commit 20adab2f32a785c2dedcd42ee8e0750039fd9dd9
@@ -164,11 +164,11 @@ export function renderTags (view) {
}

function slugifyWithUTF8 (text) {
// remove html tags and trim spaces
// remove HTML tags and trim spaces
let newText = S(text).trim().stripTags().s
// replace all spaces in between to dashes
// replace space between words with dashes
newText = newText.replace(/\s+/g, '-')
// slugify string to make it valid for attribute
// slugify string to make it valid as an attribute
newText = newText.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g, '')
return newText
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.