{"id":15130946,"url":"https://github.com/pyx/flask-simplemde","last_synced_at":"2025-10-23T07:30:55.727Z","repository":{"id":57430734,"uuid":"53117522","full_name":"pyx/flask-simplemde","owner":"pyx","description":"Flask-SimpleMDE - a Flask extension for SimpleMDE","archived":false,"fork":false,"pushed_at":"2016-03-28T16:27:24.000Z","size":120,"stargazers_count":24,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T13:46:48.218Z","etag":null,"topics":["flask","flask-extensions","markdown-editor","simplemde"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyx.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-04T07:47:10.000Z","updated_at":"2024-07-31T17:52:56.000Z","dependencies_parsed_at":"2022-09-13T15:21:03.258Z","dependency_job_id":null,"html_url":"https://github.com/pyx/flask-simplemde","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-simplemde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-simplemde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-simplemde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-simplemde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyx","download_url":"https://codeload.github.com/pyx/flask-simplemde/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237793965,"owners_count":19367422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","flask-extensions","markdown-editor","simplemde"],"created_at":"2024-09-26T03:08:47.659Z","updated_at":"2025-10-23T07:30:50.345Z","avatar_url":"https://github.com/pyx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=================================================\nFlask-SimpleMDE - a Flask extension for SimpleMDE\n=================================================\n\nFlask-SimpleMDE is an extension to `Flask`_ that helps integrate `SimpleMDE\nMarkdown Editor`_ to your Flask application.\n\n\n.. _Flask: http://flask.pocoo.org/\n.. _SimpleMDE Markdown Editor: https://simplemde.com/\n\n\nQuick Start\n===========\n\n\n0. Installation\n\n  .. code-block:: sh\n\n    pip install Flask-SimpleMDE\n\n\n1. Configuration\n\n  .. code-block:: python\n\n    from flask import Flask, render_template\n    from flask_simplemde import SimpleMDE\n\n    app = Flask(__name__)\n    app.config['SIMPLEMDE_JS_IIFE'] = True\n    app.config['SIMPLEMDE_USE_CDN'] = True\n    SimpleMDE(app)\n\n    @app.route('/')\n    def hello():\n        return render_template('hello.html')\n\n    if __name__ == '__main__':\n        app.run(debug=True)\n\n\n2. In :code:`templates/hello.html`:\n\n  .. code-block:: jinja\n\n    \u003c!DOCTYPE html\u003e\n    \u003chtml\u003e\n      \u003chead\u003e\n        \u003cmeta charset=\"utf-8\"\u003e\n        \u003ctitle\u003eFlask-SimpleMDE example\u003c/title\u003e\n        {{ simplemde.css }}\n        {{ simplemde.js }}\n      \u003c/head\u003e\n      \u003cbody\u003e\n        \u003ctextarea\u003e\n        Some Markdown Text Here\n        \u003c/textarea\u003e\n        {{ simplemde.load }}\n      \u003c/body\u003e\n    \u003c/html\u003e\n\n\n3. Profit!\n\n\nHow It Works\n============\n\nOnce registered, this extension provides a template variable called\n:code:`simplemde`, it has:\n\n- a property named :code:`css` that will be rendered as HTML :code:`\u003clink\u003e` tag\n  to the SimpleMDE stylesheet either from free CDN or be served from a bundled\n  blueprint, also called :code:`simplemde`.\n\n  .. code-block:: jinja\n\n     {{ simplemde.css }}\n\n- a property named :code:`js` that will be rendered as HTML :code:`\u003cscript\u003e`\n  tag to the SimpleMDE javascript either from free CDN or be served from a\n  bundled blueprint, also called :code:`simplemde`.\n\n  .. code-block:: jinja\n\n     {{ simplemde.js }}\n\n- a property named :code:`load` that will be rendered as HTML :code:`\u003cscript\u003e`\n  tag with javascript code that loads the SimpleMDE Markdown Editor with the\n  first :code:`\u003ctextarea\u003e` tag.\n\n  .. code-block:: jinja\n\n     {{ simplemde.load }}\n\n- a method named :code:`load_id` that when called with a string, will be\n  rendered as HTML :code:`\u003cscript\u003e` tag with javascript code that loads the\n  SimpleMDE Markdown Editor with the :code:`\u003ctextarea\u003e` tag which has the\n  specified :code:`id` attribute\n\n  .. code-block:: jinja\n\n     \u003ctextarea id=\"editor\"\u003e\u003c/textarea\u003e\n     ...\n     {{ simplemde.load_id(\"editor\") }}\n\n\nLicense\n=======\n\nBSD New, see LICENSE for details.\n\n\nLinks\n=====\n\n- `Documentation \u003chttp://flask-simplemde.readthedocs.org/\u003e`_\n\n- `Issue Tracker \u003chttps://github.com/pyx/flask-simplemde/issues/\u003e`_\n\n- `Source Package @ PyPI \u003chttps://pypi.python.org/pypi/Flask-SimpleMDE/\u003e`_\n\n- `Mercurial Repository @ bitbucket\n  \u003chttps://bitbucket.org/pyx/flask-simplemde/\u003e`_\n\n- `Git Repository @ Github\n  \u003chttps://github.com/pyx/flask-simplemde/\u003e`_\n\n- `Git Repository @ Gitlab\n  \u003chttps://gitlab.com/pyx/flask-simplemde/\u003e`_\n\n- `Development Version\n  \u003chttp://github.com/pyx/flask-simplemde/zipball/master#egg=Flask-SimpleMDE-dev\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyx%2Fflask-simplemde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyx%2Fflask-simplemde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyx%2Fflask-simplemde/lists"}