Skip to content

Instantly share code, notes, and snippets.

@ricealexander
Created November 23, 2020 09:56
Show Gist options
  • Save ricealexander/44e60b55db825682b170444504c2056f to your computer and use it in GitHub Desktop.
Save ricealexander/44e60b55db825682b170444504c2056f to your computer and use it in GitHub Desktop.
Grove Blockquotes do not preserve linebreaks within the quote. Here is a workaround
const quotes = document.querySelectorAll('.Quote blockquote')
for (const quote of quotes) {
quote.innerHTML = quote.innerHTML.replace('\n\n', '<br><br>')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment