Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rails_markdown_handler

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails_markdown_handler

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Rails Markdown Handler

Adds markdown template handling to rails using the

Redcarpet gem.

RailsMarkdownHandler will also parses ERB and embeded HTML.

Installation

gem "rails_markdown_handler"
$ bundle install

Usage

# app/config/routes.rb
get "/example", to: "pages#example"
# app/controllers/pages_controller.rb
class PagesController < ApplicationController
  def example
  end
end
app/views/pages/example.md
## This is an example

Configuration

You can configure the redcarpet renderer using an initializer.

# app/config/initializers/markdown.rb
RailsMarkdownHandler.configure do |config|
  config[:autolink] = false
end

FAQs

Package last updated on 24 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc