Created
October 7, 2023 09:44
-
-
Save jdoleary/4cb1507cdcb545ded730cb9431470b2b to your computer and use it in GitHub Desktop.
Extract kindle highlights and convert to markdown quote
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Kindle truncates long highlights in some views. | |
// To get full, un-truncated notes, go to https://read.amazon.com/kindle-library | |
// in the sidebar click on "Notes & Highlights | |
// To just get all the highlights in an array | |
Array.from(document.querySelectorAll('#highlight')).map(x => x.innerText) | |
// To get highlights as markdown | |
Array.from(document.querySelectorAll('#highlight')).map(x => (`> ${x.innerText}`)).join('\n\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment