Update code to support better wiki link style on Help vault: namedly Alias divider, case-sensitive file name
This commit is contained in:
parent
c5425dc961
commit
1d6c3b1382
@ -70,7 +70,9 @@ export const Transformer = {
|
|||||||
permalink = permalink.replace("ç","c").replace("ı","i").replace("ş","s")
|
permalink = permalink.replace("ç","c").replace("ı","i").replace("ş","s")
|
||||||
//console.log("wiki pemalink", permalink);
|
//console.log("wiki pemalink", permalink);
|
||||||
return `/note/${permalink}`
|
return `/note/${permalink}`
|
||||||
}
|
},
|
||||||
|
|
||||||
|
aliasDivider:"|"
|
||||||
}).use(html)
|
}).use(html)
|
||||||
.process(sanitizedContent,
|
.process(sanitizedContent,
|
||||||
function (err, file) {
|
function (err, file) {
|
||||||
@ -105,7 +107,7 @@ export const Transformer = {
|
|||||||
var processedFileName = filename.replace(".md", "")
|
var processedFileName = filename.replace(".md", "")
|
||||||
processedFileName = processedFileName.replace('(', '').replace(')', '')
|
processedFileName = processedFileName.replace('(', '').replace(')', '')
|
||||||
processedFileName = processedFileName.split(" ").join("-")
|
processedFileName = processedFileName.split(" ").join("-")
|
||||||
processedFileName = processedFileName.toLowerCase()
|
// processedFileName = processedFileName.toLowerCase()
|
||||||
const conversionLetters = [
|
const conversionLetters = [
|
||||||
["ç", "c"], ["ş","s"], ["ı", "i"], ["ü","u"], ["ö","o"], ["ğ","g"],
|
["ç", "c"], ["ş","s"], ["ı", "i"], ["ü","u"], ["ö","o"], ["ğ","g"],
|
||||||
["Ç", "C"], ["Ş","S"], ["İ", "I"], ["Ü","U"], ["Ö","O"], ["Ğ","G"]
|
["Ç", "C"], ["Ş","S"], ["İ", "I"], ["Ü","U"], ["Ö","O"], ["Ğ","G"]
|
||||||
|
Loading…
Reference in New Issue
Block a user