pypa / readme_renderer

Safely render long_description/README files in Warehouse
Apache License 2.0
158 stars 89 forks source link

test: confirm that unknown lexers emit code blocks #256

Closed miketheman closed 2 years ago

miketheman commented 2 years ago

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