org: Fix drawer & block
- drawer entries without value were printed as FOO rather than :FOO: - account for differences between raw & non-raw block: raw blocks are not wrapped in a further element, just raw text & line breaks: -> the first line has to be indented manually non raw blocks do not end in a linebreak newline -> the END_BLOCK line has to be indented (rather they end with a manual newline from another element)
This commit is contained in:
parent
5f7d28f504
commit
905648c34b
5 changed files with 50 additions and 12 deletions
15
org/testdata/blocks.html
vendored
15
org/testdata/blocks.html
vendored
|
@ -28,7 +28,9 @@ empty lines!
|
|||
|
||||
it also has multiple parameters
|
||||
|
||||
note that /inline/ *markup* ignored
|
||||
src, example & export blocks treat their content as raw text
|
||||
/inline/ *markup* is ignored
|
||||
and whitespace is honored and not removed
|
||||
</pre>
|
||||
<pre class="example">
|
||||
examples like this
|
||||
|
@ -40,7 +42,7 @@ note that /inline/ *markup* ignored
|
|||
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
|
||||
blocks like the quote block parse their content and can contain
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
|
@ -82,6 +84,10 @@ paragraphs
|
|||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
also whitespace is not significant
|
||||
and superfluous whitespace (at the beginning of the line) is removed
|
||||
</p>
|
||||
</blockquote>
|
||||
<script>
|
||||
console.log("Hello World!")
|
||||
|
@ -95,6 +101,11 @@ blocks can contain unindented lines that would normally end a list item
|
|||
<pre class="example">
|
||||
this line is not indented - if it was outside of a block the list item would end
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
this line is not indented - if it was outside of a block the list item would end
|
||||
</p>
|
||||
</blockquote>
|
||||
<p>
|
||||
now we're outside the block again and the following unindented line will be outside of the list item
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue