From c6aa2e25f04f3d92603a9d04bb1c9cb1e4766ca7 Mon Sep 17 00:00:00 2001 From: Nofont Date: Mon, 29 Jun 2015 02:07:45 +0200 Subject: [PATCH] Numbers wrapped in -tag. --- typesetter/typesetter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typesetter/typesetter.js b/typesetter/typesetter.js index fad185e..0fb199d 100644 --- a/typesetter/typesetter.js +++ b/typesetter/typesetter.js @@ -25,7 +25,7 @@ var charReplacements = function() { var quoteCharClose = "»"; var quoteCharOpen = "«"; var triggerID = "#display"; - var smallcapsClass = "smallcaps" + var smallcapsClass = "num" // END SETTINGS @@ -44,7 +44,7 @@ var charReplacements = function() { $(this).html( $(this).html().replace(/"([\s\.\,])/g, quoteCharClose + "$1")); // Replaces | " | space | with | » | space | $(this).html( $(this).html().replace(/\s"/g, " " + quoteCharOpen)); // Replaces | space | " | with | space | « | - $(this).html( $(this).html().replace(/(\d+)(?=((?!<\/a>).)*($1')); // wraps digits in -tag but ignors digits within a -tag. Read full explanation here http://www.phpbuilder.com/board/archive/index.php/t-10221442.html + $(this).html( $(this).html().replace(/(\d+)(?=((?!<\/a>).)*($1')); // wraps digits in -tag but ignors digits within a -tag. Read full explanation here http://www.phpbuilder.com/board/archive/index.php/t-10221442.html if ( (($(this).children().length) === 0) || ($('this:contains("u00a9")')) ) { $(this).html( $(this).html().replace(/\u00a9/g, "©") ); // Superscripts (c)