mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-07 06:06:40 +00:00
fix: tag support for non-latin alphabets (fixes #398)
This commit is contained in:
parent
b991cf2ee8
commit
8b63ff882a
3 changed files with 7 additions and 6 deletions
quartz/plugins/transformers
|
@ -41,7 +41,7 @@ export const FrontMatter: QuartzTransformerPlugin<Partial<Options> | undefined>
|
|||
}
|
||||
|
||||
// slug them all!!
|
||||
data.tags = data.tags?.map((tag: string) => slugTag(tag)) ?? []
|
||||
data.tags = [...new Set(data.tags?.map((tag: string) => slugTag(tag)))] ?? []
|
||||
|
||||
// fill in frontmatter
|
||||
file.data.frontmatter = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue