Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 2: Python & Markdown compatibility changes (#5)
Core functionality remains the same. Python and Python Markdown versions are changed. Repository infrastructure changed. - Add test/support for Python-Markdown 2.6 - Drop Support For: - Python 2.6 (EOL 2013) - Python 3.2 (EOL 2016) - Python-Markdown 2.4 (Superceded in 2014) - Fix Issue #2 - Setup.py errors; Description.rst missing - Replace coveralls with codecov - Add repository information such as AUTHORS and HISTORY - Update Makefile dist and release for PyPI changes
- Loading branch information
1 parent
0f0d061
commit 933e500
Showing
18 changed files
with
235 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[bumpversion] | ||
current_version = 2.0.0 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:setup.py] | ||
search = version='{current_version}' | ||
replace = version='{new_version}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
branches: | ||
only: | ||
- development | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.2" | ||
- "3.3" | ||
- "3.4" | ||
- "pypy" | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- pypy | ||
cache: | ||
pip: true | ||
env: | ||
- "MD_VERSION=2.4.1" | ||
- "MD_VERSION=2.5.1" | ||
- MD_VERSION=2.5 MD_NEXT=2.6 | ||
- MD_VERSION=2.6 MD_NEXT=2.7 | ||
install: | ||
- "pip install -q Markdown==$MD_VERSION" | ||
- "pip install ." | ||
- "pip install -r requirements/test_requirements.txt" | ||
- pip install -q "Markdown>=$MD_VERSION,<$MD_NEXT" | ||
- pip install . | ||
- pip install -r requirements/test_requirements.txt | ||
script: | ||
- "nosetests --with-coverage --cover-package=mdx_subscript" | ||
- nosetests --with-coverage --cover-branches --cover-package=mdx_subscript | ||
after_success: | ||
- "coveralls" | ||
matrix: | ||
exclude: | ||
- python: "2.6" | ||
env: "MD_VERSION=2.5.1" | ||
- codecov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
======= | ||
Credits | ||
======= | ||
|
||
Development Lead | ||
---------------- | ||
|
||
* Andrew Pinkham <http://AndrewsForge.com> | ||
|
||
Contributors | ||
------------ | ||
|
||
* Adrian <https://github.com/adi-> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
2.0.0 (2017-04-17) | ||
===== | ||
- Add test/support for Python-Markdown 2.6 | ||
- Drop Support For: | ||
- Python 2.6 (EOL 2013) | ||
- Python 3.2 (EOL 2016) | ||
- Python-Markdown 2.4 (Superceded in 2014) | ||
- Fix Issue #2 - Setup.py errors; Description.rst missing | ||
|
||
1.0.1 (2014-10-17) | ||
===== | ||
- Update for Python-Markdown 2.5 | ||
|
||
1.0.0 (2014-07-29) | ||
====== | ||
- Initial Release of Markdown Subscript Extension | ||
- Compatible with: | ||
- Python-Markdown 2.4 | ||
- Python 2.6, 2.7 | ||
- Python 3.2, 3.3, 3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
include AUTHORS.rst | ||
include README.rst | ||
|
||
include LICENSE | ||
|
||
recursive-include requirements *.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
Latest Release: |Version| | ||
|
||
Compatibility: |Implementation| |Python| |License| | ||
|
||
Tests: |Build| |Coverage| |Requirements| | ||
|
||
.. |Version| image:: http://img.shields.io/pypi/v/MarkdownSubscript.svg | ||
:target: https://pypi.python.org/pypi/MarkdownSubscript/ | ||
:alt: PyPI Version | ||
|
||
.. |Implementation| image:: https://img.shields.io/pypi/implementation/MarkdownSubscript.svg | ||
:target: https://pypi.python.org/pypi/MarkdownSubscript/ | ||
:alt: Python Implementation Support | ||
|
||
.. |Python| image:: https://img.shields.io/pypi/pyversions/MarkdownSubscript.svg | ||
:target: https://pypi.python.org/pypi/MarkdownSubscript/ | ||
:alt: Python Support | ||
|
||
.. |License| image:: http://img.shields.io/pypi/l/MarkdownSubscript.svg | ||
:target: http://opensource.org/licenses/BSD-2-Clause | ||
:alt: License | ||
|
||
.. |Build| image:: https://travis-ci.org/jambonrose/markdown_subscript_extension.svg?branch=development | ||
:target: https://travis-ci.org/jambonrose/markdown_subscript_extension | ||
:alt: Build Status | ||
|
||
.. |Coverage| image:: https://img.shields.io/coveralls/jambonrose/markdown_subscript_extension.svg | ||
:target: https://coveralls.io/r/jambonrose/markdown_subscript_extension | ||
:alt: Coverage Status | ||
|
||
.. |Requirements| image:: https://requires.io/github/jambonrose/markdown_subscript_extension/requirements.svg?branch=development | ||
:target: https://requires.io/github/jambonrose/markdown_subscript_extension/requirements/?branch=development | ||
:alt: Requirements Status | ||
|
||
======= | ||
Read Me | ||
======= | ||
|
||
An extension to the `Python Markdown`_ project which adds the ability to | ||
subscript text. To do so, the character :code:`~` becomes a Markdown tag | ||
for text meant to be subscripted, and is replaced with the HTML | ||
:code:`sub` tag. | ||
|
||
For example, given the text: :: | ||
|
||
The molecular composition of water is H~2~O. | ||
|
||
… using Markdown with this extension will output: | ||
|
||
.. code :: html | ||
<p>The molecular composition of water is H<sub>2</sub>O.</p> | ||
This project is provided under the `Simplified (2 Clause) BSD license`_, | ||
provided in full in the LICENSE file. | ||
|
||
.. _`Python Markdown`: https://pypi.python.org/pypi/Markdown | ||
.. _`Simplified (2 Clause) BSD license`: http://choosealicense.com/licenses/bsd-2-clause/ | ||
|
||
Installation | ||
------------ | ||
|
||
Dependencies: | ||
|
||
- Python 2.7, 3.3+ | ||
|
||
- Markdown 2.5+ | ||
(Tested against latest patch version of Markdown 2.5 and 2.6) | ||
|
||
To install the latest stable release (recommended): | ||
|
||
.. code :: bash | ||
pip install MarkdownSubscript | ||
To install the development version: | ||
|
||
.. code :: bash | ||
pip install git+git://github.com/jambonrose/markdown_subscript_extension.git | ||
Basic Usage | ||
----------- | ||
|
||
Python | ||
^^^^^^ | ||
|
||
.. code :: pycon | ||
>>> from markdown import markdown | ||
>>> text = "The molecular composition of water is H~2~O." | ||
>>> markdown(text, ['subscript']) | ||
'<p>The molecular composition of water is H<sub>2</sub>O.</p>' | ||
Command Line | ||
^^^^^^^^^^^^ | ||
|
||
.. code :: bash | ||
$ echo 'The molecular composition of water is H~2~O.' > text.md | ||
$ python -m markdown -o html5 -x 'subscript' -f text.html text.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
docutils | ||
flake8 | ||
pylint | ||
wheel | ||
twine | ||
bumpversion==0.5.3 | ||
docutils==0.13.1 | ||
flake8==3.3.0 | ||
tox==2.7.0 | ||
twine==1.8.1 | ||
wheel==0.29.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Markdown>=2.0 | ||
Markdown>=2.5,<2.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nose | ||
coverage | ||
coveralls | ||
codecov==2.0.5 | ||
coverage==4.3.4 | ||
nose==1.3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
universal = 1 |
Oops, something went wrong.