{"id":15589941,"url":"https://github.com/shimizukawa/rst2textile","last_synced_at":"2026-05-19T00:05:20.197Z","repository":{"id":138546877,"uuid":"277248434","full_name":"shimizukawa/rst2textile","owner":"shimizukawa","description":"rst2textile is docutils textile writer convert reStructuredText(rst) to Textile format.","archived":false,"fork":false,"pushed_at":"2020-07-05T06:59:17.000Z","size":145,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T15:24:54.210Z","etag":null,"topics":["rst","textile"],"latest_commit_sha":null,"homepage":"http://pypi.python.org/pypi/rst2textile","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shimizukawa.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-05T06:58:56.000Z","updated_at":"2020-07-05T07:25:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"e448ebfd-893a-456c-9591-e1a71c2207ca","html_url":"https://github.com/shimizukawa/rst2textile","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimizukawa%2Frst2textile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimizukawa%2Frst2textile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimizukawa%2Frst2textile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimizukawa%2Frst2textile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shimizukawa","download_url":"https://codeload.github.com/shimizukawa/rst2textile/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244648040,"owners_count":20487193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rst","textile"],"created_at":"2024-10-02T23:14:29.497Z","updated_at":"2026-05-19T00:05:20.156Z","avatar_url":"https://github.com/shimizukawa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"`rst2textile` is docutils textile writer convert reStructuredText(rst) to Textile format.\r\n\r\nFeatures\r\n==========\r\n\r\n* Docutils writer for textile.\r\n\r\n  * supported syntaxes are:\r\n\r\n    * headings: h1/h2..\r\n    * docinfo: field-list (like `:Date: today`) at top of rst file.\r\n    * paragraph\r\n    * emphasis: `*em*`\r\n    * strong: `**strong**`\r\n    * list-item: `* egg`\r\n    * enum-item: `#. ham`\r\n    * blockquote\r\n    * link: `\\`foo \u003chttp://example.com/\u003e\\`_`\r\n    * image: `.. image:: http://example.com/image.png`\r\n    * literal: `\\`\\`some code\\`\\`` and `::`\r\n    * some table syntax\r\n\r\n* Sphinx textile builder (experimental).\r\n\r\n  #. write conf.py `extensions = ['docutils_textile']`\r\n  #. build by `sphinx-build -b textile source _build/textile`\r\n\r\nInstall\r\n========\r\n\r\n::\r\n\r\n   $ pip install rst2textile\r\n\r\n\r\nIf you wanto to use unrelease version, you can install from repository::\r\n\r\n   $ pip install -e hg+https://bitbucket.org/shimizukawa/rst2textile#egg=rst2textile\r\n\r\n\r\nRun\r\n======\r\n\r\n::\r\n\r\n   $ rst2textile.py input.rst output.txt\r\n\r\nor::\r\n\r\n   $ python -m rst2textile input.rst output.txt\r\n\r\n\r\nTest\r\n=====\r\n\r\n::\r\n\r\n   $ python setup.py test\r\n\r\nor::\r\n\r\n   $ python test.py\r\n\r\n\r\nDepends\r\n========\r\n* Python 2.6, 2.7, 3.3, 3.4\r\n* Docutils 0.12, 0.11, 0.10\r\n\r\n\r\nLimitation\r\n============\r\n* Not supported: some textile syntax at http://redcloth.org/textile\r\n\r\n\r\nToDo\r\n=====\r\n* Documentation\r\n* Implement some textile format.\r\n\r\nCHANGES\r\n========\r\n\r\n0.2.1 (2014/10/04)\r\n------------------\r\n* Fix: number of table columns reduced to shorter row.\r\n\r\n\r\n0.2.0 (2014/10/04)\r\n------------------\r\n* add support textile table output. Thanks to tell-k.\r\n* remove pysetup related lines.\r\n* change supported python versions: 2.6, 2.7, 3.3, 3.4\r\n* change supported docutils versions: 0.12, 0.11, 0.10\r\n\r\n0.1.1 (2012/4/29)\r\n------------------\r\n* add supported python versions: 2.4, 2.5, 2.6, 3.1, 3.2, 3.3\r\n\r\n0.1.0 (2012/4/22)\r\n------------------\r\n* first release\r\n* supported syntax: h1/h2.., docinfo, paragraph, *em*, **strong**, list-item, enum-item, blockquote, link, image, literal\r\n\r\n\r\nConvert Samples\r\n==================\r\n\r\nHeading1\r\n---------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      ==========\r\n      Heading1\r\n      ==========\r\n\r\n   textile::\r\n\r\n      h1. Heading1\r\n\r\nHeadings\r\n---------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      ==========\r\n      Heading1\r\n      ==========\r\n\r\n      Heading2\r\n      ==========\r\n\r\n      Heading3\r\n      ----------\r\n\r\n      Heading4\r\n      ^^^^^^^^^^\r\n\r\n   textile::\r\n\r\n      h1. Heading1\r\n\r\n\r\n      h2. Heading2\r\n\r\n\r\n      h3. Heading3\r\n\r\n\r\n      h4. Heading4\r\n\r\n\r\nDocument Information\r\n-----------------------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      HelloWorld\r\n      ===========\r\n\r\n      :Date: Today\r\n      :Author: SpamEgg\r\n      :Location: Here\r\n\r\n   textile::\r\n\r\n      h1. HelloWorld\r\n\r\n      Date:\r\n         Today\r\n\r\n      Author:\r\n         SpamEgg\r\n\r\n      Location:\r\n         Here\r\n\r\nParagraph\r\n----------\r\n\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      Normal Text\r\n\r\n   textile::\r\n\r\n      Normal Text\r\n\r\nEmphasized\r\n-----------\r\n\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      *emphasized* (e.g., italics)\r\n\r\n   textile::\r\n\r\n      _emphasized_ (e.g., italics)\r\n\r\nStrongly emphasized\r\n--------------------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      **strongly emphasized** (e.g., boldface)\r\n\r\n   textile::\r\n\r\n      *strongly emphasized* (e.g., boldface)\r\n\r\nList items\r\n-----------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      - An item in a bulleted (unordered) list\r\n\r\n      - Another item in a bulleted list\r\n\r\n        - Second Level\r\n\r\n        * Second Level Items\r\n\r\n          * Third level\r\n\r\n   textile::\r\n\r\n      * An item in a bulleted (unordered) list\r\n      * Another item in a bulleted list\r\n      ** Second Level\r\n      ** Second Level Items\r\n      *** Third level\r\n\r\nEnumerated list items\r\n----------------------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      #. An item in an enumerated (ordered) list xxxxxxx\r\n      #. Another item in an enumerated list yyyyyy\r\n\r\n         #. Another level in an enumerated list vvvvvvvv\r\n         #. Another level in an enumerated list vvvvvvvv\r\n\r\n      #. 3rd element at indent level1\r\n\r\n   textile::\r\n\r\n      # An item in an enumerated (ordered) list xxxxxxx\r\n      # Another item in an enumerated list yyyyyy\r\n      ## Another level in an enumerated list vvvvvvvv\r\n      ## Another level in an enumerated list vvvvvvvv\r\n      # 3rd element at indent level1\r\n\r\nBlockquotes\r\n------------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      Blockquotes\r\n\r\n         This text will be enclosed in an HTML blockquote element.\r\n\r\n         Second Paragraph.\r\n\r\n   textile::\r\n\r\n      Blockquotes\r\n\r\n      bq. This text will be enclosed in an HTML blockquote element.\r\n      bq. Second Paragraph.\r\n\r\nLinks\r\n-------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      `link text and link target url \u003chttp://www.example.com/link/target/address\u003e`_\r\n\r\n   textile::\r\n\r\n      \"link text and link target url\":http://www.example.com/link/target/address\r\n\r\nImages\r\n-------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n       .. image:: http://example.com/image.jpg\r\n\r\n       .. figure:: local/image/path.png\r\n\r\n   textile::\r\n\r\n      !http://example.com/image.jpg!\r\n\r\n      !local/image/path.png!\r\n\r\n\r\nInner Reference\r\n----------------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      HelloWorld\r\n      ===========\r\n\r\n      reference to HelloWorld_ !\r\n\r\n   textile::\r\n\r\n      h1. HelloWorld\r\n\r\n      reference to \"HelloWorld\" !\r\n\r\n\r\nLiteral (code)\r\n----------------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      ::\r\n\r\n         class Foo(object):\r\n\r\n             def __init__(self, value):\r\n                 print \"value = %d\" % value\r\n                 raise NotImplementedError(u'EmptyClass')\r\n\r\n   textile::\r\n\r\n      \u003cpre\u003e\r\n      class Foo(object):\r\n\r\n          def __init__(self, value):\r\n              print \"value = %d\" % value\r\n              raise NotImplementedError(u'EmptyClass')\r\n      \u003c/pre\u003e\r\n\r\nTables\r\n----------------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      +------------------------+------------+----------+----------+\r\n      | Header row, column 1   | Header 2   | Header 3 | Header 4 |\r\n      | (header rows optional) |            |          |          |\r\n      +========================+============+==========+==========+\r\n      | body row 1, column 1   | column 2   | column 3 | column 4 |\r\n      +------------------------+------------+----------+----------+\r\n      | body row 2             | ...        | ...      |          |\r\n      +------------------------+------------+----------+----------+\r\n\r\n   textile::\r\n\r\n      |_.  Header row, column 1\r\n      (header rows optional)|_.  Header 2     |_.  Header 3   |_.  Header 4   |\r\n      | body row 1, column 1     | column 2     | column 3   | column 4   |\r\n      | body row 2               | ...          | ...        |            |\r\n\r\n\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      =====  =====  =======\r\n      A      B      A and B\r\n      =====  =====  =======\r\n      False  False  False\r\n      True   False  False\r\n      False  True   False\r\n      True   True   True\r\n      =====  =====  =======\r\n\r\n   textile::\r\n\r\n      |_.  A     |_.  B     |_.  A and B |\r\n      | False | False | False   |\r\n      | True  | False | False   |\r\n      | False | True  | False   |\r\n      | True  | True  | True    |\r\n\r\n\r\nCSV Table\r\n----------------\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      .. csv-table::\r\n         :header: \"Treat\", \"Quantity\", \"Description\"\r\n         :widths: 15, 10, 30\r\n\r\n         \"Albatross\", 2.99, \"On a stick!\"\r\n         \"Crunchy Frog\", 1.49, \"If we took the bones out, it wouldn't be\r\n         crunchy, now would it?\"\r\n         \"Gannet Ripple\", 1.99, \"On a stick!\"\r\n\r\n   textile::\r\n\r\n      |_.  Treat           |_.  Quantity   |_.  Description                    |\r\n      | Albatross       | 2.99       | On a stick!                    |\r\n      | Crunchy Frog    | 1.49       | If we took the bones out, it wouldn't be\r\n      crunchy, now would it?|\r\n      | Gannet Ripple   | 1.99       | On a stick!                    |\r\n\r\n\r\nList Table\r\n---------------\r\n\r\n.. container:: test, rst, textile\r\n\r\n   rst::\r\n\r\n      .. list-table::\r\n         :widths: 15 10 30\r\n         :header-rows: 1\r\n\r\n         * - Treat\r\n           - Quantity\r\n           - Description\r\n         * - Albatross\r\n           - 2.99\r\n           - On a stick!\r\n         * - Crunchy Frog\r\n           - 1.49\r\n           - If we took the bones out, it wouldn't be\r\n             crunchy, now would it?\r\n         * - Gannet Ripple\r\n           - 1.99\r\n           - On a stick!\r\n\r\n   textile::\r\n       \r\n       |_.  Treat           |_.  Quantity   |_.  Description                    |\r\n       | Albatross       | 2.99       | On a stick!                    |\r\n       | Crunchy Frog    | 1.49       | If we took the bones out, it wouldn't be\r\n       crunchy, now would it?|\r\n       | Gannet Ripple   | 1.99       | On a stick!                    |\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimizukawa%2Frst2textile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshimizukawa%2Frst2textile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimizukawa%2Frst2textile/lists"}