Github flavored markdown as custom processor

Brian Bilman's Avatar

Brian Bilman

26 Jan, 2012 09:03 PM via web

Hi, using the directions http://support.markedapp.com/kb/how-to-tips-and-tricks/using-marked... and https://github.com/alampros/Docter/blob/master/bin/github-flavored-... , I keep getting the following error in the Console when I try to use the ruby script:

[0x0-0x5d15d1].com.brettterpstra.marky: /usr/local/bin/github-flavored-markdown.rb:24:in `markdown': undefined method `new' for Redcarpet:Module (NoMethodError)
[0x0-0x5d15d1].com.brettterpstra.marky:     from /usr/local/bin/github-flavored-markdown.rb:36

At first I tried running the ruby script directly from the command line, and I got the same error, then I realized that it requires redcarpet < 2.0, so I uninstalled that gem and reinstalled 1.17.2, and now I can successfully run the ruby script against a markdown file at the command line and get the formatted html. But within Marked it still gives the same error. I'm set to use ruby 1.9.2 as my default, could it be a version issue? I tried quitting and restarted Marked, same result. Any ideas?

  1. Support Staff 2 Posted by Brett on 27 Jan, 2012 03:15 AM

    Brett's Avatar

    Where's your ruby binary located? Marked looks specifically for /usr/bin/ruby right now and can't read RVM environments yet, so it's probably running whatever version you have as system base, which is likely a conflict with what you run on the command line.

  2. 3 Posted by Brian Billman on 27 Jan, 2012 03:38 AM

    Brian Billman's Avatar

    That did it, thanks! I just reverted ruby back with `rvm use system`
    and all is well. A note on that *Github flavored markdown as custom
    processor* page about the ruby version/location might be helpful.
    Thanks again!

    Brian

  3. Support Staff 4 Posted by Brett on 27 Jan, 2012 08:05 AM

    Brett's Avatar

    Glad it worked! I'll add a note :).

  4. Brett closed this discussion on 27 Jan, 2012 08:05 AM.

Comments are currently closed for this discussion. You can start a new one.