Skip to content

Commit

Permalink
test: confirm that unknown lexers emit code blocks
Browse files Browse the repository at this point in the history
In previous versions, this example would error, but now emits a code
block. If the end user includes a syntax that Pygments does not
implement yet, or makes a mistake, the resulting HTML will be valid and
succeed, but may not be as pretty as other code blocks.

Resolves: #116
Refs: #168

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman committed Aug 21, 2022
1 parent f62ff90 commit 356ec58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/fixtures/test_rst_008.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
<span class="nb">echo</span> <span class="s2">&quot;OK&quot;</span>
<span class="k">fi</span></code></pre>
<p>or click <a href="http://www.surveymonkey.com" rel="nofollow">SurveyMonkey</a></p>
<pre><code>An unknown code fence block</code></pre>
5 changes: 5 additions & 0 deletions tests/fixtures/test_rst_008.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ and then here is some bash:
fi
or click `SurveyMonkey <http://www.surveymonkey.com>`_


.. code-block:: abc
An unknown code fence block

0 comments on commit 356ec58

Please sign in to comment.