views:

229

answers:

2

Hi,

I'm currently working on a Flex 3.0 project in which I have to display some input text with minimum formatting.

We are considering to use "markdown" as the chosen way to express this formatting, now I would like to know if there is a library for this purpose.

+2  A: 

There is this version in javascript, which should be easy-ish to convert to actionscript:

http://attacklab.net/showdown/

Jos
+1  A: 

You could use my AS3 port of John Fraser's Showdown.

// Usage:
var text = "Markdown *rocks*.";
var html = Showdown.makeHtml(text);

// <p>Markdown <em>rocks</em>.</p>
Charles
Nice, thank you!
Franky-D
@Franky-D: Sure thing. The real kudos go to John Fraser and John Gruber. If you diff my Showdown.as against showdown.js, you'll see that I had to change very little to make it valid AS3.
Charles