All Projects → pyx → flask-simplemde

pyx / flask-simplemde

Licence: other
Flask-SimpleMDE - a Flask extension for SimpleMDE

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to flask-simplemde

MarkdownIt
Efficient Code Editor to live render Markdown and save as Markdown,Html and Pdf with Instant Hosting in The Web.
Stars: ✭ 31 (+34.78%)
Mutual labels:  markdown-editor
nwotable
One app for all your notes on all your devices.
Stars: ✭ 22 (-4.35%)
Mutual labels:  markdown-editor
mark
mark is an markdown editor app for mac
Stars: ✭ 47 (+104.35%)
Mutual labels:  markdown-editor
BoostNote.next-local
Boost Note next local spaces is lightspeed workspace for developers
Stars: ✭ 89 (+286.96%)
Mutual labels:  markdown-editor
stylo
Stylo est un éditeur de textes pour articles scientifiques en sciences humaines et sociales.
Stars: ✭ 29 (+26.09%)
Mutual labels:  markdown-editor
flask-stupe
💉 a.k.a. « Flask on steroids »
Stars: ✭ 30 (+30.43%)
Mutual labels:  flask-extensions
fluence
WYSIWYG wiki powered by Crystal, markdown, and Git
Stars: ✭ 44 (+91.3%)
Mutual labels:  markdown-editor
markdown-editor
✏️ A very simple but useful Markdown Previewer and Markdown Editor with CodeMirror, Markedjs, and Create-react-app
Stars: ✭ 25 (+8.7%)
Mutual labels:  markdown-editor
nice-mark
一款基于electron的markdown编辑器
Stars: ✭ 21 (-8.7%)
Mutual labels:  markdown-editor
react-md-table-generator
Markdown Table Generator in React
Stars: ✭ 19 (-17.39%)
Mutual labels:  markdown-editor
graphite
✍️ A local-first Markdown note-taking app built with Vue.js, Tailwind CSS, and Electron.
Stars: ✭ 17 (-26.09%)
Mutual labels:  markdown-editor
notoma
Use Notion as your blogging editor, with any static gen blog engine. Notoma converts Notion pages to Markdown files.
Stars: ✭ 40 (+73.91%)
Mutual labels:  markdown-editor
markdown-it-editor
a markdown rich text editor base on markdown-it and vue2
Stars: ✭ 59 (+156.52%)
Mutual labels:  markdown-editor
PandaNote
iOS markdown Note App / iOS的markdown笔记应用
Stars: ✭ 32 (+39.13%)
Mutual labels:  markdown-editor
markdown-live
📝 Real-time Markdown Editor & Previewer for VS Code
Stars: ✭ 18 (-21.74%)
Mutual labels:  markdown-editor
flask-funnel
Better asset management for Flask
Stars: ✭ 22 (-4.35%)
Mutual labels:  flask-extensions
flask-pwa
A extension to give a PWA experience into your Flask app.
Stars: ✭ 23 (+0%)
Mutual labels:  flask-extensions
xenon
Markdown/Rich Text editor with a decentralized storage system | Built with Vue
Stars: ✭ 19 (-17.39%)
Mutual labels:  markdown-editor
flaskerk
A flask extension for api doc and validation of request&response.
Stars: ✭ 24 (+4.35%)
Mutual labels:  flask-extensions
noted
Markdown note-taking with syntax highlighting and real-time preview.
Stars: ✭ 22 (-4.35%)
Mutual labels:  markdown-editor

Flask-SimpleMDE - a Flask extension for SimpleMDE

Flask-SimpleMDE is an extension to Flask that helps integrate SimpleMDE Markdown Editor to your Flask application.

Quick Start

  1. Installation
pip install Flask-SimpleMDE
  1. Configuration
from flask import Flask, render_template
from flask_simplemde import SimpleMDE

app = Flask(__name__)
app.config['SIMPLEMDE_JS_IIFE'] = True
app.config['SIMPLEMDE_USE_CDN'] = True
SimpleMDE(app)

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

if __name__ == '__main__':
    app.run(debug=True)
  1. In templates/hello.html:
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Flask-SimpleMDE example</title>
    {{ simplemde.css }}
    {{ simplemde.js }}
  </head>
  <body>
    <textarea>
    Some Markdown Text Here
    </textarea>
    {{ simplemde.load }}
  </body>
</html>
  1. Profit!

How It Works

Once registered, this extension provides a template variable called simplemde, it has:

  • a property named css that will be rendered as HTML <link> tag to the SimpleMDE stylesheet either from free CDN or be served from a bundled blueprint, also called simplemde.

    {{ simplemde.css }}
  • a property named js that will be rendered as HTML <script> tag to the SimpleMDE javascript either from free CDN or be served from a bundled blueprint, also called simplemde.

    {{ simplemde.js }}
  • a property named load that will be rendered as HTML <script> tag with javascript code that loads the SimpleMDE Markdown Editor with the first <textarea> tag.

    {{ simplemde.load }}
  • a method named load_id that when called with a string, will be rendered as HTML <script> tag with javascript code that loads the SimpleMDE Markdown Editor with the <textarea> tag which has the specified id attribute

    <textarea id="editor"></textarea>
    ...
    {{ simplemde.load_id("editor") }}

License

BSD New, see LICENSE for details.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].