Skip to content
Permalink
Browse files

Fix style

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 5, 2016
1 parent 9ea1f69 commit aa1c1b36d4d11361ef29f9c54469f5cf7b0de31b
Showing with 4 additions and 2 deletions.
  1. +1 −1 CHANGES.txt
  2. +3 −1 nikola/plugins/compile/rest/__init__.py
@@ -4,7 +4,7 @@ New in master
Features
--------

* New ``sc`` or ``html`` reSt role, which passes content unaltered (Issue #1854)
* New ``sc`` or ``html`` reST role, which passes content unaltered (Issue #1854)
* Point the user to our users site after 1st successful deploy (Issue #2096)
* Option to disable color output using ``NIKOLA_MONO`` environment
variable (Issue #2360)
@@ -193,8 +193,10 @@ def new_document(self):
document.reporter.attach_observer(get_observer(self.l_settings))
return document


def shortcode_role(name, rawtext, text, lineno, inliner,
options={}, content=[]):
options={}, content=[]):
"""A shortcode role that passes through raw inline HTML."""
return [docutils.nodes.raw('', text, format='html')], []

roles.register_canonical_role('raw-html', shortcode_role)

0 comments on commit aa1c1b3

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