weichenw / obsidian-hypothesis-plugin

An Obsidian.md plugin that syncs highlights from Hypothesis.
MIT License
235 stars 20 forks source link

Refactor parsing of api data annotations #35

Closed phgn0 closed 2 years ago

phgn0 commented 2 years ago

Thank you for creating this awesome plugin!

This PR refactors the parsing of annotations data in src/parser/parseSyncResponse.ts a bit. This allows to:

Sorry for the large LOC count :/ See the inline comments for context.