问题
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.
回答1:
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>
来源:https://stackoverflow.com/questions/820212/actionscript-library-to-convert-markdown-to-html