jlegewie/SublimePeek

RI doesn't generate html, only Markdown

Opened this issue · 2 comments

In the help for my version of ri (4.0.0) it says

-f, --format=NAME                Uses the selected formatter. The default
                                 formatter is bs for paged output and ansi
                                 otherwise. Valid formatters are:
                                 ansi bs markdown rdoc

So when SublimePeek tries to generate --format html, it fails. What we need to do is generate markdown, and run it through pandoc, I think. I'd send a pull request, but I'm not fluent enough in Python to be confident. Would love to get it fixed though, it would be really useful!

I am not using ri so I don't really know the details. But quicklook can also show markdown files directly when you install an extension. Maybe that helps...

Brilliant, good point. Since I'm only using it for ruby, I simple search
and replaced .html with .md, and removed the <head...> line in write_html,
and now it works swimmingly. Someone who is better at Python than me should
update the package so it works with both Ruby and other tools.

Stian

On Wed, Mar 27, 2013 at 3:54 PM, jlegewie notifications@github.com wrote:

I am not using ri so I don't really know the details. But quicklook can
also show markdown files directly when you install an extension. Maybe that
helps...


Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-15549179
.

http://reganmian.net/blog -- Random Stuff that Matters