aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2014-09-28 11:33:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2014-09-28 11:33:15 +0000
commit9fbcf3aca2a19a98619def5baefd89f51ec207f0 (patch)
tree91a15b371b02ea1dc869b3b7884c0948e12cb2ba /html.c
parent4e1ef3c4eae3f48627d137b40ed09598b21792de (diff)
downloadmandoc-9fbcf3aca2a19a98619def5baefd89f51ec207f0.tar.gz
mandoc-9fbcf3aca2a19a98619def5baefd89f51ec207f0.tar.zst
mandoc-9fbcf3aca2a19a98619def5baefd89f51ec207f0.zip
Add support for some MathML elements and attributes in our HTML5.
Diffstat (limited to 'html.c')
-rw-r--r--html.c17
1 files changed, 16 insertions, 1 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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] = {