Skip to main content

Datasette plugin for rendering Markdown

Project description


PyPI CircleCI License

Datasette plugin for rendering Markdown.

Install this plugin in the same environment as Datasette to enable this new functionality:

pip install datasette-render-markdown

The plugin currently only works against columns with a name ending in _markdown.

Their contents will be rendered using Python-Markdown. The resulting HTML is then run through Bleach to avoid the risk of XSS security problems.

You can try it out using the following query:

select '# Hello there

* This is a list
* of items

[And a link]('
as demo_markdown

Markdown in templates

The plugin also adds a new template function: render_markdown(value). You can use this in your templates like so:

{{ render_markdown("""
# This is markdown

* One
* Two
* Three
""") }}

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page