feat: make hr tags self closing
This commit is contained in:
parent
6eb20dbda9
commit
3d00478629
4 changed files with 4 additions and 4 deletions
|
@ -226,7 +226,7 @@ func (w *HTMLWriter) WriteFootnotes(d *Document) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.WriteString(`<div class="footnotes">` + "\n")
|
w.WriteString(`<div class="footnotes">` + "\n")
|
||||||
w.WriteString(`<hr class="footnotes-separatator">` + "\n")
|
w.WriteString(`<hr class="footnotes-separatator"/>` + "\n")
|
||||||
w.WriteString(`<div class="footnote-definitions">` + "\n")
|
w.WriteString(`<div class="footnote-definitions">` + "\n")
|
||||||
for i, definition := range w.footnotes.list {
|
for i, definition := range w.footnotes.list {
|
||||||
id := i + 1
|
id := i + 1
|
||||||
|
|
2
org/testdata/footnotes.html
vendored
2
org/testdata/footnotes.html
vendored
|
@ -33,7 +33,7 @@ this is not part of <sup class="footnote-reference"><a id="footnote-reference-8"
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footnotes">
|
<div class="footnotes">
|
||||||
<hr class="footnotes-separatator">
|
<hr class="footnotes-separatator"/>
|
||||||
<div class="footnote-definitions">
|
<div class="footnote-definitions">
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
<sup id="footnote-1"><a href="#footnote-reference-1">1</a></sup>
|
<sup id="footnote-1"><a href="#footnote-reference-1">1</a></sup>
|
||||||
|
|
2
org/testdata/footnotes_in_headline.html
vendored
2
org/testdata/footnotes_in_headline.html
vendored
|
@ -10,7 +10,7 @@ Title <sup class="footnote-reference"><a id="footnote-reference-1" href="#footno
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="footnotes">
|
<div class="footnotes">
|
||||||
<hr class="footnotes-separatator">
|
<hr class="footnotes-separatator"/>
|
||||||
<div class="footnote-definitions">
|
<div class="footnote-definitions">
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
<sup id="footnote-1"><a href="#footnote-reference-1">1</a></sup>
|
<sup id="footnote-1"><a href="#footnote-reference-1">1</a></sup>
|
||||||
|
|
2
org/testdata/misc.html
vendored
2
org/testdata/misc.html
vendored
|
@ -574,7 +574,7 @@ Footnotes
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="footnotes">
|
<div class="footnotes">
|
||||||
<hr class="footnotes-separatator">
|
<hr class="footnotes-separatator"/>
|
||||||
<div class="footnote-definitions">
|
<div class="footnote-definitions">
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
<sup id="footnote-1"><a href="#footnote-reference-1">1</a></sup>
|
<sup id="footnote-1"><a href="#footnote-reference-1">1</a></sup>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue