From 019c80476c64b5cd86b6e9d115c86162b2ae462c Mon Sep 17 00:00:00 2001 From: rich Date: Sat, 9 Oct 2004 11:03:58 +0000 Subject: [PATCH] Allow , , , and . --- scripts/wikilib.ml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/wikilib.ml b/scripts/wikilib.ml index 619f049..b11b590 100644 --- a/scripts/wikilib.ml +++ b/scripts/wikilib.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: wikilib.ml,v 1.10 2004/10/09 09:48:37 rich Exp $ + * $Id: wikilib.ml,v 1.11 2004/10/09 11:03:58 rich Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -91,7 +91,7 @@ let obscure_mailto url = (* This matches any markup. *) let markup_re = let link = "\\[\\[\\s*(?:.+?)\\s*(?:\\|.+?\\s*)?\\]\\]" in - let tag = "" in + let tag = "" in Pcre.regexp ("(.*?)((?:" ^ link ^ ")|(?:" ^ tag ^ "))(.*)") (* This matches links only, and should be compatible with the link contained @@ -425,10 +425,12 @@ let allowed_elements = "p", []; "ul", []; "ol", []; "li", []; "pre", []; "blockquote", ["cite"]; - "strong", []; "em", []; "dfn", []; "code", []; "samp", []; "kbd", []; - "var", []; "cite", []; "sup", []; "sub", []; "q", []; + "strong", []; "em", []; "dfn", []; "code", []; "tt", []; + "samp", []; "kbd", []; "var", []; "cite", []; + "sup", []; "sub", []; "q", []; "abbr", []; "acronym", []; "b", []; "i", []; + "big", []; "small", []; "strike", []; "s", []; "div", []; "span", []; "br", []; ] in -- 1.8.3.1