Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown formatting doesn't work #27

Open
restless opened this issue Jun 15, 2009 · 1 comment
Open

Markdown formatting doesn't work #27

restless opened this issue Jun 15, 2009 · 1 comment

Comments

@restless
Copy link

Markdown highlighting doesn't work for me. There is a whole Markdown object passed to template from code_hilite.markdown_to_html function.

Current code in blog.utils.code_hilite is:

def markdown_to_html(text):
    """
    Convert markdown to HTML with code hiliting
    """
    md = MARKDOWN
    md.source = text
    return unicode(md)

it works for me only when I replace function's body with:

return markdown.markdown(text)

To have syntax highlighting working I have to use:

return markdown.markdown(text, extensions=('codehilite',))
@rizumu
Copy link

rizumu commented Aug 11, 2009

same issue for me, this fix makes it better. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants