Open a PDF in a full tab — read, highlight, mark up, reorder or rotate or drop pages,
fill form fields, save a new copy. Annotations are written as real PDF content, the original
is never touched. Opens from the toolbar's PDF Editor menu or the right-click
Open PDF in editor
@@ -278,9 +278,14 @@
const cat = r.ok ? await r.json() : { extensions: [] };
const list = Array.isArray(cat.extensions) ? cat.extensions : [];
if (!list.length) { box.innerHTML = '
'; return; }
+ const iconHtml = (icon) => {
+ const s = String(icon || "🧩");
+ if (/^data:image\//i.test(s)) return `
})
`;
+ return esc(s);
+ };
box.innerHTML = list.map((e) => `
-
${esc(e.icon || "🧩")} ${esc(e.name)} v${esc(e.latest)}
+
${iconHtml(e.icon)} ${esc(e.name)} v${esc(e.latest)}
${esc(e.description)}
Published by ${esc(e.publisher)} · ${esc(String(e.versions || 1))} version${e.versions === 1 ? "" : "s"} · updated ${esc(String(e.updatedAt || "").slice(0, 10))}${e.capabilities && e.capabilities.length ? " · " + esc(e.capabilities.join(", ")) : ""}
${installUi(e.id)}