A flask extension that adds a {% markdown %} tag to templates.
Project description
# Flask Markdown extension
A simple extension for adding a `{% markdown %}{% endmarkdown %}` tag to Jinja templates.
## Installation
`pip install flask_markdown2`
## Usage
```python
from flask.ext.markdown import markdown
app = Flask()
markdown(app)
```
## Features
### Automatic indentation detection
This works:
```
<article class="article container-very-tight pad-medium highlight-first">
{% markdown %}
Terms of Service
================
In short, we run this website called Volcanic Pixels and you are more
than welcome to use it and the products distributed through it. All we
ask is that you don't use it for things which are illegal or harmful.
***
...
{% endmarkdown %}
</article>
```
## Want a new feature? Bug report?
Open an issue on github, or better submit a pull request.
A simple extension for adding a `{% markdown %}{% endmarkdown %}` tag to Jinja templates.
## Installation
`pip install flask_markdown2`
## Usage
```python
from flask.ext.markdown import markdown
app = Flask()
markdown(app)
```
## Features
### Automatic indentation detection
This works:
```
<article class="article container-very-tight pad-medium highlight-first">
{% markdown %}
Terms of Service
================
In short, we run this website called Volcanic Pixels and you are more
than welcome to use it and the products distributed through it. All we
ask is that you don't use it for things which are illegal or harmful.
***
...
{% endmarkdown %}
</article>
```
## Want a new feature? Bug report?
Open an issue on github, or better submit a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flask_markdown2-0.0.3.tar.gz
(1.6 kB
view details)
File details
Details for the file flask_markdown2-0.0.3.tar.gz
.
File metadata
- Download URL: flask_markdown2-0.0.3.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 986f65ef253db604eb3ce5a9421429f080e3d3c44826ea66ca19f4b0352eb7e2 |
|
MD5 | ceca6b17fc2df78797ed360e31b45dff |
|
BLAKE2b-256 | 207cea24e981a67d38e9432567ff6705e770b2b46729302e10a67c0a1003a663 |