Rename hstring.RenderedHTML => hstring.HTML

And add a comment about why it exists.
This commit is contained in:
Bjørn Erik Pedersen
2024-09-01 10:03:10 +02:00
parent 96afea4acc
commit 469124823c
7 changed files with 27 additions and 25 deletions

View File

@@ -132,7 +132,7 @@ func (r *htmlRenderer) renderCell(w util.BufWriter, source []byte, node ast.Node
alignment = "left"
}
cell := hooks.TableCell{Text: hstring.RenderedHTML(text), Alignment: alignment}
cell := hooks.TableCell{Text: hstring.HTML(text), Alignment: alignment}
if node.Parent().Kind() == gast.KindTableHeader {
table.THead[len(table.THead)-1] = append(table.THead[len(table.THead)-1], cell)