From 6357e5794fe029fc80226d9bc042de9ec6b0f7f8 Mon Sep 17 00:00:00 2001 From: Yaro Kasear Date: Tue, 21 Oct 2025 10:19:26 -0500 Subject: [PATCH] More markdown enhancements. --- inventory/templates/inventory_note.html | 3 +++ inventory/templates/update_list.html | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/inventory/templates/inventory_note.html b/inventory/templates/inventory_note.html index abff378..89f1df6 100644 --- a/inventory/templates/inventory_note.html +++ b/inventory/templates/inventory_note.html @@ -56,6 +56,9 @@ for (const t of container.querySelectorAll('table')) { t.classList.add('table', 'table-sm', 'table-striped', 'table-bordered'); } + for (const t of container.querySelectorAll('blockquote')) { + t.classList.add('blockquote', 'border-start', 'border-5', 'border-success', 'mt-3', 'ps-3'); + } } function changeMode() { diff --git a/inventory/templates/update_list.html b/inventory/templates/update_list.html index 1579261..3fb0973 100644 --- a/inventory/templates/update_list.html +++ b/inventory/templates/update_list.html @@ -91,11 +91,19 @@ } } + function enhanceBlockquotes(root) { + if (!root) return; + for (const t of root.querySelectorAll('blockquote')) { + t.classList.add('blockquote', 'border-start', 'border-5', 'border-success', 'mt-3', 'ps-3'); + } + } + function renderHTML(el, md) { if (!el) return; el.innerHTML = renderMarkdown(md); enhanceLinks(el); enhanceTables(el); + enhanceBlockquotes(el); } function getMarkdown(id) {