Old Reddit Better Codeblocks

replace re-render markdown with marked.js and highlight codeblocks with highlight.js

目前为 2023-11-22 提交的版本。查看 最新版本

作者
cultab
评分
0 0 0
版本
0.1
创建于
2023-11-22
更新于
2023-11-22
大小
3.0 KB
许可证
MIT
适用于

Tired of seeing broken-ass formatting?

Tired of new redditors unknowingly using ``` (triple backtick) nu-reddit style codeblocks?

Tired of old reddits complaining about new redditors' formatting?

Well today is your lucky day!

*explosion*

To show you the power of Old Reddit Better Codeblocks we replaced reddit's the markdown renderer with marked.js (and we also used highlight.js to highlight the codeblocks)!

(this is horribly implemented we literally click() on the view source button twice ;-; I've done very little testing but it works for now ecks dee)

TL;DR

Re-renders all reddit posts with a better markdown renderer that can actually handle the new codeblocks + highlight them.