mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-23 21:32:41 +08:00
change: Move from XHTML to HTML5
This commit is contained in:
parent
afd15a20db
commit
8e16f6f29c
@ -84,7 +84,6 @@ func CompileMarkdown(markdown []byte, stdlib *stdlib.Lib, path string, mermaidPr
|
||||
parser.WithAutoHeadingID(),
|
||||
),
|
||||
goldmark.WithRendererOptions(
|
||||
html.WithXHTML(),
|
||||
html.WithUnsafe(),
|
||||
))
|
||||
|
||||
|
2
pkg/mark/testdata/links-droph1.html
vendored
2
pkg/mark/testdata/links-droph1.html
vendored
@ -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&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 <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
|
||||
|
2
pkg/mark/testdata/links-stripnewlines.html
vendored
2
pkg/mark/testdata/links-stripnewlines.html
vendored
@ -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&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 <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
|
||||
|
2
pkg/mark/testdata/links.html
vendored
2
pkg/mark/testdata/links.html
vendored
@ -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&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 <a href="#fnref:1" class="footnote-backref" role="doc-backlink">↩︎</a></p>
|
||||
|
2
pkg/mark/testdata/newlines-droph1.html
vendored
2
pkg/mark/testdata/newlines-droph1.html
vendored
@ -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>
|
||||
|
@ -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>
|
||||
|
2
pkg/mark/testdata/newlines.html
vendored
2
pkg/mark/testdata/newlines.html
vendored
@ -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>
|
||||
|
14
pkg/mark/testdata/table-droph1.html
vendored
14
pkg/mark/testdata/table-droph1.html
vendored
@ -12,3 +12,17 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">HEADER1</th>
|
||||
<th style="text-align:right">HEADER2</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:center">row1</td>
|
||||
<td style="text-align:right">row2</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
14
pkg/mark/testdata/table-stripnewlines.html
vendored
14
pkg/mark/testdata/table-stripnewlines.html
vendored
@ -12,3 +12,17 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">HEADER1</th>
|
||||
<th style="text-align:right">HEADER2</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:center">row1</td>
|
||||
<td style="text-align:right">row2</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
14
pkg/mark/testdata/table.html
vendored
14
pkg/mark/testdata/table.html
vendored
@ -12,3 +12,17 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align:center">HEADER1</th>
|
||||
<th style="text-align:right">HEADER2</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:center">row1</td>
|
||||
<td style="text-align:right">row2</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
4
pkg/mark/testdata/table.md
vendored
4
pkg/mark/testdata/table.md
vendored
@ -1,3 +1,7 @@
|
||||
|HEADER1|HEADER2|
|
||||
|---|---|
|
||||
|row1|row2|
|
||||
|
||||
|HEADER1|HEADER2|
|
||||
|:---:|---:|
|
||||
|row1|row2|
|
||||
|
Loading…
x
Reference in New Issue
Block a user