change: Move back to XHTML

This commit is contained in:
Manuel Rüger 2023-10-23 21:03:57 +02:00
parent 40015ed86f
commit 04bf20c0a3
7 changed files with 10 additions and 6 deletions

View File

@ -78,6 +78,9 @@ func CompileMarkdown(markdown []byte, stdlib *stdlib.Lib, path string, mermaidPr
extension.GFM,
extension.Footnote,
extension.DefinitionList,
extension.NewTable(
extension.WithTableCellAlignMethod(extension.TableCellAlignStyle),
),
confluenceExtension,
),
goldmark.WithParserOptions(
@ -85,6 +88,7 @@ func CompileMarkdown(markdown []byte, stdlib *stdlib.Lib, path string, mermaidPr
),
goldmark.WithRendererOptions(
html.WithUnsafe(),
html.WithXHTML(),
))
var buf bytes.Buffer

View File

@ -8,7 +8,7 @@
<p><ac:image ac:alt="My External Image"><ri:url ri:value="http://confluence.atlassian.com/images/logo/confluence_48_trans.png?key1=value1&amp;key2=value2"/></ac:image></p>
<p>Use footnotes link <sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></p>
<div class="footnotes" role="doc-endnotes">
<hr>
<hr />
<ol>
<li id="fn:1">
<p>a footnote link&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>

View File

@ -8,7 +8,7 @@
<p><ac:image ac:alt="My External Image"><ri:url ri:value="http://confluence.atlassian.com/images/logo/confluence_48_trans.png?key1=value1&amp;key2=value2"/></ac:image></p>
<p>Use footnotes link <sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></p>
<div class="footnotes" role="doc-endnotes">
<hr>
<hr />
<ol>
<li id="fn:1">
<p>a footnote link&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>

View File

@ -8,7 +8,7 @@
<p><ac:image ac:alt="My External Image"><ri:url ri:value="http://confluence.atlassian.com/images/logo/confluence_48_trans.png?key1=value1&amp;key2=value2"/></ac:image></p>
<p>Use footnotes link <sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></p>
<div class="footnotes" role="doc-endnotes">
<hr>
<hr />
<ol>
<li id="fn:1">
<p>a footnote link&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>

View File

@ -6,5 +6,5 @@ one-2</p>
<p>three-2</p>
<p>space-1
space-2</p>
<p>2space-1<br>
<p>2space-1<br />
2space-2</p>

View File

@ -4,5 +4,5 @@
<p>three-1</p>
<p>three-2</p>
<p>space-1 space-2</p>
<p>2space-1<br>
<p>2space-1<br />
2space-2</p>

View File

@ -6,5 +6,5 @@ one-2</p>
<p>three-2</p>
<p>space-1
space-2</p>
<p>2space-1<br>
<p>2space-1<br />
2space-2</p>