From ef568497bf23c8fe38e378f20c175ea6accc7b2f Mon Sep 17 00:00:00 2001 From: Chip Black Date: Mon, 7 Feb 2011 01:49:14 -0800 Subject: [PATCH] Change ref links to be gray instead of the normal color --- www/css/blerg.css | 4 ++++ www/js/blerg.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/www/css/blerg.css b/www/css/blerg.css index 66aeeb8..9de598b 100644 --- a/www/css/blerg.css +++ b/www/css/blerg.css @@ -12,6 +12,10 @@ body { background-color: white; } +a.ref { + color: #404040; +} + a > img { border: 0; } diff --git a/www/js/blerg.js b/www/js/blerg.js index 1f413ad..22fbded 100644 --- a/www/js/blerg.js +++ b/www/js/blerg.js @@ -264,8 +264,8 @@ function mangleRecord(record, template) { record.data = record.data.replace(/(\s)\*([^*]+)\*(\s)/g, '$1$2$3'); // Turn refs and tags into links - record.data = record.data.replace(/(\s|^)#([A-Za-z0-9_-]+)/g, '$1#$2'); - record.data = record.data.replace(/(\s|^)@([A-Za-z0-9_-]+)/g, '$1@$2'); + record.data = record.data.replace(/(\s|^)#([A-Za-z0-9_-]+)/g, '$1#$2'); + record.data = record.data.replace(/(\s|^)@([A-Za-z0-9_-]+)/g, '$1@$2'); // Turn newlines into linebreaks and paragraphs record.data = record.data.replace(/\r?\n\r?\n/g, "

").replace(/\r?\n/g, "
"); -- 2.25.1