-static int html_blocktagname(struct md_mbuf *,
- const struct md_args *, int,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_blocktagargs(struct md_mbuf *,
- const struct md_args *, int,
- const int *, const char **, size_t *);
-static int html_headtagname(struct md_mbuf *,
- const struct md_args *, int,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_headtagargs(struct md_mbuf *,
- const struct md_args *, int,
- const int *, const char **, size_t *);
-static int html_bodytagname(struct md_mbuf *,
- const struct md_args *,
- int, struct htmlq *, const int *,
- const char **, size_t *);
-static int html_bodytagargs(struct md_mbuf *,
- const struct md_args *, int,
- const int *, const char **, size_t *);
-static int html_inlinetagname(struct md_mbuf *,
- const struct md_args *, int, size_t *);
-static int html_inlinetagargs(struct md_mbuf *,
- const struct md_args *, int,
- const int *, const char **, size_t *);
-static int html_Bl_bodytagname(struct md_mbuf *,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_It_blocktagname(struct md_mbuf *,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_It_headtagname(struct md_mbuf *,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_It_bodytagname(struct md_mbuf *,
- struct htmlq *, const int *,
- const char **, size_t *);
-static int html_tputln(struct md_mbuf *,
- enum ml_scope, int, enum html_tag);
-static int html_aputln(struct md_mbuf *, enum ml_scope,
- int, enum html_tag,
- int, const struct html_pair *);
-
-
-/* ARGSUSED */
-static int
-html_It_headtagname(struct md_mbuf *mbuf, struct htmlq *q,
- const int *argc, const char **argv, size_t *res)
+static void print_res(struct html *, const char *, size_t);
+static void print_ctag(struct html *, enum htmltag);
+static void print_doctype(struct html *);
+static void print_xmltype(struct html *);
+static int print_encode(struct html *, const char *, int);
+static void print_metaf(struct html *, enum roffdeco);
+static void print_attr(struct html *,
+ const char *, const char *);
+static void *ml_alloc(char *, enum htmltype);
+
+
+static void *
+ml_alloc(char *outopts, enum htmltype type)