Small utility to help moving from Jekyll/Octopress textile to Nikola ReStructured Text
Project description
============== =============== ========= ============
VERSION DOWNLOADS TESTS COVERAGE
============== =============== ========= ============
|pip version| |pip downloads| |travis| |coveralls|
============== =============== ========= ============
Small utility to help moving from Jekyll/Octopress Textile file to standard ReStructured Text.
Installation
------------
.. code:: bash
pip install textile2rst
Usage
-----
.. code:: bash
python -m textile2rst filename.textile
What does it do?
----------------
#. Replaces ``<!-- more -->`` by ``.. more``
#. Replaces ``<br/>`` by ``----``
#. Replaces section titles
#. Replaces Jekyll/Octopress code style with directive ``highlight`` into RST format with ``.. code::``
#. Replaces inline links by RST links, gathering them all at the end.
What doesn't it do?
-------------------
#. If you used underscores to set bold or italic, it won't translate it and RST parsers will fail.
#. It doesn't change the metadata in YAML
#. Change the internal references with Jekyll directive ``post_url``
#. Manage any other directive.
.. |travis| image:: https://travis-ci.org/magmax/textile2rst.png
:target: `Travis`_
:alt: Travis results
.. |coveralls| image:: https://coveralls.io/repos/magmax/textile2rst/badge.png
:target: `Coveralls`_
:alt: Coveralls results_
.. |pip version| image:: https://pypip.in/v/textile2rst/badge.png
:target: https://pypi.python.org/pypi/textile2rst
:alt: Latest PyPI version
.. |pip downloads| image:: https://pypip.in/d/textile2rst/badge.png
:target: https://pypi.python.org/pypi/textile2rst
:alt: Number of PyPI downloads
VERSION DOWNLOADS TESTS COVERAGE
============== =============== ========= ============
|pip version| |pip downloads| |travis| |coveralls|
============== =============== ========= ============
Small utility to help moving from Jekyll/Octopress Textile file to standard ReStructured Text.
Installation
------------
.. code:: bash
pip install textile2rst
Usage
-----
.. code:: bash
python -m textile2rst filename.textile
What does it do?
----------------
#. Replaces ``<!-- more -->`` by ``.. more``
#. Replaces ``<br/>`` by ``----``
#. Replaces section titles
#. Replaces Jekyll/Octopress code style with directive ``highlight`` into RST format with ``.. code::``
#. Replaces inline links by RST links, gathering them all at the end.
What doesn't it do?
-------------------
#. If you used underscores to set bold or italic, it won't translate it and RST parsers will fail.
#. It doesn't change the metadata in YAML
#. Change the internal references with Jekyll directive ``post_url``
#. Manage any other directive.
.. |travis| image:: https://travis-ci.org/magmax/textile2rst.png
:target: `Travis`_
:alt: Travis results
.. |coveralls| image:: https://coveralls.io/repos/magmax/textile2rst/badge.png
:target: `Coveralls`_
:alt: Coveralls results_
.. |pip version| image:: https://pypip.in/v/textile2rst/badge.png
:target: https://pypi.python.org/pypi/textile2rst
:alt: Latest PyPI version
.. |pip downloads| image:: https://pypip.in/d/textile2rst/badge.png
:target: https://pypi.python.org/pypi/textile2rst
:alt: Number of PyPI downloads
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
textile2rst-0.0.1.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textile2rst-0.0.1.tar.gz.
File metadata
- Download URL: textile2rst-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b6e76b5f281711aa6bcc8c3bcb2010e588e2154d949ae0bd1c2a39735d07a2d
|
|
| MD5 |
ee13ef345c9de1b802fc26f78e918ab0
|
|
| BLAKE2b-256 |
4f9081acdc5eaa835ba99977e2f290cf26b7f38d288e051d073b52a00cd6805f
|
File details
Details for the file textile2rst-0.0.1-py2-none-any.whl.
File metadata
- Download URL: textile2rst-0.0.1-py2-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3900d904368568e241aa426c2f90002640a52806006734459b637429b5b958c1
|
|
| MD5 |
471a193ff1e46dea8c91dc7fbd95e679
|
|
| BLAKE2b-256 |
f1a3ec991fd971738eb64236914a8e415f16862a23468a5d8f6d086a179959d8
|