{ "info": { "author": "Roman A. Taycher", "author_email": "rtaycher1987@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "#Markdown Tags\n-----\n\nA small library for writing markdown with a tree structure of python objects that you can transform into a\nmarkdown snippet(string).\n\nI started it by extracting some code I wrote for a reddit bot.\n\nIt was partially inspired by looking at the ScalaTags examples(although not using it).\n\nex. 2 Paragraphs, 1 in Italic the other in Bold.\n\n import markdown_tags as m\n\n tags = m.MD(m.Paragraph(m.Italic(\"Italian\")), m.Paragraph(m.Bold(\"Boring, Portland\")))\n markdown_str = tags.tags_to_markdown(recover=False, format_md=m.MarkdownFormats.reddit)\n\n*returns a markdown string that will render as:*\n\n*Italian*\n\n**Boring, Portland**'\n\nex. of a nested list or a list with multi paragraph items.\n\n import markdown_tags as m\n\n\n tags = m.MD(m.UnorderedList.with_title(\"Maslow's hierarchy of needs partial outline\",\n m.OrderedList(\n m.UnorderedList.with_title(\"Physiological needs\",\n \"Air\",\n \"Water\"),\n m.UnorderedList.with_title(\"Safety needs\",\n \"Personal security\",\n \"Financial security\",\n \"Health and well-being\",\n \"Safety net against accidents/illness \" +\n \"and their adverse impacts\"),\n \"Love and belonging\",\n \"Esteem\",\n \"Self-actualization\"),\n \"Research\",\n \"Criticism\"))\n\n*returns a markdown string that will render as:*\n\n\n\nMaslow's hierarchy of needs partial outline\n\n+ Needs\n\n 1. Physiological needs\n\n + Air\n\n + Water\n\n 2. Safety needs\n\n + Personal security\n\n + Financial security\n\n + Health and well-being\n\n + Safety net against accidents/illness and their adverse impacts\n\n 3. Love and belonging\n\n 4. Esteem\n\n 5. Self-actualization\n\n+ Research\n\n+ Criticism\n\n\n*note that the discount markdown implementation used by reddit seems to translate this to html fine but it shows up\na little strange with outer unordered list w/ the same indentation as inner ordered list on reddit.*\n\nTested with the discount markdown implementation used by reddit.\nI might look into testing with other markdown implementations later.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://crouchofthewildtiger.com/", "keywords": "markdown tags", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "markdown_tags", "package_url": "https://pypi.org/project/markdown_tags/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/markdown_tags/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://crouchofthewildtiger.com/" }, "release_url": "https://pypi.org/project/markdown_tags/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "A small library for writing markdown with a tree structure of python objects that you can transform into a markdown snippet(string).", "version": "0.2.1" }, "last_serial": 1073163, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "1451d4c7b0d97c64ce8aede3953d4645", "sha256": "946937679c0a9d899ad453fd44f11dc8c67d1e4f55096066e7f54360d2220ce4" }, "downloads": -1, "filename": "markdown_tags-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1451d4c7b0d97c64ce8aede3953d4645", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5586, "upload_time": "2014-04-27T13:23:54", "url": "https://files.pythonhosted.org/packages/7b/c3/d838536cfe09ecea7e17a408451de9498f59d24a35f8d9c76cb01de48eee/markdown_tags-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "0fc68c6d607c27bfe14966804a16b5d1", "sha256": "6a51a3b29390d8a454926da7e3a4a6b86d88399a8ce058918436907a863e5aec" }, "downloads": -1, "filename": "markdown_tags-0.2.1.tar.gz", "has_sig": false, "md5_digest": "0fc68c6d607c27bfe14966804a16b5d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5567, "upload_time": "2014-04-27T13:27:18", "url": "https://files.pythonhosted.org/packages/ce/f4/5e549e21360e70e37bddd421fd1010ae094dd112f4373dfd1fbb66eeee26/markdown_tags-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0fc68c6d607c27bfe14966804a16b5d1", "sha256": "6a51a3b29390d8a454926da7e3a4a6b86d88399a8ce058918436907a863e5aec" }, "downloads": -1, "filename": "markdown_tags-0.2.1.tar.gz", "has_sig": false, "md5_digest": "0fc68c6d607c27bfe14966804a16b5d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5567, "upload_time": "2014-04-27T13:27:18", "url": "https://files.pythonhosted.org/packages/ce/f4/5e549e21360e70e37bddd421fd1010ae094dd112f4373dfd1fbb66eeee26/markdown_tags-0.2.1.tar.gz" } ] }