wmd

WMD markdown editor - HTML to Markdown conversion

I am using wmd markdown editor on a project and had a question: When I post the form containing the markdown text area, it (as expected) posts html to the server. However, say upon server-side validation something fails and I need to send the user back to edit their entry, is there anyway to refill the textarea with just the markdown a...

multiple wmd textareas on the same page

I'm trying to use the wmd markdown text editor for my site. I have two textareas on my page and I need the wmd editor for both. By default, it assigned it only to the first texarea, but how do I apply it to both textareas? Also, I always get an extra new line at the end of my markedup text that was saved by wmd. How can I prevent th...

WMD in Django Admin?

I know how to use WMD and other such javascript editors in regular django forms using widget=. However, how do I use WMD for text fields in the Django admin? On top of that, how do I use it for the content field on contrib.flatpages in the admin? Also, I think I might like to use the StackOverflow fork of WMD, so I would like any speci...

How to switch web app from HTML to Markdown?

I've got a django-powered site. Currently, all of the textfields are just plain old text inputs that take raw HTML. I have no fancy editor or anything. I would like to start using Markdown and WMD to make things easier for everyone. Do I have to run some sort of script to go over every text field in the database to convert all the HTML...

Should i sanitize markdown?

For my post entity i store both HTML and MARKDOWN in database (HTML is converted from MARKDOWN). HTML is for rendering on page and MARKDOWN for editing ability (with WMD). I sanitize HTML before storing to db. Question is: should i sanitize markdown too? or it is xss-safe if i only pass it to wmd-editor? ...

WMD Markdown showing in preview div

I have just implemented WMD for my editor in an ASP.NET app. The problem is the preview doesn't show the formatted HTML but the markdown instead. So if I use the (surrounded by double stars markdown syntax) I get exactly that in the preview, when I was expecting to get the html version of it. If I explicitly enter the html tags in the t...

mooWMD is Undefined?

First off here is the code! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <link href="content/wmd.css" rel="stylesheet" type="text/css" /> <title>some title </title> </head> <body> <div class="main"> ...

How to hide wmd editor initially?

<div style="display:none;"> <div id="wmd-editor" class="wmd-panel"> <div id="wmd-button-bar"></div> <textarea id="wmd-input"></textarea> </div> <div id="wmd-preview" class="wmd-panel"></div> <div id="wmd-output" class="wmd-panel"></div> </div> See,I'm following wmd-test.html of derobins-wmd,except put that st...

Having a Couple of Issues with Derobins's WMD

I've got a small issue with Derobin's implementation of WMD editor. It doesn't seem to be formatting properly and I'm not entirely sure why. Though I'm not sure if I should be asking this on Doctype or not either. I was using the markdown text examples from the SO reference, which of course should look like the below: Lists in a list...

Which WYSIWYM editor to use?

I need a WYSIWYM markdown editor for my web application and I heard WMD was the obvious choice. To my surprise WMD breaks in IE8. What other option do I have, or is there a version that's been tested on IE8 and is compatible? ...

How can I intercept and modify markdown from the wmd markdown editor before it posts?

I'm starting a Stack Exchange site and I want to be able to intercept the question text before and after the markdown script gets at it. I want to be be able to enter [custom-tag]stuff to be altered[/custom-tag] in the question window, and then have the stuff to be altered removed (as the standard markdown engine won't be able to interp...

How to combine wmd and prettify like SO?

Prettify need class="prettyprint" to be add to <pre> or <code>,how to let wmd do this? ...

WMD editor - how to create hyperlink on an image?

Using the WMD markdown editor, how can I create a hyperlink on an image ? I saw some people managed to do this, but how? ...

Simple HTML sanitizer in Javascript

I'm looking for a simple HTML santizer written in JavaScript. It doesn't need to be 100% XSS secure. I'm implementing Markdown and the WMD Markdown editor (The SO master branch from github) on my website. The problem is that the HTML that is shown in the live preview isn't filtered, like it here on SO. I am looking for a simple/quick HT...

How to add upload utility to wmd editor?

Has anyone succeeded to do this? ...

wmd markdown code problem

hi all i m using wmd markdown editor in my project and i have a problem with code tags: if i enter a code snippet , markdown does not convert to html correctly it converts in "<p>" tags but if i enter some text else first and then code snippet it converts correctly in "<code>" tags is this a bug of wmd markdown editor? and how can i solv...

markdown to HTML with customised WMD editor

For my application I customized slightly the way WMD behaves so when user enters empty lines, these are reflected in HTML output as <br />'s. Now I came to a point when I should store it somewhere at backend and so after going thru SO posts for a while I'm not sure what is the best way to do it. I have few options and if you could point ...

WMD Preview Doesn't Match Output

I am using WMD in a google app situation whereby the site administrator can update the pages of the site and the users see the information. The preview function is working fine and I can see the text the way I want it to appear, but when I am in the users section, the markdown is being returned without the formatting - how can i fix th...

which wmd-editor repository to use

I read that the original wmd-editor is no longer maintained so there was an effort to reverse engineer it, hosted on github. However this version is not ready because it references a number of undefined functions, for example: processHeadings is not defined /static/js/lib/plugins/wmd/showdown.js Line 66 There is also a version ...

wmd editor (jquery version) over ajax forms

i'm trying wmd editor over ajax. here there is the bugged code wdm code is based on openlibrary fork on github it work very good without ajax. but when i try to display editor over ajax form it doesn't load. non ajax version produce this html: <div id="wmd-container"> <div id="wmd-button-bar"></div> <div id="wmd-button-...