Skip to content

Commit

Permalink
Update Yanki with potential fixes for #6, #13, and #14.
Browse files Browse the repository at this point in the history
  • Loading branch information
kitschpatrol committed Sep 2, 2024
1 parent ea96952 commit 3e51447
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"throughs",
"yanki",
"Yankī",
"Yatskov"
"Yatskov",
"Zoé"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Normalize unicode like `'Zoé' !== 'Zoé'`

---

Unicode is [normalized](https://www.w3.org/TR/charmod-norm/#unicodeNormalization) to match Anki's representation.

The two Zoé's look the same, but one is:

```js
'Zo\u00e9'
```

And the other is:

```js
'Zo\u0065\u0301'
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"tsx": "^4.19.0",
"type-fest": "^4.26.0",
"typescript": "^5.5.4",
"yanki": "^0.15.0"
"yanki": "^0.15.1"
},
"obsidian": {
"description": "Sync flashcards from a folder in your vault to Anki. Pure Markdown syntax. No fuss.",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e51447

Please sign in to comment.