From 2e6dc5c028e83c079f448748da5c00a12c9e1c50 Mon Sep 17 00:00:00 2001 From: Peisong Xiao Date: Fri, 16 Jan 2026 23:27:18 -0500 Subject: [PATCH] added --- rendering to markdown --- manifest.json | 2 +- popup.css | 6 ++++++ popup.js | 8 ++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 78a3336..2084734 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "WWCompanion", - "version": "0.1.3", + "version": "0.1.4", "description": "Manual reasoning companion for WaterlooWorks job postings.", "permissions": ["storage", "activeTab"], "host_permissions": ["https://waterlooworks.uwaterloo.ca/*"], diff --git a/popup.css b/popup.css index 2e51c1b..20f3a18 100644 --- a/popup.css +++ b/popup.css @@ -263,6 +263,12 @@ button:active { color: var(--muted); } +.output-body hr { + border: none; + border-top: 1px solid var(--border); + margin: 8px 0; +} + .output-body pre { margin: 0 0 10px; padding: 8px; diff --git a/popup.js b/popup.js index 598c5d9..70b4d18 100644 --- a/popup.js +++ b/popup.js @@ -172,6 +172,14 @@ function renderMarkdown(rawText) { continue; } + if (/^(\s*[-*_])\1{2,}\s*$/.test(line)) { + flushParagraph(); + closeList(); + closeBlockquote(); + result.push("
"); + continue; + } + if (isQuoteLine) { if (!inBlockquote) { flushParagraph();