From 9e0a6a78616ab9ede6830c078245a195791e5ee4 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 11 Nov 2012 19:09:17 +0530 Subject: new feature: special text (symbols) are quoted to HTML number inside a code-block modified: parsers/CodeBlocks.java (new class 'SymbolMap' which has a list of symbols & their corresponding HTML number) ( quote() in 'CodeBlock' class uses the SymbolMap to quote text) parsers/ParserList.java (list re-ordered, CodeBlock has gone up) parsers/QuoteSpecialText.java ( if regex matches '#', it leaves the text un-quoted) --- parsers/ParserList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parsers/ParserList.java') diff --git a/parsers/ParserList.java b/parsers/ParserList.java index 999dadc..685de25 100644 --- a/parsers/ParserList.java +++ b/parsers/ParserList.java @@ -30,9 +30,9 @@ public class ParserList { // add Parsers. NOTE: parser order is significant. parsers.add(new QuoteSpecialText()); parsers.add(new DocumentName()); + parsers.add(new CodeBlocks()); parsers.add(new DocumentDate()); parsers.add(new WordDecoration()); - parsers.add(new CodeBlocks()); parsers.add(new Headings()); parsers.add(new Links()); parsers.add(new Images()); -- cgit v1.2.3