ruby-on-railsredcarpet

Rails - Use Redcarpet as Markdown interpreter, how can I make all links have a html targer _blank attribute?


I use Redcarpet as my backend Markdown interpreter solution.

I want all links to have a html target attribute and its value equal to '_blank', but I can't find any solution for it.

Could any one help me? Thanks.


Solution

  • Finally I write JavaScript to handle it...

    I think this is the fastest way....