带有实时预览的Rails Markdown编辑器

编程入门 行业动态 更新时间:2024-10-08 02:25:14
本文介绍了带有实时预览的Rails Markdown编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有任何与rails集成的markdown编辑器(例如在gem中)并提供实时预览?

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

推荐答案

结帐 markdown.js 和showdown .每当某些事件触发时(例如,用户在输入markdown文本区域时释放键),您都可以绑定它们以解析markdown输入的内容.我不知道还有其他带有实时预览的可嵌入降价编辑器,但是用其中一个库制作一个似乎很容易.

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.

更多推荐

带有实时预览的Rails Markdown编辑器

本文发布于:2023-05-31 14:00:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/393021.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编辑器   实时   Rails   Markdown

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!