{ "info": { "author": "Anthony Sottile", "author_email": "asottile@umich.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "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", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "[![Build Status](https://travis-ci.org/asottile/markdown-code-blocks.svg?branch=master)](https://travis-ci.org/asottile/markdown-code-blocks)\n[![Coverage Status](https://coveralls.io/repos/github/asottile/markdown-code-blocks/badge.svg?branch=master)](https://coveralls.io/github/asottile/markdown-code-blocks?branch=master)\n\nmarkdown-code-blocks\n====================\n\nA stupid simple bit of code which combines [mistune][mistune] and\n[pygments][pygments] to convert markdown into html. Very similar to github\nmarkdown, but for python.\n\n\n## Installation\n\n`pip install markdown-code-blocks`\n\n## Usage\n\nThe library provides a single function `highlight` which takes in a markdown\nstring and returns html.\n\nYou can also use the cli `markdown-code-blocks-highlight`. It optionally\ntakes a single filename (defaulting to stdin) and writes to stdout.\n\nFor example:\n\n`markdown-code-blocks-highlight f.md > f.htm`\n\n\n## pygments css\n\nI'd suggest grabbing a theme file from [pygments-css][pygments-css]\n(or any other provider of pygments themes -- if you google there's a bunch of\nthem).\n\nThis library will use the class `.highlight` so be sure to change out whatever\nclass the theme uses with that.\n\nMost themes (for whatever reason) don't add styles for diff display. I\nusually do something like this:\n\n```css\n.highlight .gi { color: #070; }\n.highlight .gd { color: #911; }\n```\n\n[mistune]: https://github.com/lepture/mistune\n[pygments]: http://pygments.org/\n[pygments-css]: https://github.com/richleland/pygments-css\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/asottile/markdown-code-blocks", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "markdown-code-blocks", "package_url": "https://pypi.org/project/markdown-code-blocks/", "platform": "", "project_url": "https://pypi.org/project/markdown-code-blocks/", "project_urls": { "Homepage": "https://github.com/asottile/markdown-code-blocks" }, "release_url": "https://pypi.org/project/markdown-code-blocks/1.4.0/", "requires_dist": [ "mistune", "pygments" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "Generate html from markdown with code-block highlighting", "version": "1.4.0" }, "last_serial": 4877857, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d0d49ad57f5225b4ca35e7d534fa06b1", "sha256": "30318d3e6e1d6871c367d0031930bd1d99af9fbac3e68e9fd1545e0459706bee" }, "downloads": -1, "filename": "markdown_code_blocks-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d0d49ad57f5225b4ca35e7d534fa06b1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2669, "upload_time": "2017-03-14T04:29:01", "url": "https://files.pythonhosted.org/packages/a4/5b/ae592868a6dc716a56051b559627d789fe9d5c4bea559debdc11dfb83e9d/markdown_code_blocks-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "24e22baac48b165096c8c3bd7b1c913e", "sha256": "609e0cb55351b19f3f2cc3b9f72f024472131e136c7193722f5804bf1ac96db4" }, "downloads": -1, "filename": "markdown-code-blocks-1.0.0.tar.gz", "has_sig": false, "md5_digest": "24e22baac48b165096c8c3bd7b1c913e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1262, "upload_time": "2017-03-14T04:29:03", "url": "https://files.pythonhosted.org/packages/eb/dc/de0ef3f133eaed4075390b8e884853126b0f6a4cb4bbe3f01ed900ec2f41/markdown-code-blocks-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "d63526e6faf4c310c5b4c872c55fa947", "sha256": "04e20ca5bb5affcce2166eba09439c0cbb37328f63ac2fceb6d54ffa44da6b1a" }, "downloads": -1, "filename": "markdown_code_blocks-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d63526e6faf4c310c5b4c872c55fa947", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 2676, "upload_time": "2017-03-26T20:12:22", "url": "https://files.pythonhosted.org/packages/83/9b/a3819f5eb630cd8ba4b519d4aca32f8a9d721829f1a78500bbbdf775dea8/markdown_code_blocks-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c2278027b9677044228bac943a3cbd5c", "sha256": "449cefec70c141fc90f3e674b81e278a5c9940c06dccfed7939dbcfefb793b9c" }, "downloads": -1, "filename": "markdown-code-blocks-1.1.0.tar.gz", "has_sig": false, "md5_digest": "c2278027b9677044228bac943a3cbd5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1270, "upload_time": "2017-03-26T20:12:24", "url": "https://files.pythonhosted.org/packages/80/b8/853f2c30f7522c64eb6136ee1ec1bd49f671d6ebcd49861b5d0dab051120/markdown-code-blocks-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "7b6f06e68828c115390d4d9118cbcb4f", "sha256": "5f28537f1e7de4512a0521a8af134b2af9254b66f8df66f2d12b64cfab9ac9f8" }, "downloads": -1, "filename": "markdown_code_blocks-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b6f06e68828c115390d4d9118cbcb4f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3218, "upload_time": "2017-04-10T19:33:10", "url": "https://files.pythonhosted.org/packages/11/aa/de9cac6c3b5e660af65ba979a2fe944c7e21bdf56b4c48a2e11d0e3c3cca/markdown_code_blocks-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "03cb716135cd3ea2a7123292fa0aa986", "sha256": "71b6cdb6241f67ab783dd17dc09090dbd6c0d10c48e2d44c6c755d02808cf61c" }, "downloads": -1, "filename": "markdown-code-blocks-1.2.0.tar.gz", "has_sig": false, "md5_digest": "03cb716135cd3ea2a7123292fa0aa986", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1550, "upload_time": "2017-04-10T19:33:11", "url": "https://files.pythonhosted.org/packages/21/20/93878d3c9de82177de33ddaabfddb285716d7eabbc72866c6261dcac0ed1/markdown-code-blocks-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "b067cffca82093cf2db5594533cc2076", "sha256": "1d68354d634a10712ef6606f2afb4832ed86d4f72d70d01b12de0522f9011eaf" }, "downloads": -1, "filename": "markdown_code_blocks-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b067cffca82093cf2db5594533cc2076", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3132, "upload_time": "2018-12-02T02:20:31", "url": "https://files.pythonhosted.org/packages/cb/73/41c7370ea241622b384f3a988b6ba8ec6754cb43ca8b7223d757ce80626e/markdown_code_blocks-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9333e21da1102c1b00320e64efa2b40d", "sha256": "4af979818395696d611e2a1da223af50e823371e818db72412f2f284ffff25b1" }, "downloads": -1, "filename": "markdown-code-blocks-1.3.0.tar.gz", "has_sig": false, "md5_digest": "9333e21da1102c1b00320e64efa2b40d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2233, "upload_time": "2018-12-02T02:20:32", "url": "https://files.pythonhosted.org/packages/f3/64/fe6d5920d76edf4e7777363490d6746c1cfa3d624424c4f3ea2d1b64c348/markdown-code-blocks-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "b6dad5d813ab0456229cf2fe7f479634", "sha256": "d1f68e8e112e53a811f247fa3adaa57ba5d9f9bf926e664b8d7af03e46b25130" }, "downloads": -1, "filename": "markdown_code_blocks-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b6dad5d813ab0456229cf2fe7f479634", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3818, "upload_time": "2019-02-28T06:54:54", "url": "https://files.pythonhosted.org/packages/9f/a9/1f172bf938cce74d9f9f7f710d71bdbb82d98e44c9bd24001ab1c0760fae/markdown_code_blocks-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "797666197d2ebdb8d2f214f5609b639f", "sha256": "7526bed89fce31de00dd4c4b16dfa9c61baafc5dd98f608c278e37fcc53f6711" }, "downloads": -1, "filename": "markdown_code_blocks-1.4.0.tar.gz", "has_sig": false, "md5_digest": "797666197d2ebdb8d2f214f5609b639f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3219, "upload_time": "2019-02-28T06:54:56", "url": "https://files.pythonhosted.org/packages/c4/1d/f968283cad40e9f79ee0b57f57b9b3ad0ccd57cb264e1c99a313eb4f37fd/markdown_code_blocks-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b6dad5d813ab0456229cf2fe7f479634", "sha256": "d1f68e8e112e53a811f247fa3adaa57ba5d9f9bf926e664b8d7af03e46b25130" }, "downloads": -1, "filename": "markdown_code_blocks-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b6dad5d813ab0456229cf2fe7f479634", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3818, "upload_time": "2019-02-28T06:54:54", "url": "https://files.pythonhosted.org/packages/9f/a9/1f172bf938cce74d9f9f7f710d71bdbb82d98e44c9bd24001ab1c0760fae/markdown_code_blocks-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "797666197d2ebdb8d2f214f5609b639f", "sha256": "7526bed89fce31de00dd4c4b16dfa9c61baafc5dd98f608c278e37fcc53f6711" }, "downloads": -1, "filename": "markdown_code_blocks-1.4.0.tar.gz", "has_sig": false, "md5_digest": "797666197d2ebdb8d2f214f5609b639f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 3219, "upload_time": "2019-02-28T06:54:56", "url": "https://files.pythonhosted.org/packages/c4/1d/f968283cad40e9f79ee0b57f57b9b3ad0ccd57cb264e1c99a313eb4f37fd/markdown_code_blocks-1.4.0.tar.gz" } ] }