Skip to content

Commit

Permalink
Document #2149 (cc @bameda)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Oct 20, 2015
1 parent f23316b commit 9bf05a5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Expand Up @@ -22,6 +22,7 @@
* `Daniel Devine <https://github.com/DDevine>`_
* `Daniel F. Moisset <https://github.com/dmoisset>`_
* `David Beath <https://github.com/DBeath>`_
* `David Barragán Merino <https://github.com/bameda>`_
* `Dhruv Baldawa <https://github.com/dhruvbaldawa>`_
* `Dirk Engling <https://github.com/erdgeist>`_
* `Dmitry Verkhoturov <https://github.com/paskal>`_
Expand Down
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,7 @@ New in master
Features
--------

* Support for ``~~strikethrough~~`` in Markdown (Issue #2149)
* Hungarian translation (by Baptiste Darthenay)
* ``serve`` and ``auto`` publishes DNS Service Discovery records
to the local network announcing they’re running web servers.
Expand Down
3 changes: 3 additions & 0 deletions docs/manual.txt
Expand Up @@ -758,6 +758,9 @@ config option:

MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite', 'extra']

Nikola comes with some Markdown Extensions built-in and enabled by default,
namely a gist directive, a podcast directive, and ``~~strikethrough~~`` support.

IPython Notebook/Jupyter
````````````````````````

Expand Down
4 changes: 2 additions & 2 deletions nikola/plugins/compile/markdown/mdx_nikola.py
Expand Up @@ -63,15 +63,15 @@ def run(self, text):


class NikolaExtension(MarkdownExtension, Extension):
"""MNikola markdown extensions."""
"""Nikola Markdown extensions."""

def _add_nikola_post_processor(self, md):
"""Extend Markdown with the postprocessor."""
pp = NikolaPostProcessor()
md.postprocessors.add('nikola_post_processor', pp, '_end')

def _add_strikethrough_inline_pattern(self, md):
"""Support PHP-Markdown style strikethrough.For example: ``~~strike~~``."""
"""Support PHP-Markdown style strikethrough, for example: ``~~strike~~``."""
pattern = SimpleTagPattern(STRIKE_RE, 'del')
md.inlinePatterns.add('strikethrough', pattern, '_end')

Expand Down

0 comments on commit 9bf05a5

Please sign in to comment.