Skip to content

Commit

Permalink
Prepare v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jul 30, 2019
1 parent 4622caf commit 991c683
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 244 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "pypy"

script:
- python setup.py -q nosetests

after_success:
- pip install coveralls
- pip install codecov
- coverage run --source=mistune setup.py -q nosetests
- coveralls
- codecov

notifications:
email: false
Expand Down
205 changes: 2 additions & 203 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,208 +1,7 @@
Changelog
----------

Here is the full history of mistune.
Here is the full history of mistune v2.

Version 0.8.4
Version 2.0.0
~~~~~~~~~~~~~

Released on Oct. 11, 2018

* Support an escaped pipe char in a table cell. `#150`_
* Fix ordered and unordered list. `#152`_
* Fix spaces between = in HTML tags
* Add max_recursive_depth for list and blockquote.
* Fix fences code block.

.. _`#150`: https://github.com/lepture/mistune/pull/150
.. _`#152`: https://github.com/lepture/mistune/pull/152

Version 0.8.3
~~~~~~~~~~~~~

Relased on Dec. 04, 2017

* Fix nested html issue. `#137`_

.. _`#137`: https://github.com/lepture/mistune/pull/137


Version 0.8.2
~~~~~~~~~~~~~

Relased on Dec. 04, 2017

* Fix ``_keyify`` with lower case.


Version 0.8.1
~~~~~~~~~~~~~

Released on Nov. 07, 2017

* Security fix CVE-2017-16876, thanks Dawid Czarnecki

Version 0.8
~~~~~~~~~~~

Released on Oct. 26, 2017

* Remove non breaking spaces preprocessing
* Remove rev and rel attribute for footnotes
* Fix bypassing XSS vulnerability by junorouse

This version is strongly recommended, since it fixed
a security issue.

Version 0.7.4
~~~~~~~~~~~~~

Released on Mar. 14, 2017

* Fix escape_link method by Marcos Ojeda
* Handle block HTML with no content by David Baumgold
* Use expandtabs for tab
* Fix escape option for text renderer
* Fix HTML attribute regex pattern

Version 0.7.3
~~~~~~~~~~~~~

Released on Jun. 28, 2016

* Fix strikethrough regex
* Fix HTML attribute regex
* Fix close tag regex

Version 0.7.2
~~~~~~~~~~~~~

Released on Feb. 26, 2016

* Fix `hard_wrap` options on renderer.
* Fix emphasis regex pattern
* Fix base64 image link `#80`_.
* Fix link security per `#87`_.

.. _`#80`: https://github.com/lepture/mistune/issues/80
.. _`#87`: https://github.com/lepture/mistune/issues/87


Version 0.7.1
~~~~~~~~~~~~~

Released on Aug. 22, 2015

* Fix inline html when there is no content per `#71`_.

.. _`#71`: https://github.com/lepture/mistune/issues/71


Version 0.7
~~~~~~~~~~~

Released on Jul. 18, 2015

* Fix the breaking change in version 0.6 with options: **parse_inline_html** and **parse_block_html**
* Breaking change: remove **parse_html** option for explicit
* Change option **escape** default value to ``True`` for security reason


Version 0.6
~~~~~~~~~~~

Released on Jun. 17, 2015

* Breaking change on inline HTML, text in inline HTML will not be parsed per `#38`_.
* Replace **tag** renderer with **inline_html** for breaking change on inline HTML
* Double emphasis, emphasis, code, and strikethrough can contain one linebreak per `#48`_.
* Match autolinks that do not have / in their URI via `#53`_.
* A work around on link that contains ``)`` per `#46`_.
* Add ``<font>`` tag for inline tags per `#55`_.

.. _`#38`: https://github.com/lepture/mistune/issues/38
.. _`#46`: https://github.com/lepture/mistune/issues/46
.. _`#48`: https://github.com/lepture/mistune/issues/48
.. _`#53`: https://github.com/lepture/mistune/pull/53
.. _`#55`: https://github.com/lepture/mistune/issues/55


Version 0.5.1
~~~~~~~~~~~~~

Released on Mar. 10, 2015

* Fix a bug when list item is blank via `ipython#7929`_.
* Use python-wheels to build wheels for Mac.

.. _`ipython#7929`: https://github.com/ipython/ipython/issues/7929


Version 0.5
~~~~~~~~~~~

Released on Dec. 5, 2014. This release will break things.

* For custom lexers, **features** is replaced with **rules**.
* Refactor on function names and codes.
* Add a way to output the render tree via `#20`_.
* Fix emphasis and strikethrough regular expressions.

.. _`#20`: https://github.com/lepture/mistune/pull/20

Version 0.4.1
~~~~~~~~~~~~~

Released on Oct. 12, 2014

* Add option for parse markdown in block level html.
* Fix on lheading, any number of underline = or - will work.
* Patch for setup if Cython is available but no C compiler.

Version 0.4
~~~~~~~~~~~

Released on Aug. 14, 2014

* Bugfix. Use inspect to detect renderer class.
* Move all meth:`escape` to renderer. Use renderer to escape everything.
* A little changes in code style and parameter naming.
* Don't parse text in a block html, behave like sundown.

Version 0.3.1
~~~~~~~~~~~~~

Released on Jul. 31, 2014

* Fix in meth:`Renderer.block_code`, no need to add ``\n`` in ``<code>``.
* Trim whitespace of code in code span via `#15`_.

.. _`#15`: https://github.com/lepture/mistune/issues/15

Version 0.3
~~~~~~~~~~~

Released on Jun. 27, 2014

* Add ``<hr>`` in footnotes renderer
* Add hard_wrap configuration for GFM linebreaks.
* Add text renderer, via `#9`_.
* Define features for lexers available via `#11`_.

.. _`#9`: https://github.com/lepture/mistune/pull/9
.. _`#11`: https://github.com/lepture/mistune/pull/11

Version 0.2
~~~~~~~~~~~

Released on Mar. 12, 2014

* Use tuple instead of list for efficient
* Add ``line_match`` and ``line_started`` property on InlineLexer, via `#4`_

.. _`#4`: https://github.com/lepture/mistune/pull/4

Version 0.1
~~~~~~~~~~~

First preview release.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 - 2015, Hsiaoming Yang
Copyright (c) 2014, Hsiaoming Yang

All rights reserved.

Expand Down
30 changes: 26 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ import mistune
mistune.html(your_markdown_text)
```

## Sponsors

<table>
<tr>
<td><img align="middle" width="48" src="https://user-images.githubusercontent.com/2379650/45126032-50b69880-b13f-11e8-9c2c-abd16c433495.png"></td>
<td>Get professionally-supported Mistune with the <a href="https://tidelift.com/subscription/pkg/pypi-mistune?utm_source=pypi-mistune&utm_medium=referral&utm_campaign=readme">Tidelift Subscription</a>.
</td>
</tr>
</table>

[**Become a backer via Patreon**](https://www.patreon.com/lepture).

## Installation

Installing mistune with pip:
Expand All @@ -23,10 +35,20 @@ Installing mistune with pip:
$ pip install mistune
```

## Basic Usage

### `.html(text)`
## Security Reporting

If you found security bugs, please do not send a public issue or patch.
You can send me email at <me@lepture.com>. Attachment with patch is welcome.
My PGP Key fingerprint is:

```
72F8 E895 A70C EBDF 4F2A DFE0 7E55 E3E0 118B 2B4C
```

Or, you can use the [Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.

### `.markdown(text, escape, renderer, plugins)`
## License

## Advanced Usage
Mistune is licensed under BSD. Please see LICENSE for licensing details.
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ environment:
matrix:
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"

init:
- SET PATH=%PYTHON%;%PATH%
Expand Down
5 changes: 1 addition & 4 deletions mistune/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ def markdown(text, escape=True, renderer=None, plugins=None):
elif renderer == 'ast':
renderer = AstRenderer()

md = Markdown(renderer)
if plugins:
for plugin in plugins:
md.use(plugin)
md = Markdown(renderer, plugins=plugins)
return md(text)


Expand Down
2 changes: 1 addition & 1 deletion mistune/plugins/extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__all__ = ['plugin_url', 'plugin_strikethrough']


#: url link like: ``https://lepture.com/````````
#: url link like: ``https://lepture.com/``
URL_LINK_PATTERN = r'''(https?:\/\/[^\s<]+[^<.,:;"')\]\s])'''


Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ universal = 1
[check-manifest]
ignore =
.travis.yml
tox.ini

[coverage:report]
exclude_lines =
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def fread(filepath):
url='https://github.com/lepture/mistune',
author='Hsiaoming Yang',
author_email='me@lepture.com',
description='The fastest markdown parser in pure Python',
description='A sane Markdown parser with useful plugins',
long_description=fread('README.rst'),
license='BSD',
packages=[
Expand Down
27 changes: 0 additions & 27 deletions tox.ini

This file was deleted.

0 comments on commit 991c683

Please sign in to comment.