11

Are there any markdown editors that integrate with rails (eg in a gem) and offer live preview?

Jim L.
  • 6,177
  • 3
  • 21
  • 47
shoen
  • 11,845
  • 4
  • 22
  • 27

2 Answers2

9

Checkout markdown.js and showdown. You could rig them up to parse whatever the markdown input is whenever certain events fire (i.e. a user releasing a key when typing in the markdown textarea). I'm not aware of any other embeddable markdown editors with live previews, but it seems it would be easy enough to make one with one of these libraries.

Chris Schmitz
  • 8,097
  • 6
  • 31
  • 41
8

Check out the gem below, its not well documented but seems to work

https://github.com/zethussuen/epic-editor-rails

user1320651
  • 808
  • 2
  • 15
  • 42