ActionScript library to convert Markdown to HTML

徘徊边缘 提交于 2020-01-01 03:15:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!