Fix multiline emphasis
I didn't have a test case for this and broke it when i introduced Line nodes to support printing back to org mode. Oops
This commit is contained in:
parent
6de03e0d13
commit
6637e63892
9 changed files with 104 additions and 71 deletions
24
org/testdata/example.html
vendored
24
org/testdata/example.html
vendored
|
@ -106,7 +106,6 @@ unordered list item 4
|
|||
<li>
|
||||
<p>
|
||||
<em>emphasis</em> and a hard line break <br>
|
||||
|
||||
see?
|
||||
</p>
|
||||
</li>
|
||||
|
@ -147,6 +146,25 @@ links with slashes do not become <em>emphasis</em>: <a href="https://somelinksho
|
|||
</li>
|
||||
<li>
|
||||
<p>
|
||||
<code class="verbatim">multiline emphasis is
|
||||
supported - and respects MaxEmphasisNewLines (default: 1)</code>
|
||||
<em>so this
|
||||
is emphasized</em>
|
||||
</p>
|
||||
<p>
|
||||
/but
|
||||
this
|
||||
is
|
||||
not emphasized/
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
empty emphasis markers like ++ // __ and so on are ignored
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
subscript<sub>sub</sub> and superscript<sup>super</sup>
|
||||
</p>
|
||||
</li>
|
||||
|
@ -204,7 +222,9 @@ captioned soure block
|
|||
</p>
|
||||
</div>
|
||||
<div class="captioned">
|
||||
<p>
|
||||
<video src="my-video.mp4" title="my-video.mp4">my-video.mp4</video>
|
||||
</p>
|
||||
<p class="caption">
|
||||
captioned link (video in this case)
|
||||
</p>
|
||||
|
@ -258,7 +278,7 @@ either <code>this</code> or <code>that</code> foo.
|
|||
either <code>this</code>
|
||||
or <code>that</code> foo.
|
||||
</p>
|
||||
<h3><a href="https://github.com/chaseadamsio/goorgeous/issues/50">#50</a>: Linebreaks in lists are preserved</h3>
|
||||
<h3><a href="https://github.com/chaseadamsio/goorgeous/issues/50">#50</a>: LineBreaks in lists are preserved</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<p>
|
||||
|
|
12
org/testdata/example.org
vendored
12
org/testdata/example.org
vendored
|
@ -54,6 +54,16 @@ this one is cheating a little as tags are ALWAYS printed right aligned to a give
|
|||
- links with slashes do not become /emphasis/: [[https://somelinkshouldntrenderaccidentalemphasis.com]]/ /emphasis/
|
||||
- _underlined_ *bold* =verbatim= ~code~ +strikethrough+
|
||||
- *bold string with an *asterisk inside*
|
||||
- =multiline emphasis is
|
||||
supported - and respects MaxEmphasisNewLines (default: 1)=
|
||||
/so this
|
||||
is emphasized/
|
||||
|
||||
/but
|
||||
this
|
||||
is
|
||||
not emphasized/
|
||||
- empty emphasis markers like ++ // __ and so on are ignored
|
||||
- subscript_{sub} and superscript^{super}
|
||||
- links
|
||||
1. regular link [[https://example.com]] link without description
|
||||
|
@ -121,7 +131,7 @@ crazy ain't it?
|
|||
either ~this~ or ~that~ foo.
|
||||
either ~this~
|
||||
or ~that~ foo.
|
||||
*** DONE [[https://github.com/chaseadamsio/goorgeous/issues/50][#50]]: Linebreaks in lists are preserved
|
||||
*** DONE [[https://github.com/chaseadamsio/goorgeous/issues/50][#50]]: LineBreaks in lists are preserved
|
||||
- this list item
|
||||
has
|
||||
multiple
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue