Skip to content

Commit

Permalink
Merge pull request #49 from hadynz/language-agnostic
Browse files Browse the repository at this point in the history
MyClippings are parsed in language agnostic manner
  • Loading branch information
hadynz authored May 30, 2021
2 parents 23abb11 + fe21adf commit 67b6df6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-kindle-plugin",
"name": "Kindle Highlights",
"version": "0.2.12",
"version": "0.2.13",
"minAppVersion": "0.10.2",
"description": "Sync your Kindle book highlights using your Amazon login or uploading your My Clippings file",
"author": "Hady Osman",
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-kindle-plugin",
"version": "0.2.12",
"version": "0.2.13",
"description": "Sync your Kindle book highlights using your Amazon login or uploading your My Clippings file",
"main": "src/index.ts",
"repository": {
Expand All @@ -18,7 +18,7 @@
"dev": "NODE_ENV=development webpack && cp ./dist/main.js* ."
},
"dependencies": {
"@hadynz/kindle-clippings": "^1.0.8",
"@hadynz/kindle-clippings": "^1.0.9",
"cheerio": "*",
"lodash.pickby": "^4.6.0",
"lodasync": "^1.0.7",
Expand Down
2 changes: 1 addition & 1 deletion src/sync/syncClippings/parseBooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const toBookHighlight = (book: kc.Book): BookHighlight => {
author: book.author,
},
highlights: book.entries
.filter((entry) => entry.type === 'HIGHLIGHT')
.filter((entry) => entry.type === 'HIGHLIGHT' || entry.type === 'UNKNOWN')
.map((entry) => ({
text: entry.content,
note: entry.note,
Expand Down

0 comments on commit 67b6df6

Please sign in to comment.