baniol / kindle-my-clippings

kindle My Clippings.txt parser to JSON / html
MIT License
40 stars 10 forks source link

Fix bugs and re-enable unit tests. #8

Open dantler opened 7 years ago

dantler commented 7 years ago

Hey there,

I was trying to dump my Kindle "My Clippings.txt" output in a cleaner format and found your script. It came very close to getting it right. I put together some tweaks that made it work for me.

Thanks, David


Changelog:

  1. Remove dependency upon Make executable.
  2. Fix "absolute file paths" issue #3.
  3. Fix "tests are broken" issue #4.
  4. Update "test/My Clippings.txt" with snippet of the format dumped from my Kindle Paperwhite 300ppi (as of 2017-06-10)
  5. Fixed bug around parsing book titles with parentheses in them.
  6. Updated date parsing; added 'moment.js' dependency.
  7. Removed some dead code.