{ "info": { "author": "David L\u00f6nnhager", "author_email": "dv.lnh.d@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "=============\nhtml2markdown\n=============\n\n**Experimental**\n\n**Purpose**: Converts html to markdown while preserving unsupported html markup. The goal is to generate markdown that can be converted back into html. This is the major difference between html2markdown and html2text. The latter doesn't purport to be reversible.\n\nUsage example\n=============\n::\n\n\timport html2markdown\n\tprint html2markdown.convert('

Test

Here is some code
')\n\nOutput::\n\n\t## Test\n\t\n\t Here is some code\n\nInformation and caveats\n=======================\n\nDoes not convert the content of block-type tags other than ``

`` -- such as ``

`` tags -- into Markdown\n-------------------------------------------------------------------------------------------------------------\n\nIt does convert to markdown the content of inline-type tags, e.g. ````.\n\n**Input**: ``
this is stuff. stuff
``\n\n**Result**: ``
this is stuff. stuff
`` \n\n**Input**: ``

this is stuff. stuff

`` \n\n**Result**: ``this is stuff. __stuff__`` (surrounded by a newline on either side) \n\n**Input**: ``strike through some text here`` \n\n**Result**: ``strike __through__ some text here`` \n\nExcept in unprocessed block-type tags, formatting characters are escaped\n------------------------------------------------------------------------\n\n**Input**: ``

**escape me?**

`` (in html, we would use \\ here) \n\n**Result**: ``\\*\\*escape me?\\*\\*`` \n\n**Input**: ``**escape me?**`` \n\n**Result**: ``\\*\\*escape me?\\*\\*`` \n\n**Input**: ``
**escape me?**
`` \n\n**Result**: ``
**escape me?**
`` (block-type) \n\nAttributes not supported by Markdown are kept\n---------------------------------------------\n\n**Example**: ``link`` \n\n**Result**: ``[__link__](http://myaddress \"click me\")`` \n\n**Example**: ``link`` \n\n**Result**: ``__link__`` (the attribute *onclick* is not supported, so the tag is left alone) \n\n\nLimitations\n===========\n\n- Tables are kept as html.\n\nChanges\n=======\n\n0.1.7:\n\n- Improved handling of inline tags.\n- Fix: Ignore ```` tags without an href attribute.\n- Improve escaping.\n\n0.1.6: Added tests and support for Python versions below 2.7.\n\n0.1.5: Fix Unicode issue in Python 3.\n\n0.1.0: First version.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dlon/html2markdown", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "html2markdown", "package_url": "https://pypi.org/project/html2markdown/", "platform": "", "project_url": "https://pypi.org/project/html2markdown/", "project_urls": { "Homepage": "https://github.com/dlon/html2markdown" }, "release_url": "https://pypi.org/project/html2markdown/0.1.7/", "requires_dist": null, "requires_python": "", "summary": "Conservatively convert html to markdown", "version": "0.1.7" }, "last_serial": 4797979, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "56b7d0353da25c88919d2cb649a3355c", "sha256": "476e62be0d4996944a40c373d1e4a65a818f145f2965b2ec380ecc10fec4d7b8" }, "downloads": -1, "filename": "html2markdown-0.1.1.zip", "has_sig": false, "md5_digest": "56b7d0353da25c88919d2cb649a3355c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4025, "upload_time": "2017-01-22T00:56:13", "url": "https://files.pythonhosted.org/packages/4d/4b/d7be92d7ab8f113d8081c930a7560c84b5f7cd3d832a52fb291dcc0917a0/html2markdown-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "82a9021193299af9f8847892efc4a045", "sha256": "a83eaaa24973deac5026ede244a9f317d22b0a0890ec8e4c74fce007e9cf72a1" }, "downloads": -1, "filename": "html2markdown-0.1.2.zip", "has_sig": false, "md5_digest": "82a9021193299af9f8847892efc4a045", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4175, "upload_time": "2017-02-06T10:47:38", "url": "https://files.pythonhosted.org/packages/e9/fb/bc47d7734f4df773d3e799b04005b00172a9fd62205bed6d8343365e789b/html2markdown-0.1.2.zip" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "3e6047ea0554d2b772dc9e535fe24697", "sha256": "94d1ed5c202624d4504e37aae76c4882d5509a106903beb4d687dd3f0b17dda6" }, "downloads": -1, "filename": "html2markdown-0.1.5.zip", "has_sig": false, "md5_digest": "3e6047ea0554d2b772dc9e535fe24697", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4212, "upload_time": "2017-02-27T00:43:00", "url": "https://files.pythonhosted.org/packages/b9/cb/05779571addc11a93be215a2e0fb9748d586f43cfcee38a4a73753f391e5/html2markdown-0.1.5.zip" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "ee3f27cf9c453aaa85cf11cf044b3aa5", "sha256": "ff76035dfacc0830919ca5864ab2eb2546369b08709126cd8cef3b8bd23228de" }, "downloads": -1, "filename": "html2markdown-0.1.6.zip", "has_sig": false, "md5_digest": "ee3f27cf9c453aaa85cf11cf044b3aa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4208, "upload_time": "2018-06-06T06:38:10", "url": "https://files.pythonhosted.org/packages/91/5a/1c1a7c016e77af36248ad7c8dbf35dad9688d79a181bdc858b7b8a3d5f61/html2markdown-0.1.6.zip" } ], "0.1.6.post0": [ { "comment_text": "", "digests": { "md5": "eb4db46af8acce19eecc7510086623ba", "sha256": "1df1ebee075321f4675fa66f9409d532b57d889069d83e7eb0dbce896a628806" }, "downloads": -1, "filename": "html2markdown-0.1.6.post0.tar.gz", "has_sig": false, "md5_digest": "eb4db46af8acce19eecc7510086623ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4269, "upload_time": "2018-12-01T14:30:24", "url": "https://files.pythonhosted.org/packages/7a/d8/d749a4bd0e3528e218383d46ea83f215a7b5c3b9858261d5cc77ed759f54/html2markdown-0.1.6.post0.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "d066e82ee5f598c6d721dfa0529e2706", "sha256": "92baf932c7f216be6d9459a191d45b6401e204bda7a5413febafa875512cfa8c" }, "downloads": -1, "filename": "html2markdown-0.1.7.tar.gz", "has_sig": false, "md5_digest": "d066e82ee5f598c6d721dfa0529e2706", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5253, "upload_time": "2019-02-09T00:04:01", "url": "https://files.pythonhosted.org/packages/ba/05/666b8105c1c45ee05fcbcb210176c73638710e402b99c5968c5dfdf3c67d/html2markdown-0.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d066e82ee5f598c6d721dfa0529e2706", "sha256": "92baf932c7f216be6d9459a191d45b6401e204bda7a5413febafa875512cfa8c" }, "downloads": -1, "filename": "html2markdown-0.1.7.tar.gz", "has_sig": false, "md5_digest": "d066e82ee5f598c6d721dfa0529e2706", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5253, "upload_time": "2019-02-09T00:04:01", "url": "https://files.pythonhosted.org/packages/ba/05/666b8105c1c45ee05fcbcb210176c73638710e402b99c5968c5dfdf3c67d/html2markdown-0.1.7.tar.gz" } ] }