forked from snxraven/p2ns
Updates peer.paste
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user