```ruby
module MarkdownHelper
  # Make auto-links target=_blank
  class TargetBlankRenderer < Redcarpet::Render::HTML
    def initialize(extensions = {})
      super extensions.merge(link_attributes: { target: '_blank' })
    end
  end

  # Render markdown
  def render_markdown(text)
    Redcarpet::Markdown.new(TargetBlankRenderer, autolink: true).render(
      text.to_s
    ).html_safe
  end
end
```

Enable redcarpet fenced code blocks
user
```ruby
module MarkdownHelper
  # Make auto-links target=_blank
  class TargetBlankRenderer < Redcarpet::Render::HTML
    def initialize(extensions = {})
      super extensions.merge(link_attributes: { target: '_blank' })
    end
  end

  # Render markdown
  def render_markdown(text)
    Redcarpet::Markdown.new(
      TargetBlankRenderer,
      autolink: true,
      fenced_code_blocks: true
    ).render(
      text.to_s
    ).html_safe
  end
end
```
assistant