将 Markdown 转换为 HTML 的 ActionScript 库 [英] ActionScript library to convert Markdown to HTML

查看:23
本文介绍了将 Markdown 转换为 HTML 的 ActionScript 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在处理一个 Flex 3.0 项目,在该项目中我必须以最少的格式显示一些输入文本.

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

我们正在考虑使用markdown"作为表达这种格式的选择方式,现在我想知道是否有用于此目的的库.

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.

推荐答案

You can use my AS3 port of 约翰弗雷泽的摊牌.

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>

这篇关于将 Markdown 转换为 HTML 的 ActionScript 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆