From 1025c0e7bd7937f02b842da704e23aa3f4e7b06b Mon Sep 17 00:00:00 2001 From: James Date: Mon, 29 Oct 2018 15:59:30 -0500 Subject: [PATCH] Fixed deprecated (see: https://www.w3.org/TR/html4/present/graphics.html#h-15.1.2) align property on tables. Now uses inline CSS. --- html.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.go b/html.go index 284c871..ab586fd 100644 --- a/html.go +++ b/html.go @@ -786,7 +786,7 @@ func (r *HTMLRenderer) RenderNode(w io.Writer, node *Node, entering bool) WalkSt if entering { align := cellAlignment(node.Align) if align != "" { - attrs = append(attrs, fmt.Sprintf(`align="%s"`, align)) + attrs = append(attrs, fmt.Sprintf(`style="text-align: %s;"`, align)) } if node.Prev == nil { r.cr(w)