Search code examples
ruby-on-railsrubymarkdownmaruku

Prevent Maruku from posting so many log warnings


I use Maruku in Rails simply to convert a Markdown file to HTML so I can use it with Nokogiri. (Maybe there's a better solution for that?) That works fine, but I get lots and lots of "Maruku tells you" messages in the log:

 ___________________________________________________________________________
| Maruku tells you:
+---------------------------------------------------------------------------
| Could not find ref_id = "FIX" for md_link("FIX", nil)
| Available refs are []
+---------------------------------------------------------------------------

That's really confusing and not needed here. Is there a way to silence Maruku so it only warns in the log if there's a real error?


Solution

  • Maybe try rdiscount gem?

    I find Maruku too verbose with errors and do not want to have to ignore all error.