(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* 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
(* This matches any markup. *)
let markup_re =
let link = "\\[\\[\\s*(?:.+?)\\s*(?:\\|.+?\\s*)?\\]\\]" in
- let tag = "</?(?:b|i|strong|em|code|sup|sub|nowiki|br)>" in
+ let tag = "</?(?:b|i|strong|em|code|tt|sup|sub|nowiki|big|small|strike|s|br)>" in
Pcre.regexp ("(.*?)((?:" ^ link ^ ")|(?:" ^ tag ^ "))(.*)")
(* This matches links only, and should be compatible with the link contained
"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