Skip to content
Permalink
Browse files

Document #2149 (cc @bameda)

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Oct 20, 2015
1 parent f23316b commit 9bf05a5af75f4a51683372a0ef79fa37affcdd77
Showing with 7 additions and 2 deletions.
  1. +1 −0 AUTHORS.txt
  2. +1 −0 CHANGES.txt
  3. +3 −0 docs/manual.txt
  4. +2 −2 nikola/plugins/compile/markdown/mdx_nikola.py
@@ -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>`_
@@ -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.
@@ -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
````````````````````````

@@ -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')

0 comments on commit 9bf05a5

Please sign in to comment.
You can’t perform that action at this time.