2013-09-19 Railsã§ã«ã¹ã¿ã markdownãå®è£ ãã Railsã§ããã°å®è£ ããããªããã¨ãªãã§ããï¼ ãã®éã«è¨æ³ã®é¸æè¢ã®ä¸ã¤ã«markdownãåºã¦ããã¨æãã¾ãã redcarpetã使ãã¨ç°¡åã«markdownãå®è£ ã§ããã®ã§ããã®æ¹æ³ãã¾ã¨ãã¾ããã Redcarpetã§markdownãå®è£ ãã Gemfileã«redcarpetã追å gem 'redcarpet' helperã«ã¡ã½ãããä½ã app/helpers/markdown_helper.rb ãªã©ä½ã£ã¦ã module MarkdownHelper def markdown(text) unless @markdown renderer = Redcarpet::Render::HTML.new @markdown = Redcarpet::Markdown.new(renderer) e
{{#tags}}- {{label}}
{{/tags}}