Skip to content

Commit

Permalink
Solve the inconsistent slug
Browse files Browse the repository at this point in the history
A super simple fix for shd101wyy#259. Just leave the file name as is.
  • Loading branch information
zcysxy authored Mar 20, 2022
1 parent a8e96f4 commit ecfd5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom-markdown-it-features/wikilink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default (md: MarkdownIt, config: MarkdownEngineConfig) => {
let linkText: string;
if (splits.length === 1) {
linkText = splits[0].trim();
const filename = linkText.replace(/\s/g, "_");
const filename = linkText;
wikiLink = `${filename}${config.wikiLinkFileExtension}`;
} else {
if (config.useGitHubStylePipedLink) {
Expand Down

0 comments on commit ecfd5b8

Please sign in to comment.