html: Remove cosmetic whitespace inside p tags
All tags are put on a line by themselves to help with visual diffing. Apparently this extra cosmetic whitespace causes problems inside p tags for ppl who want to use `white-space: pre`. Not much hurt for visual diffing in removing cosmetic whitespace for just p tags and can't think of anything that would break because of this right now. So let's do it and wait for things to break.
This commit is contained in:
parent
30dd2794cf
commit
a383eef7a6
15 changed files with 216 additions and 577 deletions
7
blorg/testdata/public/about.html
vendored
7
blorg/testdata/public/about.html
vendored
|
@ -24,13 +24,10 @@
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<h1 class="title"><p>
|
<h1 class="title"><p>About</p>
|
||||||
About
|
|
||||||
</p>
|
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
and some content
|
and some content</p>
|
||||||
</p>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
4
blorg/testdata/public/post.html
vendored
4
blorg/testdata/public/post.html
vendored
|
@ -24,9 +24,7 @@
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<h1 class="title"><p>
|
<h1 class="title"><p>some post</p>
|
||||||
some post
|
|
||||||
</p>
|
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -411,11 +411,8 @@ func (w *HTMLWriter) WriteParagraph(p Paragraph) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
w.WriteString("<p>")
|
w.WriteString("<p>")
|
||||||
if _, ok := p.Children[0].(LineBreak); !ok {
|
|
||||||
w.WriteString("\n")
|
|
||||||
}
|
|
||||||
WriteNodes(w, p.Children...)
|
WriteNodes(w, p.Children...)
|
||||||
w.WriteString("\n</p>\n")
|
w.WriteString("</p>\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *HTMLWriter) WriteExample(e Example) {
|
func (w *HTMLWriter) WriteExample(e Example) {
|
||||||
|
|
77
org/testdata/blocks.html
vendored
77
org/testdata/blocks.html
vendored
|
@ -61,27 +61,18 @@ are also supported
|
||||||
note that /inline/ *markup* ignored
|
note that /inline/ *markup* ignored
|
||||||
</pre>
|
</pre>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
<p>Mongodb is <strong>webscale</strong>. (source: <a href="http://www.mongodb-is-web-scale.com/">mongodb-is-web-scale</a>)</p>
|
||||||
<p>
|
<p>
|
||||||
Mongodb is <strong>webscale</strong>. (source: <a href="http://www.mongodb-is-web-scale.com/">mongodb-is-web-scale</a>)
|
blocks like the quote block parse their content and can contain</p>
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
blocks like the quote block parse their content and can contain
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>lists</p>
|
||||||
lists
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>inline <em>markup</em></p>
|
||||||
inline <em>markup</em>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>tables</p>
|
||||||
tables
|
|
||||||
</p>
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -97,18 +88,13 @@ tables
|
||||||
</table>
|
</table>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>paragraphs</p>
|
||||||
paragraphs
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>…</p>
|
||||||
…
|
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
whitespace is honored and not removed (but is not displayed because that's how html works by default)
|
whitespace is honored and not removed (but is not displayed because that's how html works by default)
|
||||||
it can be made visible using css (e.g. <code class="verbatim">white-space: pre</code>).
|
it can be made visible using css (e.g. <code class="verbatim">white-space: pre</code>).</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
@ -135,31 +121,21 @@ console.log("Hello World!")
|
||||||
</script>
|
</script>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>list item 1
|
||||||
list item 1
|
blocks can contain unindented lines that would normally end a list item</p>
|
||||||
blocks can contain unindented lines that would normally end a list item
|
|
||||||
</p>
|
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
this line is not indented - if it was outside of a block the list item would end
|
this line is not indented - if it was outside of a block the list item would end
|
||||||
</pre>
|
</pre>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p>this line is not indented - if it was outside of a block the list item would end</p>
|
||||||
this line is not indented - if it was outside of a block the list item would end
|
|
||||||
</p>
|
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p>
|
<p>now we're outside the block again and the following unindented line will be outside of the list item</p>
|
||||||
now we're outside the block again and the following unindented line will be outside of the list item
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>this unindented line is outside of the list item</p>
|
||||||
this unindented line is outside of the list item
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>list item 2</p>
|
||||||
list item 2
|
|
||||||
</p>
|
|
||||||
<div class="src src-text">
|
<div class="src src-text">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -167,9 +143,7 @@ list item 2
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>#+END_EXAMPLE</p>
|
||||||
#+END_EXAMPLE
|
|
||||||
</p>
|
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
#+END_QUOTE
|
#+END_QUOTE
|
||||||
|
@ -177,14 +151,10 @@ list item 2
|
||||||
</blockquote>
|
</blockquote>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>verse blocks</p>
|
||||||
verse blocks
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>emacs / ox-hugo rendering</p>
|
||||||
emacs / ox-hugo rendering
|
|
||||||
</p>
|
|
||||||
<p class="verse">
|
<p class="verse">
|
||||||
Great clouds overhead<br />
|
Great clouds overhead<br />
|
||||||
Tiny black birds rise and fall<br />
|
Tiny black birds rise and fall<br />
|
||||||
|
@ -194,9 +164,7 @@ Snow covers Emacs<br />
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>go-org rendering</p>
|
||||||
go-org rendering
|
|
||||||
</p>
|
|
||||||
<div class="src src-html">
|
<div class="src src-html">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -212,14 +180,11 @@ go-org rendering
|
||||||
.verse-block p + p { margin: 0; }
|
.verse-block p + p { margin: 0; }
|
||||||
</style>
|
</style>
|
||||||
<div class="verse-block">
|
<div class="verse-block">
|
||||||
<p>
|
<p>Great clouds overhead
|
||||||
Great clouds overhead
|
|
||||||
Tiny black birds rise and fall
|
Tiny black birds rise and fall
|
||||||
Snow covers Emacs
|
Snow covers Emacs</p>
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
—AlexSchroeder
|
—AlexSchroeder</p>
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
13
org/testdata/captions.html
vendored
13
org/testdata/captions.html
vendored
|
@ -1,6 +1,4 @@
|
||||||
<p>
|
<p>Anything can be captioned.</p>
|
||||||
Anything can be captioned.
|
|
||||||
</p>
|
|
||||||
<figure>
|
<figure>
|
||||||
<div class="src src-sh">
|
<div class="src src-sh">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
|
@ -19,13 +17,10 @@ captioned link (image in this case)
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
<p>
|
<p>
|
||||||
note that the whole paragraph is captioned, so a linebreak is needed for images to caption correctly
|
note that the whole paragraph is captioned, so a linebreak is needed for images to caption correctly</p>
|
||||||
</p>
|
|
||||||
<figure>
|
<figure>
|
||||||
<p>
|
<p><img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" />
|
||||||
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" />
|
see?</p>
|
||||||
see?
|
|
||||||
</p>
|
|
||||||
<figcaption>
|
<figcaption>
|
||||||
captioned link (image in this case)
|
captioned link (image in this case)
|
||||||
</figcaption>
|
</figcaption>
|
||||||
|
|
77
org/testdata/footnotes.html
vendored
77
org/testdata/footnotes.html
vendored
|
@ -11,70 +11,47 @@ Using some footnotes
|
||||||
</h2>
|
</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>normal footnote reference <sup class="footnote-reference"><a id="footnote-reference-1" href="#footnote-1">1</a></sup> <sup class="footnote-reference"><a id="footnote-reference-2" href="#footnote-2">2</a></sup> <sup class="footnote-reference"><a id="footnote-reference-3" href="#footnote-3">3</a></sup> (footnote names can be anything in the format <code class="verbatim">[\w-]</code>)</p>
|
||||||
normal footnote reference <sup class="footnote-reference"><a id="footnote-reference-1" href="#footnote-1">1</a></sup> <sup class="footnote-reference"><a id="footnote-reference-2" href="#footnote-2">2</a></sup> <sup class="footnote-reference"><a id="footnote-reference-3" href="#footnote-3">3</a></sup> (footnote names can be anything in the format <code class="verbatim">[\w-]</code>)
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>further references to the same footnote should not <sup class="footnote-reference"><a id="footnote-reference-1" href="#footnote-1">1</a></sup> render duplicates in the footnote list</p>
|
||||||
further references to the same footnote should not <sup class="footnote-reference"><a id="footnote-reference-1" href="#footnote-1">1</a></sup> render duplicates in the footnote list
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>inline footnotes are also supported via <sup class="footnote-reference"><a id="footnote-reference-4" href="#footnote-4">4</a></sup>.</p>
|
||||||
inline footnotes are also supported via <sup class="footnote-reference"><a id="footnote-reference-4" href="#footnote-4">4</a></sup>.
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>anonymous inline footnotes are also supported via <sup class="footnote-reference"><a id="footnote-reference-5" href="#footnote-5">5</a></sup>.</p>
|
||||||
anonymous inline footnotes are also supported via <sup class="footnote-reference"><a id="footnote-reference-5" href="#footnote-5">5</a></sup>.
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>Footnote definitions are not printed where they appear.
|
||||||
Footnote definitions are not printed where they appear.
|
Rather, they are gathered and exported at the end of the document in the footnote section. <sup class="footnote-reference"><a id="footnote-reference-6" href="#footnote-6">6</a></sup></p>
|
||||||
Rather, they are gathered and exported at the end of the document in the footnote section. <sup class="footnote-reference"><a id="footnote-reference-6" href="#footnote-6">6</a></sup>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>footnotes that reference a non-existant definition are rendered but log a warning <sup class="footnote-reference"><a id="footnote-reference-7" href="#footnote-7">7</a></sup></p>
|
||||||
footnotes that reference a non-existant definition are rendered but log a warning <sup class="footnote-reference"><a id="footnote-reference-7" href="#footnote-7">7</a></sup>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2 id="headline-2">
|
<h2 id="headline-2">
|
||||||
Footnotes
|
Footnotes
|
||||||
</h2>
|
</h2>
|
||||||
|
<p>Please note that the footnotes section is not automatically excluded from the export like in emacs. <sup class="footnote-reference"><a id="footnote-reference-8" href="#footnote-8">8</a></sup></p>
|
||||||
<p>
|
<p>
|
||||||
Please note that the footnotes section is not automatically excluded from the export like in emacs. <sup class="footnote-reference"><a id="footnote-reference-8" href="#footnote-8">8</a></sup>
|
this is not part of <sup class="footnote-reference"><a id="footnote-reference-8" href="#footnote-8">8</a></sup> anymore as there are 2 blank lines in between!</p>
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
this is not part of <sup class="footnote-reference"><a id="footnote-reference-8" href="#footnote-8">8</a></sup> anymore as there are 2 blank lines in between!
|
|
||||||
</p>
|
|
||||||
<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>
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p><a href="https://www.example.com">https://www.example.com</a></p>
|
||||||
<a href="https://www.example.com">https://www.example.com</a>
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>footnotes can contain <strong>markup</strong></p>
|
||||||
footnotes can contain <strong>markup</strong>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>and other elements</p>
|
||||||
and other elements
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>like blocks</p>
|
||||||
like blocks
|
|
||||||
</p>
|
|
||||||
<div class="src src-text">
|
<div class="src src-text">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -84,9 +61,7 @@ other non-plain
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>and tables</p>
|
||||||
and tables
|
|
||||||
</p>
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -114,41 +89,32 @@ and tables
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>
|
||||||
Footnotes break after two consecutive empty lines - just like paragraphs - see <a href="https://orgmode.org/worg/dev/org-syntax.html.">https://orgmode.org/worg/dev/org-syntax.html.</a>
|
Footnotes break after two consecutive empty lines - just like paragraphs - see <a href="https://orgmode.org/worg/dev/org-syntax.html.">https://orgmode.org/worg/dev/org-syntax.html.</a>
|
||||||
This shouldn't happen when the definition line and the line after that are empty.
|
This shouldn't happen when the definition line and the line after that are empty.</p>
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
<sup id="footnote-3"><a href="#footnote-reference-3">3</a></sup>
|
<sup id="footnote-3"><a href="#footnote-reference-3">3</a></sup>
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>yolo</p>
|
||||||
yolo
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
<sup id="footnote-4"><a href="#footnote-reference-4">4</a></sup>
|
<sup id="footnote-4"><a href="#footnote-reference-4">4</a></sup>
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>the inline footnote definition</p>
|
||||||
the inline footnote definition
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
<sup id="footnote-5"><a href="#footnote-reference-5">5</a></sup>
|
<sup id="footnote-5"><a href="#footnote-reference-5">5</a></sup>
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>the anonymous inline footnote definition</p>
|
||||||
the anonymous inline footnote definition
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
<sup id="footnote-6"><a href="#footnote-reference-6">6</a></sup>
|
<sup id="footnote-6"><a href="#footnote-reference-6">6</a></sup>
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>so this definition will not be at the end of this section in the exported document.
|
||||||
so this definition will not be at the end of this section in the exported document.
|
Rather, it will be somewhere down below in the footnotes section.</p>
|
||||||
Rather, it will be somewhere down below in the footnotes section.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
|
@ -156,8 +122,7 @@ Rather, it will be somewhere down below in the footnotes section.
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>
|
||||||
There's multiple reasons for that. Among others, doing so requires i18n (to recognize the section) and silently
|
There's multiple reasons for that. Among others, doing so requires i18n (to recognize the section) and silently
|
||||||
hides content before and after the footnotes.
|
hides content before and after the footnotes.</p>
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
26
org/testdata/footnotes_in_headline.html
vendored
26
org/testdata/footnotes_in_headline.html
vendored
|
@ -13,32 +13,22 @@ Title <sup class="footnote-reference"><a id="footnote-reference-1" href="#footno
|
||||||
<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>
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>this test file just exists to reproduce a bug with footnotes in headlines - that only happens in very specific circumstances.
|
||||||
this test file just exists to reproduce a bug with footnotes in headlines - that only happens in very specific circumstances.
|
The TLDR is:</p>
|
||||||
The TLDR is:
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>HTMLWriter.footnotes should be a pointer field. I didn't notice my error as go translated my pointer-method calls on
|
||||||
HTMLWriter.footnotes should be a pointer field. I didn't notice my error as go translated my pointer-method calls on
|
non-pointer values rather than complaining - i.e. <code class="verbatim">footnotes.add()</code> transparently gets translated to <code class="verbatim">(&footnotes).add()</code> (<a href="https://golang.org/ref/spec#Calls">docs</a>).</p>
|
||||||
non-pointer values rather than complaining - i.e. <code class="verbatim">footnotes.add()</code> transparently gets translated to <code class="verbatim">(&footnotes).add()</code> (<a href="https://golang.org/ref/spec#Calls">docs</a>).
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>Headlines have to be htmlified twice - once for the outline and once for the headline itself. To do so we have to copy the writer</p>
|
||||||
Headlines have to be htmlified twice - once for the outline and once for the headline itself. To do so we have to copy the writer
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>Copying the writer copies footnotes - which contains a map and a slice. Changes to the map will always be reflected in the original map.
|
||||||
Copying the writer copies footnotes - which contains a map and a slice. Changes to the map will always be reflected in the original map.
|
Changes to the slice will only be reflected if the slice doesn't grow.</p>
|
||||||
Changes to the slice will only be reflected if the slice doesn't grow.
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>We can thus end up with a footnote being in the mapping but not the slice - and get an index out of range error.</p>
|
||||||
We can thus end up with a footnote being in the mapping but not the slice - and get an index out of range error.
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
53
org/testdata/headlines.html
vendored
53
org/testdata/headlines.html
vendored
|
@ -23,21 +23,15 @@ Simple Headline <code class="statistic">[1/2]</code>
|
||||||
</h2>
|
</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="checked">
|
<li class="checked">
|
||||||
<p>
|
<p>checked</p>
|
||||||
checked
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li class="unchecked">
|
<li class="unchecked">
|
||||||
<p>
|
<p>unchecked</p>
|
||||||
unchecked
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>note that statistic tokens are marked up anywhere
|
||||||
note that statistic tokens are marked up anywhere
|
|
||||||
not just where they are actually meant to be - even here > <code class="statistic">[100%]</code> <
|
not just where they are actually meant to be - even here > <code class="statistic">[100%]</code> <
|
||||||
(Org mode proper does the same)
|
(Org mode proper does the same)</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2 id="headline-2">
|
<h2 id="headline-2">
|
||||||
|
@ -50,28 +44,19 @@ Headline with todo status & priority
|
||||||
Headline with TODO status
|
Headline with TODO status
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>
|
||||||
we can link to headlines that define a custom_id: <a href="#this-will-be-the-id-of-the-headline">#this-will-be-the-id-of-the-headline</a>
|
we can link to headlines that define a custom_id: <a href="#this-will-be-the-id-of-the-headline">#this-will-be-the-id-of-the-headline</a></p>
|
||||||
</p>
|
|
||||||
<h2 id="headline-4">
|
<h2 id="headline-4">
|
||||||
<span class="priority">[A]</span>
|
<span class="priority">[A]</span>
|
||||||
Headline with tags & priority   <span class="tags"><span>foo</span> <span>bar</span></span>
|
Headline with tags & priority   <span class="tags"><span>foo</span> <span>bar</span></span>
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>Still outside the drawer</p>
|
||||||
Still outside the drawer
|
<p>This is inside the drawer</p>
|
||||||
</p>
|
<p>Still outside the drawer</p>
|
||||||
<p>
|
|
||||||
This is inside the drawer
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Still outside the drawer
|
|
||||||
</p>
|
|
||||||
<h2 id="headline-5">
|
<h2 id="headline-5">
|
||||||
<span class="todo">CUSTOM</span>
|
<span class="todo">CUSTOM</span>
|
||||||
headline with custom status
|
headline with custom status
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this case the setup file contains the following</p>
|
||||||
it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this case the setup file contains the following
|
|
||||||
</p>
|
|
||||||
<div class="src src-org">
|
<div class="src src-org">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -83,20 +68,14 @@ it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this cas
|
||||||
<h2 id="headline-7">
|
<h2 id="headline-7">
|
||||||
malformed property drawer
|
malformed property drawer
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>:PROPERTIES:
|
||||||
:PROPERTIES:
|
not a property</p>
|
||||||
not a property
|
<p>:END:</p>
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
:END:
|
|
||||||
</p>
|
|
||||||
<h2 id="headline-8">
|
<h2 id="headline-8">
|
||||||
level limit for headlines to be included in the table of contents
|
level limit for headlines to be included in the table of contents
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p>The toc option allows setting a <a href="https://orgmode.org/manual/Export-settings.html">level limit</a>. For this file we set it to 1 - which means that the following headlines
|
||||||
The toc option allows setting a <a href="https://orgmode.org/manual/Export-settings.html">level limit</a>. For this file we set it to 1 - which means that the following headlines
|
won't be included in the table of contents.</p>
|
||||||
won't be included in the table of contents.
|
|
||||||
</p>
|
|
||||||
<h3 id="headline-9">
|
<h3 id="headline-9">
|
||||||
headline 2 not in toc
|
headline 2 not in toc
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -106,6 +85,4 @@ headline 3 not in toc
|
||||||
<h3 id="headline-11">
|
<h3 id="headline-11">
|
||||||
anoter headline 2 not in toc
|
anoter headline 2 not in toc
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
<p>you get the gist…</p>
|
||||||
you get the gist…
|
|
||||||
</p>
|
|
||||||
|
|
135
org/testdata/inline.html
vendored
135
org/testdata/inline.html
vendored
|
@ -1,181 +1,116 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><em>emphasis</em> and a hard line break <br>
|
||||||
<em>emphasis</em> and a hard line break <br>
|
|
||||||
see? <br>
|
see? <br>
|
||||||
also hard line breaks not followed by a newline get ignored, see \\
|
also hard line breaks not followed by a newline get ignored, see \\</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><em>.emphasis with dot border chars.</em></p>
|
||||||
<em>.emphasis with dot border chars.</em>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><em>emphasis with a slash/inside</em></p>
|
||||||
<em>emphasis with a slash/inside</em>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><em>emphasis</em> followed by raw text with slash /</p>
|
||||||
<em>emphasis</em> followed by raw text with slash /
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>->/not an emphasis/<-</p>
|
||||||
->/not an emphasis/<-
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>links with slashes do not become <em>emphasis</em>: <a href="https://somelinkshouldntrenderaccidentalemphasis.com">https://somelinkshouldntrenderaccidentalemphasis.com</a>/ <em>emphasis</em></p>
|
||||||
links with slashes do not become <em>emphasis</em>: <a href="https://somelinkshouldntrenderaccidentalemphasis.com">https://somelinkshouldntrenderaccidentalemphasis.com</a>/ <em>emphasis</em>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><span style="text-decoration: underline;">underlined</span> <strong>bold</strong> <code class="verbatim">verbatim</code> <code>code</code> <del>strikethrough</del></p>
|
||||||
<span style="text-decoration: underline;">underlined</span> <strong>bold</strong> <code class="verbatim">verbatim</code> <code>code</code> <del>strikethrough</del>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><strong>bold string with an *asterisk inside</strong></p>
|
||||||
<strong>bold string with an *asterisk inside</strong>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>inline source blocks like <div class="src src-inline src-html">
|
||||||
inline source blocks like <div class="src src-inline src-html">
|
|
||||||
<div class="highlight-inline">
|
<div class="highlight-inline">
|
||||||
<pre>
|
<pre>
|
||||||
<h1>hello</h1>
|
<h1>hello</h1>
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div></p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>inline export blocks <h1>hello</h1></p>
|
||||||
inline export blocks <h1>hello</h1>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><code class="verbatim">multiline emphasis is
|
||||||
<code class="verbatim">multiline emphasis is
|
|
||||||
supported - and respects MaxEmphasisNewLines (default: 1)</code>
|
supported - and respects MaxEmphasisNewLines (default: 1)</code>
|
||||||
<em>so this
|
<em>so this
|
||||||
is emphasized</em>
|
is emphasized</em></p>
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
/but
|
/but
|
||||||
this
|
this
|
||||||
is
|
is
|
||||||
not emphasized/
|
not emphasized/</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>empty emphasis markers like ++ // __ and so on are ignored</p>
|
||||||
empty emphasis markers like ++ // __ and so on are ignored
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>use _{} for subscript<sub>sub</sub> and ^{} for superscript<sup>super</sup></p>
|
||||||
use _{} for subscript<sub>sub</sub> and ^{} for superscript<sup>super</sup>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>links</p>
|
||||||
links
|
|
||||||
</p>
|
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>regular link <a href="https://example.com">https://example.com</a> link without description</p>
|
||||||
regular link <a href="https://example.com">https://example.com</a> link without description
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>regular link <a href="https://example.com">example.com</a> link with description</p>
|
||||||
regular link <a href="https://example.com">example.com</a> link with description
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>regular link to a file (image) <img src="my-img.png" alt="my-img.png" title="my-img.png" /></p>
|
||||||
regular link to a file (image) <img src="my-img.png" alt="my-img.png" title="my-img.png" />
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>regular link to a file (video) <video src="my-video.mp4" title="my-video.mp4">my-video.mp4</video></p>
|
||||||
regular link to a file (video) <video src="my-video.mp4" title="my-video.mp4">my-video.mp4</video>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>regular link to http (image) <img src="http://placekitten.com/200/200#.png" alt="http://placekitten.com/200/200#.png" title="http://placekitten.com/200/200#.png" /></p>
|
||||||
regular link to http (image) <img src="http://placekitten.com/200/200#.png" alt="http://placekitten.com/200/200#.png" title="http://placekitten.com/200/200#.png" />
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>regular link to https (image) <img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" /></p>
|
||||||
regular link to https (image) <img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" />
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>regular link enclosed in [] [<a href="https://www.example.com">https://www.example.com</a>] [<a href="https://www.example.com">example.com</a>]</p>
|
||||||
regular link enclosed in [] [<a href="https://www.example.com">https://www.example.com</a>] [<a href="https://www.example.com">example.com</a>]
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>auto link, i.e. not inside <code class="verbatim">\[[square brackets]\]</code> <a href="https://www.example.com">https://www.example.com</a></p>
|
||||||
auto link, i.e. not inside <code class="verbatim">\[[square brackets]\]</code> <a href="https://www.example.com">https://www.example.com</a>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>timestamps</p>
|
||||||
timestamps
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><span class="timestamp"><2019-01-06 Sun></span></p>
|
||||||
<span class="timestamp"><2019-01-06 Sun></span>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><span class="timestamp"><2019-01-06 Sun></span></p>
|
||||||
<span class="timestamp"><2019-01-06 Sun></span>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><span class="timestamp"><2019-01-06 Sun 18:00></span></p>
|
||||||
<span class="timestamp"><2019-01-06 Sun 18:00></span>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><span class="timestamp"><2019-01-06 Sun 18:00 +1w></span></p>
|
||||||
<span class="timestamp"><2019-01-06 Sun 18:00 +1w></span>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><span class="timestamp"><2019-01-06 Sun 18:00></span></p>
|
||||||
<span class="timestamp"><2019-01-06 Sun 18:00></span>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><span class="timestamp"><2019-01-06 Sun 18:00 +1w></span></p>
|
||||||
<span class="timestamp"><2019-01-06 Sun 18:00 +1w></span>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><code class="verbatim">#+LINK</code> based links: <a href="https://www.example.com/foobar">https://www.example.com/foobar</a></p>
|
||||||
<code class="verbatim">#+LINK</code> based links: <a href="https://www.example.com/foobar">https://www.example.com/foobar</a>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><code class="verbatim">#+MACROs</code>: <p><h1>yolo</h1></p>
|
||||||
<code class="verbatim">#+MACROs</code>: <p>
|
|
||||||
<h1>yolo</h1>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
7
org/testdata/keywords.html
vendored
7
org/testdata/keywords.html
vendored
|
@ -10,17 +10,14 @@ and <span style="text-decoration: underline;">multiple</span> lines of <strong>c
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
<p>
|
<p>
|
||||||
and an image with custom html attributes and a caption
|
and an image with custom html attributes and a caption</p>
|
||||||
</p>
|
|
||||||
<figure>
|
<figure>
|
||||||
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" style="height: 100%; border: 10px solid black;" id="kittens"/>
|
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" style="height: 100%; border: 10px solid black;" id="kittens"/>
|
||||||
<figcaption>
|
<figcaption>
|
||||||
kittens!
|
kittens!
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
<p>
|
<p>named paragraph</p>
|
||||||
named paragraph
|
|
||||||
</p>
|
|
||||||
<div class="src src-text">
|
<div class="src src-text">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
|
36
org/testdata/latex.html
vendored
36
org/testdata/latex.html
vendored
|
@ -1,43 +1,27 @@
|
||||||
<p>
|
<p>without latex delimiters the <code class="verbatim">_{i=1}</code> in <code class="verbatim">\sum_{i=1}^n a_n</code> is interpreted as subscript.
|
||||||
without latex delimiters the <code class="verbatim">_{i=1}</code> in <code class="verbatim">\sum_{i=1}^n a_n</code> is interpreted as subscript.
|
we support <code class="verbatim">\(...\)</code>, <code class="verbatim">\[...\]</code>, <code class="verbatim">$$...$$</code> and <code class="verbatim">\begin{$env}...\end{$env}</code> as latex fragment delimiters.</p>
|
||||||
we support <code class="verbatim">\(...\)</code>, <code class="verbatim">\[...\]</code>, <code class="verbatim">$$...$$</code> and <code class="verbatim">\begin{$env}...\end{$env}</code> as latex fragment delimiters.
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>∑<sub>i=1</sub>^n a_n (without latex delimiter)</p>
|
||||||
∑<sub>i=1</sub>^n a_n (without latex delimiter)
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>\(\sum_{i=1}^n a_n\)</p>
|
||||||
\(\sum_{i=1}^n a_n\)
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>\[\sum_{i=1}^n a_n\]</p>
|
||||||
\[\sum_{i=1}^n a_n\]
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>$$\sum_{i=1}^n a_n$$</p>
|
||||||
$$\sum_{i=1}^n a_n$$
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>\begin{xyz}\sum_{i=1}^n a_n\end{xyz}</p>
|
||||||
\begin{xyz}\sum_{i=1}^n a_n\end{xyz}
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>\begin{xyz}
|
||||||
\begin{xyz}
|
|
||||||
\sum_{i=1}^n a_n
|
\sum_{i=1}^n a_n
|
||||||
\end{xyz}
|
\end{xyz}</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>$2 + 2$, $3 - 3$</p>
|
||||||
$2 + 2$, $3 - 3$
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
142
org/testdata/lists.html
vendored
142
org/testdata/lists.html
vendored
|
@ -1,64 +1,44 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li class="unchecked">
|
<li class="unchecked">
|
||||||
<p>
|
<p>unordered list item 1</p>
|
||||||
unordered list item 1
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
list item with empty first and second line <br>
|
list item with empty first and second line <br>
|
||||||
normally an empty line breaks the list item - but we make an exception for the first line and don't count it towards that limit
|
normally an empty line breaks the list item - but we make an exception for the first line and don't count it towards that limit</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>unordered list item 2 - with <code>inline</code> <em>markup</em></p>
|
||||||
unordered list item 2 - with <code>inline</code> <em>markup</em>
|
|
||||||
</p>
|
|
||||||
<ol>
|
<ol>
|
||||||
<li class="indeterminate">
|
<li class="indeterminate">
|
||||||
<p>
|
<p>ordered sublist item 1</p>
|
||||||
ordered sublist item 1
|
|
||||||
</p>
|
|
||||||
<ol>
|
<ol>
|
||||||
<li class="checked">
|
<li class="checked">
|
||||||
<p>
|
<p>ordered sublist item 1</p>
|
||||||
ordered sublist item 1
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li class="unchecked">
|
<li class="unchecked">
|
||||||
<p>
|
<p>ordered sublist item 2</p>
|
||||||
ordered sublist item 2
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li class="checked">
|
<li class="checked">
|
||||||
<p>
|
<p>ordered sublist item 3</p>
|
||||||
ordered sublist item 3
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ordered sublist item 2</p>
|
||||||
ordered sublist item 2
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
list item with empty first and second line - see above
|
list item with empty first and second line - see above</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li class="checked">
|
<li class="checked">
|
||||||
<p>
|
<p>unordered list item 3 - and a <a href="https://example.com">link</a>
|
||||||
unordered list item 3 - and a <a href="https://example.com">link</a>
|
and some lines of text</p>
|
||||||
and some lines of text
|
|
||||||
</p>
|
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>and another subitem</p>
|
||||||
and another subitem
|
|
||||||
</p>
|
|
||||||
<div class="src src-sh">
|
<div class="src src-sh">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -68,9 +48,7 @@ echo with a block
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>and another one with a table</p>
|
||||||
and another one with a table
|
|
||||||
</p>
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -88,15 +66,12 @@ and another one with a table
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p>
|
<p>
|
||||||
and text with an empty line in between as well!
|
and text with an empty line in between as well!</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>unordered list item 4</p>
|
||||||
unordered list item 4
|
|
||||||
</p>
|
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
with an example
|
with an example
|
||||||
|
|
||||||
|
@ -105,33 +80,27 @@ that spans multiple lines
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
descriptive lists
|
descriptive lists</p>
|
||||||
</p>
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt class="unchecked">
|
<dt class="unchecked">
|
||||||
term
|
term
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>details
|
||||||
details
|
continued details</p>
|
||||||
continued details
|
|
||||||
</p>
|
|
||||||
</dd>
|
</dd>
|
||||||
<dt class="unchecked">
|
<dt class="unchecked">
|
||||||
?
|
?
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>details without a term</p>
|
||||||
details without a term
|
|
||||||
</p>
|
|
||||||
</dd>
|
</dd>
|
||||||
<dt class="checked">
|
<dt class="checked">
|
||||||
term
|
term
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
details on a new line
|
details on a new line</p>
|
||||||
</p>
|
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
term
|
term
|
||||||
|
@ -139,8 +108,7 @@ term
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
details on a new line (with an empty line in between)
|
details on a new line (with an empty line in between)
|
||||||
<strong>continued</strong>
|
<strong>continued</strong></p>
|
||||||
</p>
|
|
||||||
<div class="src src-bash">
|
<div class="src src-bash">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -150,67 +118,45 @@ echo "Hello World!"
|
||||||
</div>
|
</div>
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<p>
|
<p>some list termination tests</p>
|
||||||
some list termination tests
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>unordered 1</p>
|
||||||
unordered 1
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>unordered 2</p>
|
||||||
unordered 2
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ordered 1</p>
|
||||||
ordered 1
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ordered 2</p>
|
||||||
ordered 2
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ordered 1</p>
|
||||||
ordered 1
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ordered 2</p>
|
||||||
ordered 2
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>unordered 1</p>
|
||||||
unordered 1
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>unordered 2</p>
|
||||||
unordered 2
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ordered 1</p>
|
||||||
ordered 1
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ordered 2</p>
|
||||||
ordered 2
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<dl>
|
<dl>
|
||||||
|
@ -218,17 +164,13 @@ ordered 2
|
||||||
unordered descriptive
|
unordered descriptive
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>1</p>
|
||||||
1
|
|
||||||
</p>
|
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
unordered descriptive
|
unordered descriptive
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>2</p>
|
||||||
2
|
|
||||||
</p>
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl>
|
<dl>
|
||||||
|
@ -236,28 +178,20 @@ unordered descriptive
|
||||||
ordered descriptive
|
ordered descriptive
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>1</p>
|
||||||
1
|
|
||||||
</p>
|
|
||||||
</dd>
|
</dd>
|
||||||
<dt>
|
<dt>
|
||||||
ordered descriptive
|
ordered descriptive
|
||||||
</dt>
|
</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>2</p>
|
||||||
2
|
|
||||||
</p>
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>unordered 1</p>
|
||||||
unordered 1
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>unordered 2</p>
|
||||||
unordered 2
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
195
org/testdata/misc.html
vendored
195
org/testdata/misc.html
vendored
|
@ -1,6 +1,4 @@
|
||||||
<h1 class="title"><p>
|
<h1 class="title"><p>Misc title <b>with an inline html export</b></p>
|
||||||
Misc title <b>with an inline html export</b>
|
|
||||||
</p>
|
|
||||||
</h1>
|
</h1>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -93,43 +91,32 @@ issues from goorgeous (free test cases, yay!)
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/29">#29:</a> Support verse block
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/29">#29:</a> Support verse block
|
||||||
</h4>
|
</h4>
|
||||||
<div class="verse-block">
|
<div class="verse-block">
|
||||||
<p>
|
<p>This
|
||||||
This
|
|
||||||
<strong>is</strong>
|
<strong>is</strong>
|
||||||
verse
|
verse</p>
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="custom-block">
|
<div class="custom-block">
|
||||||
<p>
|
<p>or even a <strong>totally</strong> <em>custom</em> kind of block
|
||||||
or even a <strong>totally</strong> <em>custom</em> kind of block
|
crazy ain't it?</p>
|
||||||
crazy ain't it?
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<h4 id="headline-4">
|
<h4 id="headline-4">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/30">#30</a>: Support #+SETUPFILE
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/30">#30</a>: Support #+SETUPFILE
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>see <code class="verbatim">./headlines.org</code></p>
|
||||||
see <code class="verbatim">./headlines.org</code>
|
|
||||||
</p>
|
|
||||||
<h4 id="headline-5">
|
<h4 id="headline-5">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/31">#31</a>: Support #+INCLUDE
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/31">#31</a>: Support #+INCLUDE
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>Note that only src/example/export block inclusion is supported for now.
|
||||||
Note that only src/example/export block inclusion is supported for now.
|
|
||||||
There's quite a lot more to include (see the <a href="https://orgmode.org/manual/Include-files.html">org manual for include files</a>) but I
|
There's quite a lot more to include (see the <a href="https://orgmode.org/manual/Include-files.html">org manual for include files</a>) but I
|
||||||
don't have a use case for this yet and stuff like namespacing footnotes of included files
|
don't have a use case for this yet and stuff like namespacing footnotes of included files
|
||||||
adds quite a bit of complexity.
|
adds quite a bit of complexity.</p>
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
for now files can be included as:
|
for now files can be included as:</p>
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>src block</p>
|
||||||
src block
|
|
||||||
</p>
|
|
||||||
<div class="src src-org">
|
<div class="src src-org">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -179,28 +166,20 @@ you get the gist...
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>export block</p>
|
||||||
export block
|
<p>Paragraphs are the default element.</p>
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Paragraphs are the default element.
|
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
Empty lines and other elements end paragraphs - but paragraphs
|
Empty lines and other elements end paragraphs - but paragraphs
|
||||||
can
|
can
|
||||||
obviously
|
obviously
|
||||||
span
|
span
|
||||||
multiple
|
multiple
|
||||||
lines.
|
lines.</p>
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
Paragraphs can contain inline markup like <em>emphasis</em> <strong>strong</strong> and links <a href="https://www.example.com">example.com</a> and stuff.
|
Paragraphs can contain inline markup like <em>emphasis</em> <strong>strong</strong> and links <a href="https://www.example.com">example.com</a> and stuff.</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>example block</p>
|
||||||
example block
|
|
||||||
</p>
|
|
||||||
<pre class="example">
|
<pre class="example">
|
||||||
language: go
|
language: go
|
||||||
go: "1.x"
|
go: "1.x"
|
||||||
|
@ -247,73 +226,53 @@ deploy:
|
||||||
</h4>
|
</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ndash –</p>
|
||||||
ndash –
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>mdash —</p>
|
||||||
mdash —
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>ellipsis …</p>
|
||||||
ellipsis …
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>acute Á and so on</p>
|
||||||
acute Á and so on
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>note that —— is replaced with 2 mdashes and …. becomes ellipsis+. and so on - that's how org also does it</p>
|
||||||
note that —— is replaced with 2 mdashes and …. becomes ellipsis+. and so on - that's how org also does it
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h4 id="headline-9">
|
<h4 id="headline-9">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/47">#47:</a> Consecutive <code>code</code> wrapped text gets joined
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/47">#47:</a> Consecutive <code>code</code> wrapped text gets joined
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>either <code>this</code> or <code>that</code> foo.
|
||||||
either <code>this</code> or <code>that</code> foo.
|
|
||||||
either <code>this</code>
|
either <code>this</code>
|
||||||
or <code>that</code> foo.
|
or <code>that</code> foo.</p>
|
||||||
</p>
|
|
||||||
<h4 id="headline-10">
|
<h4 id="headline-10">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/50">#50</a>: LineBreaks in lists are preserved
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/50">#50</a>: LineBreaks in lists are preserved
|
||||||
</h4>
|
</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>this list item
|
||||||
this list item
|
|
||||||
has
|
has
|
||||||
multiple
|
multiple
|
||||||
linbreaks - but it's still just one paragraph (i.e. no line breaks are rendered)
|
linbreaks - but it's still just one paragraph (i.e. no line breaks are rendered)</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>foobar</p>
|
||||||
foobar
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>same
|
||||||
same
|
|
||||||
goes
|
goes
|
||||||
for
|
for
|
||||||
ordered
|
ordered
|
||||||
lists
|
lists</p>
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>foo</p>
|
||||||
foo
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<h4 id="headline-11">
|
<h4 id="headline-11">
|
||||||
|
@ -321,9 +280,7 @@ foo
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/68">#68</a>: Quote block with inline markup
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/68">#68</a>: Quote block with inline markup
|
||||||
</h4>
|
</h4>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>
|
<p><a href="https://www.example.com"><em>this</em> <strong>is</strong> <span style="text-decoration: underline;">markup</span>!</a></p>
|
||||||
<a href="https://www.example.com"><em>this</em> <strong>is</strong> <span style="text-decoration: underline;">markup</span>!</a>
|
|
||||||
</p>
|
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<h4 id="headline-12">
|
<h4 id="headline-12">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
|
@ -336,14 +293,10 @@ foo
|
||||||
</h4>
|
</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>bullet 1</p>
|
||||||
bullet 1
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>sub bullet</p>
|
||||||
sub bullet
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
@ -356,13 +309,10 @@ sub bullet
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/78">#78</a>: Emphasis at beginning of line
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/78">#78</a>: Emphasis at beginning of line
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p><em>italics</em></p>
|
||||||
<em>italics</em>
|
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
Text
|
Text
|
||||||
<em>italics</em>
|
<em>italics</em></p>
|
||||||
</p>
|
|
||||||
<h4 id="headline-16">
|
<h4 id="headline-16">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/82">#82</a>: Crash on empty headline
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/82">#82</a>: Crash on empty headline
|
||||||
|
@ -370,9 +320,7 @@ Text
|
||||||
<h5 id="headline-17">
|
<h5 id="headline-17">
|
||||||
|
|
||||||
</h5>
|
</h5>
|
||||||
<p>
|
<p>just a space as title…</p>
|
||||||
just a space as title…
|
|
||||||
</p>
|
|
||||||
<h4 id="headline-18">
|
<h4 id="headline-18">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/84">#84</a>: Paragraphs that are not followed by an empty line are not parsed correctly
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/84">#84</a>: Paragraphs that are not followed by an empty line are not parsed correctly
|
||||||
|
@ -380,47 +328,31 @@ just a space as title…
|
||||||
<h5 id="headline-19">
|
<h5 id="headline-19">
|
||||||
Foo
|
Foo
|
||||||
</h5>
|
</h5>
|
||||||
<p>
|
<p>Foo paragraph.</p>
|
||||||
Foo paragraph.
|
|
||||||
</p>
|
|
||||||
<h5 id="headline-20">
|
<h5 id="headline-20">
|
||||||
Bar
|
Bar
|
||||||
</h5>
|
</h5>
|
||||||
<p>
|
<p>Bar paragraph</p>
|
||||||
Bar paragraph
|
|
||||||
</p>
|
|
||||||
<h4 id="headline-21">
|
<h4 id="headline-21">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/86">#86</a>: Multiple hyphens not converted to dashes
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/86">#86</a>: Multiple hyphens not converted to dashes
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>just like #46</p>
|
||||||
just like #46
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><code class="verbatim">--</code> -> – (en dash)</p>
|
||||||
<code class="verbatim">--</code> -> – (en dash)
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p><code class="verbatim">---</code> -> — (em dash)</p>
|
||||||
<code class="verbatim">---</code> -> — (em dash)
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>also, consecutive dashes inside</p>
|
||||||
also, consecutive dashes inside
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>inline code <code class="verbatim">--</code> <code class="verbatim">---</code> and verbatim <code>--</code> <code>---</code></p>
|
||||||
inline code <code class="verbatim">--</code> <code class="verbatim">---</code> and verbatim <code>--</code> <code>---</code>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>src/example/export blocks should not be converted!</p>
|
||||||
src/example/export blocks should not be converted!
|
|
||||||
</p>
|
|
||||||
<div class="src src-sh">
|
<div class="src src-sh">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -441,21 +373,15 @@ src/example/export blocks should not be converted!
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/87">#87</a>: Markup in footnotes is rendered literally
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/87">#87</a>: Markup in footnotes is rendered literally
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>footnotes can contain <strong>markup</strong> - and other elements and stuff <sup class="footnote-reference"><a id="footnote-reference-1" href="#footnote-1">1</a></sup> <sup class="footnote-reference"><a id="footnote-reference-2" href="#footnote-2">2</a></sup></p>
|
||||||
footnotes can contain <strong>markup</strong> - and other elements and stuff <sup class="footnote-reference"><a id="footnote-reference-1" href="#footnote-1">1</a></sup> <sup class="footnote-reference"><a id="footnote-reference-2" href="#footnote-2">2</a></sup>
|
|
||||||
</p>
|
|
||||||
<h4 id="headline-23">
|
<h4 id="headline-23">
|
||||||
<span class="todo">DONE</span>
|
<span class="todo">DONE</span>
|
||||||
<a href="https://github.com/chaseadamsio/goorgeous/issues/92">#92</a>: src blocks only render in caps
|
<a href="https://github.com/chaseadamsio/goorgeous/issues/92">#92</a>: src blocks only render in caps
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>The behaviour of Org mode <code class="verbatim"><s TAB</code> changed and it now inserts lowercased src blocks (go-org already handled this one)</p>
|
||||||
The behaviour of Org mode <code class="verbatim"><s TAB</code> changed and it now inserts lowercased src blocks (go-org already handled this one)
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>lowercased:</p>
|
||||||
lowercased:
|
|
||||||
</p>
|
|
||||||
<div class="src src-bash">
|
<div class="src src-bash">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -465,9 +391,7 @@ uname -a
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>uppercased</p>
|
||||||
uppercased
|
|
||||||
</p>
|
|
||||||
<div class="src src-bash">
|
<div class="src src-bash">
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -483,12 +407,9 @@ issues (wrongly) filed with hugo
|
||||||
<h4 id="headline-25">
|
<h4 id="headline-25">
|
||||||
<a href="https://github.com/gohugoio/hugo/issues/3874">#3874</a> exporting images in org mode
|
<a href="https://github.com/gohugoio/hugo/issues/3874">#3874</a> exporting images in org mode
|
||||||
</h4>
|
</h4>
|
||||||
|
<p>Hello, I'm writing hugo blogs using org-mode.</p>
|
||||||
<p>
|
<p>
|
||||||
Hello, I'm writing hugo blogs using org-mode.
|
When inserting an image link like <img src="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" alt="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" title="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" />, hugo doesn't export the image.</p>
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
When inserting an image link like <img src="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" alt="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" title="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" />, hugo doesn't export the image.
|
|
||||||
</p>
|
|
||||||
<h4 id="headline-26">
|
<h4 id="headline-26">
|
||||||
<a href="https://github.com/gohugoio/hugo/issues/4006">#4006</a> source code blocks in org not rendered correctly
|
<a href="https://github.com/gohugoio/hugo/issues/4006">#4006</a> source code blocks in org not rendered correctly
|
||||||
</h4>
|
</h4>
|
||||||
|
@ -516,9 +437,7 @@ index out of range in headline priority parsing
|
||||||
<h4 id="headline-30">
|
<h4 id="headline-30">
|
||||||
index out of range in explicit line break parsing
|
index out of range in explicit line break parsing
|
||||||
</h4>
|
</h4>
|
||||||
<p>
|
<p>0\\ </p>
|
||||||
0\\
|
|
||||||
</p>
|
|
||||||
<h2 id="headline-31">
|
<h2 id="headline-31">
|
||||||
Footnotes
|
Footnotes
|
||||||
</h2>
|
</h2>
|
||||||
|
@ -528,19 +447,13 @@ Footnotes
|
||||||
<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>
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>a footnote <em>with</em> <strong>markup</strong></p>
|
||||||
a footnote <em>with</em> <strong>markup</strong>
|
|
||||||
</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>and a <strong>list</strong></p>
|
||||||
and a <strong>list</strong>
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<p>
|
<p>because that's possible</p>
|
||||||
because that's possible
|
|
||||||
</p>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -548,9 +461,7 @@ because that's possible
|
||||||
<div class="footnote-definition">
|
<div class="footnote-definition">
|
||||||
<sup id="footnote-2"><a href="#footnote-reference-2">2</a></sup>
|
<sup id="footnote-2"><a href="#footnote-reference-2">2</a></sup>
|
||||||
<div class="footnote-body">
|
<div class="footnote-body">
|
||||||
<p>
|
<p>that also goes for <strong>inline</strong> footnote <em>definitions</em></p>
|
||||||
that also goes for <strong>inline</strong> footnote <em>definitions</em>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
6
org/testdata/options.html
vendored
6
org/testdata/options.html
vendored
|
@ -3,14 +3,12 @@
|
||||||
<span class="priority">[A]</span>
|
<span class="priority">[A]</span>
|
||||||
<code class="verbatim">#+OPTIONS:</code> toggles supported by <code class="verbatim">go-org</code>   <span class="tags"><span>tag1</span> <span>tag2</span></span>
|
<code class="verbatim">#+OPTIONS:</code> toggles supported by <code class="verbatim">go-org</code>   <span class="tags"><span>tag1</span> <span>tag2</span></span>
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<p><code class="verbatim">go-org</code> supports multiple export toggles as described in the <a href="https://orgmode.org/manual/Export-settings.html">export settings</a> section of the Org mode manual.
|
||||||
<code class="verbatim">go-org</code> supports multiple export toggles as described in the <a href="https://orgmode.org/manual/Export-settings.html">export settings</a> section of the Org mode manual.
|
|
||||||
By default (most of?) those toggles are enabled. This file starts with <code class="verbatim">#+OPTIONS: toc:nil f:nil e:nil</code> and thus
|
By default (most of?) those toggles are enabled. This file starts with <code class="verbatim">#+OPTIONS: toc:nil f:nil e:nil</code> and thus
|
||||||
disables the table of contents, footnotes & entities.
|
disables the table of contents, footnotes & entities.
|
||||||
That means, entities like <code class="verbatim">---</code> --- (mdash) will be left untouched, footnotes like <code class="verbatim">[fn:1]</code> will
|
That means, entities like <code class="verbatim">---</code> --- (mdash) will be left untouched, footnotes like <code class="verbatim">[fn:1]</code> will
|
||||||
not be exported and there won't be a table of contents at the top.
|
not be exported and there won't be a table of contents at the top.
|
||||||
As buffer options are merged with the defaults, the above headline will be exported <strong>with</strong> priority, todo status & tags.
|
As buffer options are merged with the defaults, the above headline will be exported <strong>with</strong> priority, todo status & tags.</p>
|
||||||
</p>
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
10
org/testdata/paragraphs.html
vendored
10
org/testdata/paragraphs.html
vendored
|
@ -1,14 +1,10 @@
|
||||||
<p>
|
<p>Paragraphs are the default element.</p>
|
||||||
Paragraphs are the default element.
|
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
Empty lines and other elements end paragraphs - but paragraphs
|
Empty lines and other elements end paragraphs - but paragraphs
|
||||||
can
|
can
|
||||||
obviously
|
obviously
|
||||||
span
|
span
|
||||||
multiple
|
multiple
|
||||||
lines.
|
lines.</p>
|
||||||
</p>
|
|
||||||
<p>
|
<p>
|
||||||
Paragraphs can contain inline markup like <em>emphasis</em> <strong>strong</strong> and links <a href="https://www.example.com">example.com</a> and stuff.
|
Paragraphs can contain inline markup like <em>emphasis</em> <strong>strong</strong> and links <a href="https://www.example.com">example.com</a> and stuff.</p>
|
||||||
</p>
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue