Mercurial > piecrust2
view tests/rdrutil.py @ 1119:af57fbe9435a
formatter: Fix the regex used to find page segments.
It was incorrectly matching a Markdown horizontal rule followed by a title if
the title had exactly 3 dashes underneath it.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 27 Feb 2018 15:43:50 -0800 |
parents | 72f17534d58e |
children |
line wrap: on
line source
from piecrust.rendering import RenderingContext, render_page def render_simple_page(page): ctx = RenderingContext(page) rp = render_page(ctx) return rp.content