mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Fixed deprecated (see: https://www.w3.org/TR/html4/present/graphics.html#h-15.1.2) align property on tables. Now uses inline CSS.
This commit is contained in:
parent
9aa4d3fce9
commit
1025c0e7bd
2
html.go
2
html.go
|
@ -786,7 +786,7 @@ func (r *HTMLRenderer) RenderNode(w io.Writer, node *Node, entering bool) WalkSt
|
||||||
if entering {
|
if entering {
|
||||||
align := cellAlignment(node.Align)
|
align := cellAlignment(node.Align)
|
||||||
if 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 {
|
if node.Prev == nil {
|
||||||
r.cr(w)
|
r.cr(w)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user