Skip to content

Commit

Permalink
Merge pull request #5 from AkaraChen/main
Browse files Browse the repository at this point in the history
chore: update github-slugger
  • Loading branch information
satnaing authored Oct 28, 2022
2 parents f3adbd7 + 4d5a560 commit 43f4f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@types/react": "^18.0.20",
"astro": "^1.1.7",
"fuse.js": "^6.6.2",
"github-slugger": "^1.4.0",
"github-slugger": "^2.0.0",
"remark-collapse": "^0.1.2",
"remark-toc": "^8.0.1"
},
Expand Down
4 changes: 1 addition & 3 deletions src/utils/slugify.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import GithubSlugger from "github-slugger";
import { slug as slugger } from "github-slugger";
import type { Frontmatter } from "src/types";

const slugger = GithubSlugger.slug;

export const slugifyStr = (str: string) => slugger(str);

const slugify = (frontmatter: Frontmatter) =>
Expand Down

0 comments on commit 43f4f37

Please sign in to comment.