-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(double linebreaks): fix double linebreaks in html output
Closes #291
- Loading branch information
Showing
93 changed files
with
14 additions
and
296 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
<pre><code>> this is a pseudo blockquote | ||
> inside a code block | ||
</code></pre> | ||
|
||
<p>foo</p> | ||
|
||
<pre><code>> this is another bq | ||
inside code | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
<blockquote> | ||
<h2 id="thisisaheader">This is a header.</h2> | ||
|
||
<ol> | ||
<li>This is the first list item.</li> | ||
|
||
<li>This is the second list item.</li> | ||
</ol> | ||
|
||
<p>Here's some example code:</p> | ||
|
||
<pre><code>return shell_exec("echo $input | $markdown_script"); | ||
</code></pre> | ||
</blockquote> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<blockquote> | ||
<p>This is a multi line blockquote test</p> | ||
|
||
<p>With more than one line.</p> | ||
</blockquote> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<p>This is some HTML:</p> | ||
|
||
<pre><code><h1>Heading</h1> | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<p>This is a normal paragraph:</p> | ||
|
||
<pre><code>This is a code block. | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,34 @@ | ||
<p><em>single asterisks</em></p> | ||
|
||
<p><em>single underscores</em></p> | ||
|
||
<p><strong>double asterisks</strong></p> | ||
|
||
<p><strong>double underscores</strong></p> | ||
|
||
<p>text <em>with italic sentence</em> in middle</p> | ||
|
||
<p>text <strong>with bold sentence</strong> in middle</p> | ||
|
||
<p>text with <strong>bold text that | ||
spans across multiple</strong> lines</p> | ||
|
||
<p>underscored_word</p> | ||
|
||
<p>doubleunderscore__word</p> | ||
|
||
<p>asterix*word</p> | ||
|
||
<p>doubleasterix**word</p> | ||
|
||
<p>line with_underscored word</p> | ||
|
||
<p>line with__doubleunderscored word</p> | ||
|
||
<p>line with*asterixed word</p> | ||
|
||
<p>line with**doubleasterixed word</p> | ||
|
||
<p>some line<em>with</em>inner underscores</p> | ||
|
||
<p>some line<strong>with</strong>inner double underscores</p> | ||
|
||
<p>some line<em>with</em>inner asterixs</p> | ||
|
||
<p>some line<strong>with</strong>inner double asterixs</p> | ||
|
||
<p>another line with just _one underscore</p> | ||
|
||
<p>another line with just __one double underscore</p> | ||
|
||
<p>another line with just *one asterix</p> | ||
|
||
<p>another line with just **one double asterix</p> | ||
|
||
<p>a sentence with<em>underscore and another</em>underscore</p> | ||
|
||
<p>a sentence with<strong>doubleunderscore and another</strong>doubleunderscore</p> | ||
|
||
<p>a sentence with<em>asterix and another</em>asterix</p> | ||
|
||
<p>a sentence with<strong>doubleasterix and another</strong>doubleasterix</p> | ||
|
||
<p>escaped word_with_underscores</p> | ||
|
||
<p>escaped word__with__double underscores</p> | ||
|
||
<p>escaped word<em>_with_</em>single italic underscore</p> | ||
|
||
<p>escaped word*with*asterixs</p> | ||
|
||
<p>escaped word**with**asterixs</p> | ||
|
||
<p>escaped word<strong>*with*</strong>bold asterixs</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,16 @@ | ||
<p>These should all be escaped:</p> | ||
|
||
<p>\</p> | ||
|
||
<p>`</p> | ||
|
||
<p>*</p> | ||
|
||
<p>_</p> | ||
|
||
<p>{</p> | ||
|
||
<p>}</p> | ||
|
||
<p>[</p> | ||
|
||
<p>]</p> | ||
|
||
<p>(</p> | ||
|
||
<p>)</p> | ||
|
||
<p>#</p> | ||
|
||
<p>+</p> | ||
|
||
<p>-</p> | ||
|
||
<p>.</p> | ||
|
||
<p>!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
// ... | ||
} | ||
</code></pre> | ||
|
||
<p>That is some code!</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
<p>Define a function in javascript:</p> | ||
|
||
<pre><code>function MyFunc(a) { | ||
var s = '`'; | ||
} | ||
</code></pre> | ||
|
||
<p>And some HTML</p> | ||
|
||
<pre><code class="html language-html"><div>HTML!</div> | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
<hr /> | ||
|
||
<hr /> | ||
|
||
<hr /> | ||
|
||
<hr /> | ||
|
||
<hr /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
<!-- a comment --> | ||
|
||
<!-- a comment with *bogus* __markdown__ inside --> | ||
|
||
<p>words <!-- a comment --> words</p> | ||
|
||
<!-- comment --> | ||
|
||
<p>words</p> | ||
|
||
<!-- comment --> | ||
|
||
<pre><code><!-- comment --> | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<p><img src="/path/to/img.jpg" alt="Alt text" /></p> | ||
|
||
<p><img src="/path/to/img.jpg" alt="Alt text" title="Optional title" /></p> | ||
|
||
<p><img src="url/to/image" alt="Alt text" title="Optional title attribute" /></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<p>This is <a href="http://example.com/" title="Title">an example</a> inline link.</p> | ||
|
||
<p><a href="http://example.net/">This link</a> has no title attribute.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
<p>Create a new <code>function</code>.</p> | ||
|
||
<p>Use the backtick in MySQL syntax <code>SELECT `column` FROM whatever</code>.</p> | ||
|
||
<p>A single backtick in a code span: <code>`</code></p> | ||
|
||
<p>A backtick-delimited string in a code span: <code>`foo`</code></p> | ||
|
||
<p>Please don't use any <code><blink></code> tags.</p> | ||
|
||
<p><code>&#8212;</code> is the decimal-encoded equivalent of <code>&mdash;</code>.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<style> | ||
p { line-height: 20px; } | ||
</style> | ||
|
||
<p>An exciting sentence.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<blockquote> | ||
<p>This is a multi line blockquote test</p> | ||
|
||
<p>With more than one line.</p> | ||
</blockquote> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<p><a href="foo">some text</a> words</p> | ||
|
||
<p><br> words</p> |
Oops, something went wrong.