Skip to content

Instantly share code, notes, and snippets.

@theY4Kman
Created September 4, 2016 18:23
Show Gist options
  • Save theY4Kman/0be1fa67f80ee9455c0e6e085ed43050 to your computer and use it in GitHub Desktop.
Save theY4Kman/0be1fa67f80ee9455c0e6e085ed43050 to your computer and use it in GitHub Desktop.
copy(Array.prototype.slice.call($$('.essays2015-essay')).map(function(e) { var title = $('.essays2015-essay-title', e), content = $('.essays2015-essay-content', e); return '## ' + title.innerText + '\n\n' + content.innerText.replace(/(.)(\n.)/mg, '$1 $2') }).join('\n\n\n'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment