revolunet / sublimetext-markdown-preview

markdown preview and build plugin for sublime text 2/3
MIT License
2.31k stars 362 forks source link

Is it possible to support python markdown extensions #13

Closed microjo closed 12 years ago

microjo commented 12 years ago

rt.

I've tried to modified MarkdownPreview.py:

    # convert the markdown
    markdown_html = markdown.markdown(contents, extensions=['extra','toc'])

It's not working. I can't preview any file. How could I debug it? Thanks for this nice plugin anyway.

revolunet commented 12 years ago

For the debug you need to show the ST2 console ( View->Show console), here you can see the tracebacks.

Be sure to update the plugin to last release (this morning) before editing the code.

microjo commented 12 years ago

I've tried ST2 console, it only shows ValueError msgs.

I found import module is not working. don't know why..

Failed loading extension 'toc' from 'markdown.extensions.toc' or 'mdx_toc'
jlanza commented 12 years ago

have you already solve it?

microjo commented 12 years ago

nope.. don't know why.

neosunchess commented 12 years ago

Tried to use tables extension, no luck as well.

# convert the markdown
markdown_html = markdown.markdown(contents, extensions=['tables'])

Still no solution?

jlanza commented 12 years ago

I've posted on ST2 forum as I think the problem is that the sublime plugin manager doesn't support recursive directory for module recognizion. Only markdown is recongnized but not the module markdown.import. This is just a guess.

revolunet commented 12 years ago

tell me if it fits your need

microjo commented 11 years ago

it's very nice...