# HG changeset patch # User Mads Kiilerich # Date 2019-06-07 03:37:07 # Node ID 42c4ffb45fe0b8cd33d8eb579d532c283fa96806 # Parent bbf7be28a11eed9ecbf95ffe883bc870703c9580 tests: some coverage of Markdown rendering actually rendering as HTML and using code-highlight diff --git a/kallithea/lib/markup_renderer.py b/kallithea/lib/markup_renderer.py --- a/kallithea/lib/markup_renderer.py +++ b/kallithea/lib/markup_renderer.py @@ -178,6 +178,17 @@ class MarkupRenderer(object): u'
yo
' >>> MarkupRenderer.markdown('''yo''') u'

yo

' + >>> MarkupRenderer.markdown('''## Foo''') + u'

Foo

' + >>> print MarkupRenderer.markdown(''' + ... #!/bin/bash + ... echo "hello" + ... ''') +
1
+        2
#!/bin/bash
+        echo "hello"
+        
+
""" source = safe_unicode(source) try: