ActionScript library to convert Markdown to HTML

2019-03-20 16:31发布

问题:

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>