{ "info": { "author": "funkid", "author_email": "fuunk1d@g.mailcom", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Text Processing :: Markup :: HTML" ], "description": "# markdown-figcap\n\nExtension for [Python-Markdown] to handle `
` and `
`.\n\n## Usage\n\n- `%%%` start a `
`\n- `%:` start a `
`\n\n```python\nfrom markdown import Markdown\n\ntext = r'''\n%%%\n\n%%% figure-class here\n ![img-alt](/source/of/img.jpg){: img-attributes here}\n\n %: figcaption here\n {: figcaption-attributes here}\n\n%: will not be a figcaption\n'''\n\nmd = Markdown(extensions=['markdown_figcap','attr_list'])\nprint(md.convert(text))\n```\n\nOutput:\n\n```html\n

%%%

\n
\n\"img-alt\"\n
figcaption here
\n
\n

%: will not be a figcaption

\n```\n\n## Notice\n\n- The attributes rendering (except `
`'s class) is supported by the origin [Python-Markdown]'s [`attr_list`] extension.\n- Figure starter only will not be rendered as `
`.\n- Figcaption starter will not take effect until it is in the `figure` block.\n- If the `

` in `

` has no text and only one `` child, the `

` tag will be got rid of.\n\n## Installation\n\nFrom [PyPI]:\n```\npip install markdown-figcap\n```\n\n[Python-Markdown]: https://python-markdown.github.io/\n[PyPI]: https://pypi.org/project/markdown-figcap/\n[`attr_list`]: https://python-markdown.github.io/extensions/attr_list/\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/funk1d/markdown-figcap", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "markdown-figcap", "package_url": "https://pypi.org/project/markdown-figcap/", "platform": "", "project_url": "https://pypi.org/project/markdown-figcap/", "project_urls": { "Homepage": "https://github.com/funk1d/markdown-figcap" }, "release_url": "https://pypi.org/project/markdown-figcap/0.1.1/", "requires_dist": [ "Markdown (>=3.0.1)" ], "requires_python": "", "summary": "Extension for Python-Markdown to handle

and
.", "version": "0.1.1" }, "last_serial": 4917986, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "784ee623ee96dfebaf8d0f680bc17386", "sha256": "3513ba7e5afd0778fa85acf64984e2ecc881e72bfccc6e12af3c767aeaa3b4f2" }, "downloads": -1, "filename": "markdown_figcap-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "784ee623ee96dfebaf8d0f680bc17386", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4548, "upload_time": "2019-03-09T04:24:32", "url": "https://files.pythonhosted.org/packages/43/b1/e704857af285a65aca4844ac50abee4a478f711f6e0b7addf4ff8e9dfeee/markdown_figcap-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e0ac1fdb2152ce3341177f922434360", "sha256": "61fa8a567cfad3d63754277f9d1341ada01695aafd42dd2a52c8739ce3546634" }, "downloads": -1, "filename": "markdown-figcap-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0e0ac1fdb2152ce3341177f922434360", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3137, "upload_time": "2019-03-09T04:24:34", "url": "https://files.pythonhosted.org/packages/d2/ca/2a08d8558b061aabbfcbdcac76a883589fd92a67917757b930defa915a7c/markdown-figcap-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "784ee623ee96dfebaf8d0f680bc17386", "sha256": "3513ba7e5afd0778fa85acf64984e2ecc881e72bfccc6e12af3c767aeaa3b4f2" }, "downloads": -1, "filename": "markdown_figcap-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "784ee623ee96dfebaf8d0f680bc17386", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4548, "upload_time": "2019-03-09T04:24:32", "url": "https://files.pythonhosted.org/packages/43/b1/e704857af285a65aca4844ac50abee4a478f711f6e0b7addf4ff8e9dfeee/markdown_figcap-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e0ac1fdb2152ce3341177f922434360", "sha256": "61fa8a567cfad3d63754277f9d1341ada01695aafd42dd2a52c8739ce3546634" }, "downloads": -1, "filename": "markdown-figcap-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0e0ac1fdb2152ce3341177f922434360", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3137, "upload_time": "2019-03-09T04:24:34", "url": "https://files.pythonhosted.org/packages/d2/ca/2a08d8558b061aabbfcbdcac76a883589fd92a67917757b930defa915a7c/markdown-figcap-0.1.1.tar.gz" } ] }