html: Improve block rendering
This commit is contained in:
parent
d2d9dc0fc8
commit
4e2fb02b57
4 changed files with 64 additions and 14 deletions
19
org/testdata/example.html
vendored
19
org/testdata/example.html
vendored
|
@ -23,7 +23,9 @@
|
|||
<li><p>unordered list item 3 - and a <a href="https://example.com">link</a> and some lines of text</p>
|
||||
<ol>
|
||||
<li><p>and another subitem</p>
|
||||
<code>echo with a block</code>
|
||||
<code class="src src-sh">
|
||||
<pre>echo with a block<pre>
|
||||
</code>
|
||||
</li>
|
||||
<li><p>and another one with a table</p>
|
||||
<table>
|
||||
|
@ -62,6 +64,21 @@
|
|||
</ol>
|
||||
</li>
|
||||
</ul>
|
||||
<h2>blocks</h2>
|
||||
<code class="src src-bash">
|
||||
<pre>echo a bash source block<pre>
|
||||
</code>
|
||||
<code class="src src-text">
|
||||
<pre>a source block without a language
|
||||
and a second line
|
||||
and a third one<pre>
|
||||
</code>
|
||||
<pre class="example">
|
||||
an example blockwith multiple lines
|
||||
</pre>
|
||||
<blockquote>
|
||||
Mongodb is very webscale
|
||||
</blockquote>
|
||||
<h2>Footnotes</h2>
|
||||
<ul>
|
||||
<li>normal footnote reference <sup class="footnote-reference"><a href="#footnote-1">1</a></sup></li>
|
||||
|
|
19
org/testdata/example.org
vendored
19
org/testdata/example.org
vendored
|
@ -51,6 +51,25 @@ this one is cheating a little as tags are ALWAYS printed right aligned to a give
|
|||
2. regular link [[https://example.com][example.com]] link with description
|
||||
3. regular link to a file (image) [[file:my-img.png]]
|
||||
4. auto link, i.e. not inside =\[[square brackets]\]= https://www.example.com
|
||||
** blocks
|
||||
#+BEGIN_SRC bash
|
||||
echo a bash source block
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC
|
||||
a source block without a language
|
||||
and a second line
|
||||
and a third one
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_EXAMPLE foo bar baz
|
||||
an example block
|
||||
with multiple lines
|
||||
#+END_EXAMPLE
|
||||
|
||||
#+BEGIN_QUOTE
|
||||
Mongodb is very webscale
|
||||
#+END_QUOTE
|
||||
** Footnotes
|
||||
- normal footnote reference [fn:1]
|
||||
- further references to the same footnote should not [fn:1] render duplicates in the footnote list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue