问题描述
我在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.
似乎有很多选项,但。我可以使用之一,我可以,我假设可以使用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.
推荐答案
您可能想要查看我写的开源应用程序(或者替代方式是rentzsch的),其中包含此功能作为两个应用程序的唯一目的。
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的最简单的实现是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!