go-org-orgwiki/org/testdata/blocks.html
Niklas Fasching 0eb3baf1bb Improve handling of elements containing raw text
While adding another test case from the goorgeous issues it became clear that
inline markup and html entity replacement were erronously applied to raw text
elements like inline code =foo=, src/example/export blocks, example lines,
etc.

To correctly handle those cases in both org and html exports a new
parseRawInline method had to be added.

Also some misc html export whitespace fixes and stuff
2018-12-17 13:40:15 +01:00

88 lines
1 KiB
HTML

<figure>
<div class="highlight">
<pre>
echo &#34;a bash source block&#34;
function hello {
echo Hello World!
}
hello
</pre>
</div>
<figcaption>
block caption
</figcaption>
</figure>
<div class="highlight">
<pre>
a source block without a language
</pre>
</div>
<pre class="example">
an example block with
multiple lines including
empty lines!
it also has multiple parameters
note that /inline/ *markup* ignored
</pre>
<pre class="example">
examples like this
are also supported
note that /inline/ *markup* ignored
</pre>
<blockquote>
<p>
Mongodb is <strong>webscale</strong>. (source: <a href="http://www.mongodb-is-web-scale.com/">mongodb-is-web-scale</a>)
</p>
<p>
blocks can contain other elements like
</p>
<ul>
<li>
<p>
lists
</p>
</li>
<li>
<p>
inline <em>markup</em>
</p>
</li>
<li>
<p>
tables
</p>
<table>
<tbody>
<tr>
<td>foo</td>
</tr>
<tr>
<td>bar</td>
</tr>
<tr>
<td>baz</td>
</tr>
</tbody>
</table>
</li>
<li>
<p>
paragraphs
</p>
</li>
<li>
<p>
</p>
</li>
</ul>
</blockquote>
<script>
console.log("Hello World!")
</script>