Skip to main content

Flask-MDE: Pagedown for Flask

Release v1.2.1 | Example application

https://img.shields.io/pypi/v/flask_mde https://img.shields.io/pypi/l/flask_mde https://img.shields.io/pypi/pyversions/flask_mde https://readthedocs.org/projects/flask-mde/badge/?version=latest https://pepy.tech/badge/flask-mde

Pagedown Editor with Google code-prettify for Flask. WTForms integration supported. From v1.2.0 Flask-MDE supports pagedown-extra.

Pagedown is a Markdown editor and previewer popularised by its use on StackOverflow. You can use the Flask-MDE extension to integrate the Pagedown editor into your Flask application.

Installation

Installing Flask-MDE is simple with pip. To install Flask-MDE, run the command

pip install Flask-MDE

in your terminal

Basic Usage

Assuming the following folder structure:

.
├── app.py
└── templates/
    └── index.html

Files

app.py

from flask import Flask, render_template
from flask_mde import Mde

app = Flask(__name__)
mde = Mde(app)

@app.route('/')
def index():
    return render_template(
        "index.html"
    )


if __name__ == "__main__":
    app.run()

templates/index.html

<!DOCTYPE html>
<html lang="en">
<head>
    {{mde.css}}
</head>
<body>
    {{mde.editor()}}
    {{mde.preview}}
    {{mde.js}}
</body>
</html>

Read the user guide to check out all the features.

Licenses that apply

  1. Flask-MDE License (MIT)

  2. Pagedown-Extra License

  3. Pagedown License

Metadata

Release files for Flask-MDE 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-MDE 1.2.1
File Size Uploaded
Flask-MDE-1.2.1.tar.gz 84.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-MDE 1.2.1
File Interpreter ABI Platform
Flask_MDE-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 170.3 kB

Release files / Flask-MDE-1.2.1.tar.gz

Download URL Flask-MDE-1.2.1.tar.gz
Size 84.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4c8513ae352c38542b3c5a764f71aec8214fca1d680764ad4e0fbab2253312f0
BLAKE2b-256 checksum
How to use checksums
51e1f5e56e598f7f0da48804160ac56a4077f336bc792dab6b09415e49339a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

Release files / Flask_MDE-1.2.1-py3-none-any.whl

Download URL Flask_MDE-1.2.1-py3-none-any.whl
Size 86.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43cdec23145445e71b7d0e290d9ccdcf4d74821798a714dd47ea9cbe9d304ada
BLAKE2b-256 checksum
How to use checksums
34eb6106dfbe7182dd5fce2289a997efa371dccd53ab30c10a55d0ff491c94fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page