From 9fbcf3aca2a19a98619def5baefd89f51ec207f0 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 28 Sep 2014 11:33:15 +0000 Subject: Add support for some MathML elements and attributes in our HTML5. --- html.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'html.c') diff --git a/html.c b/html.c index 696a5437..942a2c6c 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.172 2014/09/27 11:17:19 kristaps Exp $ */ +/* $Id: html.c,v 1.173 2014/09/28 11:33:15 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011, 2014 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze @@ -74,6 +74,19 @@ static const struct htmldata htmltags[TAG_MAX] = { {"code", 0 }, /* TAG_CODE */ {"small", 0 }, /* TAG_SMALL */ {"style", HTML_CLRLINE}, /* TAG_STYLE */ + {"math", HTML_CLRLINE}, /* TAG_MATH */ + {"mrow", 0}, /* TAG_MROW */ + {"mi", 0}, /* TAG_MI */ + {"mo", 0}, /* TAG_MO */ + {"msup", 0}, /* TAG_MSUP */ + {"msub", 0}, /* TAG_MSUB */ + {"msubsup", 0}, /* TAG_MSUBSUP */ + {"mfrac", 0}, /* TAG_MFRAC */ + {"msqrt", 0}, /* TAG_MSQRT */ + {"mfenced", 0}, /* TAG_MFENCED */ + {"mtable", 0}, /* TAG_MTABLE */ + {"mtr", 0}, /* TAG_MTR */ + {"mtd", 0}, /* TAG_MTD */ }; static const char *const htmlattrs[ATTR_MAX] = { @@ -87,6 +100,8 @@ static const char *const htmlattrs[ATTR_MAX] = { "id", /* ATTR_ID */ "colspan", /* ATTR_COLSPAN */ "charset", /* ATTR_CHARSET */ + "open", /* ATTR_OPEN */ + "close", /* ATTR_CLOSE */ }; static const char *const roffscales[SCALE_MAX] = { -- cgit v1.2.3-56-ge451