{ "info": { "author": "Dustin Oprea", "author_email": "myselfasunder@gmail.com", "bugtrack_url": null, "classifiers": [], "description": ".. image:: https://img.shields.io/pypi/v/mistune.svg\n :target: https://pypi.python.org/pypi/markdown-embedimages/\n :alt: Latest Version\n.. image:: https://travis-ci.org/dsoprea/markdown-embedimages.svg?branch=master\n :target: https://travis-ci.org/dsoprea/markdown-embedimages\n :alt: Travis CI Status\n\nOverview\n========\n\nThis project allows you to translate markdown to HTML and to convert URLs or even local image file-paths to embedded images.\n\nLocal file-paths must be specifically enabled, for security reasons.\n\nThis project is Python 2 and Python 3 compatible.\n\n\nExample\n=======\n\n----------\nImage URLs\n----------\n\nShort usage::\n\n import mei\n\n markdown = \"![Random Ingenuity](http://www.randomingenuity.com/ri72.png)\"\n actual = mei.markdown(markdown)\n\n #

\"Random

\n\nLong usage::\n\n import mei.embed_images\n import mistune\n\n renderer = mei.embed_images.EmbedImagesRenderer()\n m = mistune.Markdown(renderer=renderer)\n\n markdown = \"![Random Ingenuity](http://www.randomingenuity.com/ri72.png)\"\n actual = m.render(markdown)\n\n #

\"Random

\n\n\n------------\nLocal Images\n------------\n\nShort usage::\n\n import mei\n\n markdown = \"![alt text](/drawable-mdpi/ic_menu_paste.png)\"\n actual = mei.markdown(markdown)\n\n #

\"Random

\n\nLong usage::\n\n import mei.embed_images\n import mistune\n\n renderer = mei.embed_images.EmbedImagesRenderer(embed_local_images=True)\n m = mistune.Markdown(renderer=renderer)\n\n markdown = \"![alt text](/drawable-mdpi/ic_menu_paste.png)\"\n actual = m.render(markdown)\n\n #

\"Random

\n\n\n-------\nTesting\n-------\n\nJust run the test script::\n\n $ ./test.sh\n test_embed_images_local (test_embed_images.TestEmbedImages) ... ok\n test_embed_images_url (test_embed_images.TestEmbedImages) ... ok\n test_get_base64_with_image_filepath (test_embed_images.TestEmbedImages) ... ok\n test_get_base64_with_image_url (test_embed_images.TestEmbedImages) ... ok\n test_get_embedded_image_filepath (test_embed_images.TestEmbedImages) ... ok\n test_get_embedded_image_filepath__xhtml (test_embed_images.TestEmbedImages) ... ok\n test_get_embedded_image_url (test_embed_images.TestEmbedImages) ... ok\n test_get_embedded_image_url__xhtml (test_embed_images.TestEmbedImages) ... ok\n test_get_http2 (test_embed_images.TestEmbedImages) ... ok\n test_get_http3 (test_embed_images.TestEmbedImages) ... ok\n test_http (test_embed_images.TestEmbedImages) ... ok\n test_http__instance_cached (test_embed_images.TestEmbedImages) ... ok\n test_markdown (test_embed_images.TestEmbedImages) ... ok\n\n ----------------------------------------------------------------------\n Ran 13 tests in 0.016s\n\n OK", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "mistune markdown", "license": "", "maintainer": "", "maintainer_email": "", "name": "markdown-embedimages", "package_url": "https://pypi.org/project/markdown-embedimages/", "platform": "", "project_url": "https://pypi.org/project/markdown-embedimages/", "project_urls": null, "release_url": "https://pypi.org/project/markdown-embedimages/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "A Mistune renderer that embeds images into the final document.", "version": "0.1.4" }, "last_serial": 3195107, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "50986ad55a9d204d66306e2698565686", "sha256": "ecf2473e397cba3be9660859479d5a85f9122a08820d24dd598c34c1f15920b3" }, "downloads": -1, "filename": "markdown-embedimages-0.1.3.tar.gz", "has_sig": false, "md5_digest": "50986ad55a9d204d66306e2698565686", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3852, "upload_time": "2017-09-22T16:22:05", "url": "https://files.pythonhosted.org/packages/bf/83/9df0ec8314f9fd060c6db5e39b3f258c55ee2659c77902950bc1c3641590/markdown-embedimages-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "66c7a79110b9cf5971565ca044327233", "sha256": "8b5d6eb8b6232e16d17039219b64c32a34ca13eedf9d036e6ba7663c7ad012b3" }, "downloads": -1, "filename": "markdown-embedimages-0.1.4.tar.gz", "has_sig": false, "md5_digest": "66c7a79110b9cf5971565ca044327233", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3883, "upload_time": "2017-09-22T16:26:35", "url": "https://files.pythonhosted.org/packages/83/7b/2d76d87407abb854f1244dccdf1795b559d83eed9e2ef4f34a95be19faae/markdown-embedimages-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "66c7a79110b9cf5971565ca044327233", "sha256": "8b5d6eb8b6232e16d17039219b64c32a34ca13eedf9d036e6ba7663c7ad012b3" }, "downloads": -1, "filename": "markdown-embedimages-0.1.4.tar.gz", "has_sig": false, "md5_digest": "66c7a79110b9cf5971565ca044327233", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3883, "upload_time": "2017-09-22T16:26:35", "url": "https://files.pythonhosted.org/packages/83/7b/2d76d87407abb854f1244dccdf1795b559d83eed9e2ef4f34a95be19faae/markdown-embedimages-0.1.4.tar.gz" } ] }