{ "info": { "author": "radude", "author_email": "admin@rentry.co", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Text Processing :: Markup", "Topic :: Utilities" ], "description": "# Mdx Truly Sane Lists\n\n[![Build Status](https://travis-ci.org/radude/mdx_truly_sane_lists.svg?branch=master)](https://travis-ci.org/radude/mdx_truly_sane_lists)\n\n\nAn extension for [Python-Markdown](https://github.com/Python-Markdown/markdown) that makes lists truly sane. Features custom indents for nested lists and fix for messy linebreaks and paragraphs between lists.\n\n\n## Features\n\n* `nested_indent` option: Custom indent for nested lists. Defaults to `2`. Doesn't mess with code indents, which is still 4. \n\n* `truly_sane` option: Makes linebreaks and paragraphs in lists behave as usually expected by user. No longer adds weird `p`, no extra linebreaks, no longer fuses lists together when they shouldn't be fused (see screenshots and examples below). Defaults to `True`.\n\n* Inherits [sane lists](https://python-markdown.github.io/extensions/sane_lists/) behavior, which doesn't allow the mixing of ordered and unordered lists.\n\n\n## Installation\n\n##### [Pypi](https://pypi.python.org/pypi/mdx-truly-sane-lists):\n\n```console\npip3 install mdx_truly_sane_lists\n```\n\n##### Directly from git:\n\n```console\npip3 install git+git://github.com/radude/mdx_truly_sane_lists\n```\n\n## Usage\n\nBasic:\n\n```python\nfrom markdown import markdown\n\n# Default config is truly_sane: True, nested_indent: 2\nmarkdown(text='some text', extensions=['mdx_truly_sane_lists']) \n```\n\nWith explicit config:\n\n```python\nfrom markdown import markdown\n\nmarkdown(text='some text',\n extensions=[\n 'mdx_truly_sane_lists',\n ],\n extension_configs={\n 'mdx_truly_sane_lists': {\n 'nested_indent': 2,\n 'truly_sane': True,\n }},\n )\n```\n\n## Screenshots and examples\n\nYou can preview the new behaviour live at [rentry.co](https://rentry.co/) (uses `nested_indent: 2, truly_sane: True`)\n\n\nSome ugly screenshots because I'm lazy and cannot into gimp:\n\n![](https://i.imgur.com/7l2bWLY.png)\n![](https://i.imgur.com/Ruwfb2A.png)\n\n## HTML\n\nData:\n```markdown\n- attributes\n\n- customer \n - first_name\n - family_name\n - email\n- person\n - first_name\n - family_name\n - birth_date\n- subscription_id\n\n- request\n```\n\nNo extension:\n```html before\n\n```\n\nTruly sane + 4 spaces:\n```html\n\n\n\n```\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/radude/mdx_truly_sane_lists", "keywords": "markdown extension,markup,lists", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mdx-truly-sane-lists", "package_url": "https://pypi.org/project/mdx-truly-sane-lists/", "platform": "", "project_url": "https://pypi.org/project/mdx-truly-sane-lists/", "project_urls": { "Homepage": "https://github.com/radude/mdx_truly_sane_lists" }, "release_url": "https://pypi.org/project/mdx-truly-sane-lists/1.2/", "requires_dist": [ "Markdown (>=2.6)" ], "requires_python": "", "summary": "Extension for Python-Markdown that makes lists truly sane. Custom indents for nested lists and fix for messy linebreaks.", "version": "1.2" }, "last_serial": 4330026, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "68b5c992001188d9f2cb9c53fc74ca8c", "sha256": "f00be6d525ab3e4e4b45d96368853b0769c51c1512f262bf02c36b5f618dd013" }, "downloads": -1, "filename": "mdx_truly_sane_lists-1.0.tar.gz", "has_sig": false, "md5_digest": "68b5c992001188d9f2cb9c53fc74ca8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4431, "upload_time": "2018-02-09T10:33:42", "url": "https://files.pythonhosted.org/packages/d2/26/386d8cd35f124ae5cd470e427f5284611106d99365a42c365dd611f8c1bc/mdx_truly_sane_lists-1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "1fa0f262395481d717b250287018e9a5", "sha256": "9e97d1ba605b4b56ab064daac7bbcd1d766023879460dda6b84b3385813e9b09" }, "downloads": -1, "filename": "mdx_truly_sane_lists-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1fa0f262395481d717b250287018e9a5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4708, "upload_time": "2018-07-18T09:50:35", "url": "https://files.pythonhosted.org/packages/8f/33/7949856db297f013d561d2d036fc3f50d9aa3b977ec76cb6ef9e46c75b2e/mdx_truly_sane_lists-1.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cbdfa75e4f682eee7e853211c3760aff", "sha256": "1a7f698958f7b92d153cc25b20c20ba111fd2655a4c3c630d336e46b78ff9399" }, "downloads": -1, "filename": "mdx_truly_sane_lists-1.1.1.tar.gz", "has_sig": false, "md5_digest": "cbdfa75e4f682eee7e853211c3760aff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4048, "upload_time": "2018-07-18T09:50:36", "url": "https://files.pythonhosted.org/packages/a9/5d/c76eb86c5af9af08c17606f472a3bb666434d2d40b7c3e5503aa7d7f239b/mdx_truly_sane_lists-1.1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "ff146e0ce7d4e5abce9bd554e1fef792", "sha256": "cc8bfa00f331403504e12377a9c94e6b40fc7db031e283316baeeeeac68f1da9" }, "downloads": -1, "filename": "mdx_truly_sane_lists-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ff146e0ce7d4e5abce9bd554e1fef792", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5031, "upload_time": "2018-10-01T20:11:37", "url": "https://files.pythonhosted.org/packages/05/d8/50d108921125389b2853aab2a93a1dbcf469b52f2f8521bcf6a2410cc6e5/mdx_truly_sane_lists-1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bd9abadda506e80633b926bccb41f2b3", "sha256": "4600ade0fbd452db8233e25d644b62f59b2798e40595ea2e1923e29bc40c5b98" }, "downloads": -1, "filename": "mdx_truly_sane_lists-1.2.tar.gz", "has_sig": false, "md5_digest": "bd9abadda506e80633b926bccb41f2b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4484, "upload_time": "2018-10-01T20:11:38", "url": "https://files.pythonhosted.org/packages/26/94/a3f574c8e33072f96221e4524f476437b187c8a7f616f3e95f59f5f5ee13/mdx_truly_sane_lists-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ff146e0ce7d4e5abce9bd554e1fef792", "sha256": "cc8bfa00f331403504e12377a9c94e6b40fc7db031e283316baeeeeac68f1da9" }, "downloads": -1, "filename": "mdx_truly_sane_lists-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ff146e0ce7d4e5abce9bd554e1fef792", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5031, "upload_time": "2018-10-01T20:11:37", "url": "https://files.pythonhosted.org/packages/05/d8/50d108921125389b2853aab2a93a1dbcf469b52f2f8521bcf6a2410cc6e5/mdx_truly_sane_lists-1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bd9abadda506e80633b926bccb41f2b3", "sha256": "4600ade0fbd452db8233e25d644b62f59b2798e40595ea2e1923e29bc40c5b98" }, "downloads": -1, "filename": "mdx_truly_sane_lists-1.2.tar.gz", "has_sig": false, "md5_digest": "bd9abadda506e80633b926bccb41f2b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4484, "upload_time": "2018-10-01T20:11:38", "url": "https://files.pythonhosted.org/packages/26/94/a3f574c8e33072f96221e4524f476437b187c8a7f616f3e95f59f5f5ee13/mdx_truly_sane_lists-1.2.tar.gz" } ] }