Cocoa 应用程序最简单的 Markdown 实现是什么? [英] What is the simplest implementation of Markdown for a Cocoa application?

查看:28
本文介绍了Cocoa 应用程序最简单的 Markdown 实现是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用 Objective-C 编写 Cocoa 应用程序,我希望能够合并 Markdown.用户以 Markdown 语法输入文本,点击导出"按钮,程序将输出一个 XHTML 文件.

I'm writing a Cocoa application in Objective-C, and I would like to be able to incorporate Markdown. The user will enter text in Markdown syntax, click an "export" button, and the program will output a file of XHTML.

不过,似乎有很多选择.我可以使用 C/C++ 实现之一,我可以将 Perl 脚本作为资源运行到我的 Cocoa 应用程序,我假设可以使用 Python 实现和 PyObjC 桥或 Perl实现和 CamelBones 或 PerlObjC 桥接.什么是最简单和最简单的解决方案?我没有做任何复杂的事情,比如需要线程处理的实时渲染预览.

It seems like there are a lot of options, though. I could use one of the C/C++ implementations, I could run the Perl script as a resource to my Cocoa app, I assume could use the Python implementation and the PyObjC bridge or the Perl implementation and the CamelBones or PerlObjC bridges. What would be the simplest and easiest solution? I'm not doing anything complicated like a real-time rendered preview that would require threading.

推荐答案

您可能想查看开源应用 Macdown 是我写的(或者也是rentzsch的Markdownlive),它把这个功能作为这两个应用程序的唯一目的.

You may want to check out the open-source app Macdown which I wrote (or alternatively rentzsch's Markdownlive), which incorporate this functionality as the sole purpose of the two apps.

这篇关于Cocoa 应用程序最简单的 Markdown 实现是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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