Railsにマークダウンのリアルタイムプレビューを実装する - Qiita
サンプルコードのclassはBootstrapのclassです。 Vue.jsとmarked.jsを読み込む application.html.erb