Python-Markdown / markdown

A Python implementation of John Gruber’s Markdown with Extension support.
https://python-markdown.github.io/
BSD 3-Clause "New" or "Revised" License
3.74k stars 858 forks source link

[Feature request] Render html body (partial) only? #1232

Closed rbosch closed 2 years ago

rbosch commented 2 years ago

Hi,

Couldn't find an option to render the body content only, basically a partial. Which would be extremely handy to inject in existing page.

mitya57 commented 2 years ago

Python-Markdown always renders only HTML body, i.e. the inner part of <body> tag. It is responsibility of the application to add the wrapping part.

rbosch commented 2 years ago

Oh, damn. Sorry, i was checking my browser. Assumed it rendered all of it. Thanks!