railsでmarkdown形式でmarkdown形式で入力した文字列を表示できるようにしてみました. シンタックスハイライト(言語ごとに表示を合わせる)にも対応させました. 環境 source 'https://rubygems.org' gem 'rails', '4.2.6' gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.1.0' gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 2.0' gem 'sdoc', '~> 0.4.0', group: :doc gem 'redcarpet', '~> 2.3.0' #markdown gem 'coderay' group :development, :tes
![[Rails] Markdown形式で入力できるようにしてみた(シンタックスハイライトも対応) - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/49b9b1e638c85221c4cb2eeb33169a0056626471/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-412672c5f0600ab9a64263b751f1bc81.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9JTVCUmFpbHMlNUQlMjBNYXJrZG93biVFNSVCRCVBMiVFNSVCQyU4RiVFMyU4MSVBNyVFNSU4NSVBNSVFNSU4QSU5QiVFMyU4MSVBNyVFMyU4MSU4RCVFMyU4MiU4QiVFMyU4MiU4OCVFMyU4MSU4NiVFMyU4MSVBQiVFMyU4MSU5NyVFMyU4MSVBNiVFMyU4MSVCRiVFMyU4MSU5RiVFRiVCQyU4OCVFMyU4MiVCNyVFMyU4MyVCMyVFMyU4MiVCRiVFMyU4MyU4MyVFMyU4MiVBRiVFMyU4MiVCOSVFMyU4MyU4RiVFMyU4MiVBNCVFMyU4MyVBOSVFMyU4MiVBNCVFMyU4MyU4OCVFMyU4MiU4MiVFNSVBRiVCRSVFNSVCRiU5QyVFRiVCQyU4OSZ0eHQtYWxpZ249bGVmdCUy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