Skip to main content

Python Markdown package extension to allow lists without a preceding empty line.

Project description

Build Status

Breakless Lists Markdown Extension

Use lists without requiring a line break above them, as in GitHub flavoured markdown.

This markdown:

This text comes before the list
- list item 1
- list item 2

renders as this HTML:

<p>This text comes before the list</p>
<ul>
<li>list item 1</li>
<li>list item 2</li>
</ul>

Installation

pip install mdx-breakless-lists

Usage

from markdown import markdown

html = markdown(text, extensions=['mdx_breakless_lists'])

Project details


Download files

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

Source Distribution

mdx_breakless_lists-1.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

mdx_breakless_lists-1.0.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

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