Export Perplexity.ai conversations as markdown with configurable citation styles
这些是此脚本的所有版本。 只显示代码变更过的版本。
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, "-")