Updates peer.paste

This commit is contained in:
Raven Scott
2026-05-27 23:43:05 -04:00
parent 55b7547b3a
commit 371fce2847
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "Peer Paste",
"version": "1.3.6",
"version": "1.3.7",
"domain": "peer.paste",
"enabled": true,
"description": "Temporary P2P text snippets with expiration and burn-after-read options",
+7
View File
@@ -651,6 +651,7 @@ function renderPastePage(paste) {
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>peer.paste - ${paste.id}</title>
<link rel="stylesheet" href="/api/vendor/highlight-dark.css" />
<style>
body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}
.wrap{max-width:960px;margin:2rem auto;padding:0 1rem}
@@ -713,6 +714,11 @@ function renderPastePage(paste) {
.replace(/\\son\\w+='[^']*'/gi, '')
.replace(/javascript:/gi, '');
out.innerHTML = sanitize(marked.parse(text));
if (window.hljs) {
out.querySelectorAll('pre code').forEach((block) => {
try { hljs.highlightElement(block); } catch {}
});
}
} else {
out.textContent = text;
}
@@ -753,6 +759,7 @@ function renderPastePage(paste) {
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>peer.paste - ${paste.id}</title>
<link rel="stylesheet" href="/api/vendor/highlight-dark.css" />
<style>
body{margin:0;font-family:system-ui;background:#0f172a;color:#e2e8f0}
.wrap{max-width:960px;margin:2rem auto;padding:0 1rem}