Skip to content
Permalink
Browse files
Add Mistune compiler
  • Loading branch information
ralsina committed Sep 24, 2016
1 parent 994cd2e commit 34c3b9af72f40db9e573ddb531a955551015906c
Showing with 3 additions and 3 deletions.
  1. +3 −3 v7/mistune/mistune.py
@@ -24,7 +24,7 @@
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

"""Implementation of compile_html based on CommonMark."""
"""Implementation of compile_html based on Mistune."""

from __future__ import unicode_literals

@@ -54,10 +54,10 @@ class CompileMistune(PageCompiler):
def __init__(self, *args, **kwargs):
super(CompileMistune, self).__init__(*args, **kwargs)
if mistune is not None:
self.parser = Cmistune.Markdown()
self.parser = mistune.Markdown()

def compile_html(self, source, dest, is_two_file=True):
if CommonMark is None:
if mistune is None:
req_missing(['mistune'], 'build this site (compile with mistune)')
makedirs(os.path.dirname(dest))
with codecs.open(dest, "w+", "utf8") as out_file:

0 comments on commit 34c3b9a

Please sign in to comment.