{ "info": { "author": "Dmitry Shachnev", "author_email": "mitya57@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: General", "Topic :: Text Processing :: Markup" ], "description": "\n.. image:: https://api.travis-ci.org/retext-project/pymarkups.svg\n :target: https://travis-ci.org/retext-project/pymarkups\n :alt: Travis CI status\n.. image:: https://codecov.io/gh/retext-project/pymarkups/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/retext-project/pymarkups\n :alt: Coverage status\n.. image:: https://readthedocs.org/projects/pymarkups/badge/?version=latest\n :target: https://pymarkups.readthedocs.io/en/latest/\n :alt: ReadTheDocs status\n\nThis module provides a wrapper around various text markup languages.\n\nAvailable by default are Markdown_, reStructuredText_ and Textile_, but you\ncan easily add your own markups.\n\nUsage example:\n\n.. code:: python\n\n >>> import markups\n >>> markup = markups.get_markup_for_file_name(\"myfile.rst\")\n >>> markup.name\n 'reStructuredText'\n >>> markup.attributes[markups.common.SYNTAX_DOCUMENTATION]\n 'http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html'\n >>> text = \"\"\"\n ... Hello, world!\n ... =============\n ...\n ... This is an example **reStructuredText** document.\n ... \"\"\"\n >>> result = markup.convert(text)\n >>> result.get_document_title()\n 'Hello, world!'\n >>> print(result.get_document_body()) # doctest: +NORMALIZE_WHITESPACE\n
This is an example reStructuredText document.
\n