Skip to content

Commit

Permalink
Add Mistune compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Sep 24, 2016
1 parent 994cd2e commit 34c3b9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v7/mistune/mistune.py
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 34c3b9a

Please sign in to comment.