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

查看:126
本文介绍了对于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天全站免登陆