Export Perplexity.ai conversations as markdown with configurable citation styles
These are versions of this script where the code was updated. Show all versions.
Fixed code block formatting
Perplexity html structure changed for sources, updated to match (div -> span). Added a space between source numbers and after content. Removed dashes from the title in favor of spaces. (if you want to revert this, change line 298 to .replace(/[^a-z0-9]+/g, "-")) Ran a code formatter and fixed lints (sorry if this makes it harder to see the diffs). Let me know if you have any issues!
.replace(/[^a-z0-9]+/g, "-")