Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Markdown live preview in Textarea?

Are there any Javascript Markdown editing toolbars or libraries that show the live preview within the textarea and hide the formatting marks (**, ___ etc), similar to TinyMCE's implementation?

If not, how would I go about implementing this in jQuery?

I'm currently using MarkItUp, which only shows the preview after the textarea, or in a pop-up.

This post refering to 'BlueCloth' sounds close, but although im interested in general implementation a RoR version isn't very useful at this stage (I'm using Python/Zope).

I'm aware that most of the beauty of Markdown is it's simple text formatting characters, but the site in question is fairly non-technical and I'm largely using the Markdown Python library for it's 'evil' html stipping abilities.

UPDATE: In response to comments, I suppose I'd be happy for the formatting marks to display if typed, but not if the toolbar is used (i.e. I'm assuming GUI users are less technical users).

Or, other toolbars have a 'source' view, which might be an option.

like image 516
Jon Hadley Avatar asked Nov 01 '25 01:11

Jon Hadley


1 Answers

if you need markdown support right in textarea with no additional GUI, then textarea-markdown might be helpful

like image 167
Seid Akhmed Agitaev Avatar answered Nov 02 '25 13:11

Seid Akhmed Agitaev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!