Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixes for renderers.

- Textile was referencing markdown.
- cMarkdown isn't actually a drop in replacement, so don't use it.
  • Loading branch information...
commit 1ddfe30e48c62dc54eedfacda0cd77ed3029fe27 1 parent b05665f
@mythmon authored
Showing with 4 additions and 9 deletions.
  1. +4 −9 wok/
13 wok/
@@ -32,11 +32,7 @@ def render(cls, plain):
# Include markdown, if it is available.
- # Try to get the faster cMarkdown
- try:
- from cMarkdown import markdown
- except ImportError:
- from markdown import markdown
+ from markdown import markdown
class Markdown(Renderer):
"""Markdown renderer."""
@@ -79,7 +75,6 @@ def render(cls, plain):
# Include ReStructuredText Parser, if we have docutils
import docutils.core
from docutils.writers.html4css1 import Writer as rst_html_writer
from docutils.parsers.rst import directives
@@ -113,9 +108,9 @@ class Textile(Renderer):
def render(cls, plain):
return textile.textile(plain)
- all.append(Markdown2)
+ all.append(Textile)
-'Markdown not enabled.')
+'Textile not enabled.')
@@ -123,4 +118,4 @@ def render(cls, plain):
print("You probably want to install either a Markdown library (one of "
"'Markdown', or 'markdown2'), 'docutils' (for reStructuredText), or "
"'textile'. Otherwise only plain text input will be supported. You "
- "can install any of these like 'sudo pip install PACKAGE'.")
+ "can install any of these with 'sudo pip install PACKAGE'.")

0 comments on commit 1ddfe30

Please sign in to comment.
Something went wrong with that request. Please try again.