Commits

Jannis Leidel  committed 0c86617

In the rST renderer, return 'html_body' instead of 'fragment' to prevent stripping the first headline from the rendered content.

  • Participants
  • Parent commits accdf69

Comments (0)

Files changed (1)

File markitup/renderers.py

     from docutils.core import publish_parts
     def render_rest(markup, **docutils_settings):
         parts = publish_parts(source=markup, writer_name="html4css1", settings_overrides=docutils_settings)
-        return parts["fragment"]
+        return parts["html_body"]
 except ImportError:
     pass