{ "info": { "author": "Doug Shawhan", "author_email": "doug.shawhan@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Flask", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# flask-commonmark\n\nAdd [CommonMark](https://commonmark.org/) processing [filter](http://jinja.pocoo.org/docs/2.10/templates/#filters) to your `Flask` app.\n\nOne may notice a similarity to Dan Colish's `Flask-Markdown`, from which I shamelessly copied a bunch of this. Does not have all the nice provisions for extension baked in, but probably does what you need.\n\nSource code may be found at [Gitlab](https://gitlab.com/doug.shawhan/flask-commonmark).\n\nDocs at [readthedocs](https://flask-commonmark.readthedocs.io).\n\n# Installation\n\n```bash\npip install Flask-Commonmark\n```\n\nIf `pip` is not available on your system, use:\n\n```bash\neasy_install Flask-Commonmark\n```\n\n# Usage\n\n## Script\n\n```python\nfrom flask_commonmark import Commonmark\ncm = Commonmark(app)\n```\n\nor, if you are using factory pattern:\n\n```python\ncm = Commonmark()\ncm.init_app(app)\n```\n\nCreate routes in the usual way:\n```python\n@app.route(\"/commonmark\")\ndef display_commonmark():\n mycm = u\"Hello, *commonmark* block.\"\n return render_template(\"commonmark.html\", mycm=mycm) \n```\n\n## Template\n\n### Inline-style\n```html\n\n{{mycm|commonmark}}\n\n```\n\n### Block-style\n```html\n\n{% filter commonmark %}\n{{mycm}}\n{% endfilter %}\n\n```\n\n## Autoescape\n\nJinja2's autoescape works as expected. See [tests](https://gitlab.com/doug.shawhan/flask-commonmark/blob/master/tests/test_commonmark.py) for examples.\n\n## Tests\n\n`python setup.py test`", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/doug.shawhan/flask-commonmark", "keywords": "", "license": "BSD", "maintainer": "Doug Shawhan", "maintainer_email": "doug.shawhan@gmail.com", "name": "Flask-Commonmark", "package_url": "https://pypi.org/project/Flask-Commonmark/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Commonmark/", "project_urls": { "Bug Tracker": "https://gitlab.com/doug.shawhan/flask-commonmark/issues", "Development Version": "https://gitlab.com/doug.shawhan/flask-commonmark/tree/dev", "Documentation": "https://flask-commonmark.readthedocs.io", "Homepage": "https://gitlab.com/doug.shawhan/flask-commonmark", "Source Code": "https://gitlab.com/doug.shawhan/flask-commonmark/tree/master" }, "release_url": "https://pypi.org/project/Flask-Commonmark/0.8/", "requires_dist": null, "requires_python": "", "summary": "Add commonmark processing filter to your Flask app.", "version": "0.8" }, "last_serial": 5431810, "releases": { "0.7": [ { "comment_text": "", "digests": { "md5": "593cd0153b37e6f5c93fcd2e863d823d", "sha256": "06c33a7d40c9b463b60db8806383ca36c4f758a9afee51e1b03ff3a24a9037ac" }, "downloads": -1, "filename": "Flask-Commonmark-0.7.tar.gz", "has_sig": false, "md5_digest": "593cd0153b37e6f5c93fcd2e863d823d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3231, "upload_time": "2019-06-04T15:58:20", "url": "https://files.pythonhosted.org/packages/ae/0e/7af1f918266ecd9fc611402e3b168258e6f927414c0acbc4955bb615e517/Flask-Commonmark-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "943619256ec32a4eb54da3a45f263613", "sha256": "c8a7b367e2819a11b4906cf398ee6f6da535089af61190cb394482f0aef3d497" }, "downloads": -1, "filename": "Flask-Commonmark-0.8.tar.gz", "has_sig": false, "md5_digest": "943619256ec32a4eb54da3a45f263613", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3388, "upload_time": "2019-06-21T16:39:10", "url": "https://files.pythonhosted.org/packages/8a/94/f908f2b68501eedf3844c9b76bf7530f01c6523bbcab428dce7e348b0653/Flask-Commonmark-0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "943619256ec32a4eb54da3a45f263613", "sha256": "c8a7b367e2819a11b4906cf398ee6f6da535089af61190cb394482f0aef3d497" }, "downloads": -1, "filename": "Flask-Commonmark-0.8.tar.gz", "has_sig": false, "md5_digest": "943619256ec32a4eb54da3a45f263613", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3388, "upload_time": "2019-06-21T16:39:10", "url": "https://files.pythonhosted.org/packages/8a/94/f908f2b68501eedf3844c9b76bf7530f01c6523bbcab428dce7e348b0653/Flask-Commonmark-0.8.tar.gz" } ] }