哪种标记语言?降价还是? [英] Which markup language? Markdown or?

查看:94
本文介绍了哪种标记语言?降价还是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在寻找要在项目中使用的标记语言.我想允许网站访问者使用标记语言(而非HTML)来编辑类似页面的Wiki.

I am currently looking for a markup language to use in a project. I want to allow site vistors to edit a wiki like page using a markup language (not HTML).

我正在Ruby on Rails上实现此站点,并且希望(尽管不受限制)使用以gem形式提供了强大支持的东西.

I am implementing this site in Ruby on Rails, and would prefer (although not bound) to use something that already has strong support in the form of a gem.

我正在寻找一种使用标记语言的主要内容:

There are a few main things I am looking for in a markup language:

  • 它需要易于使用 非技术人群.

  • It needs to be easy to use for a non-technical crowd.

需要从跨站点安全 脚本攻击.

It needs to be safe from cross site scripting attacks.

它需要相对有用 Wiki中的通用标记 页面.

It needs to be relatively useful for general purpose markup found in wiki pages.

理想的支持就在那里 宝石的形式.

Ideally support would have be there in the form of a gem.

理想情况下是所见即所得的编辑器(或至少是 有像这样的助手的编辑 在SO上)将会存在.

Ideally a WYSIWYG editor (or at least an editor with helpers like the one on SO) would exist.

通过对流行的标记语言的简要调查,我倾向于Markdown,只是因为它似乎在RoR中得到了很好的支持,而且(如果我没有记错的话)它似乎也不受跨站点脚本攻击的影响.

From a brief survey of the popular markup language I am inclined to go with Markdown, only because it seems to have good support in RoR and (if I am not mistaken) it also appears to be free from cross site scripting exploits.

这些有效的观察结果吗? Markdown下跌了什么?选择标记语言时,您还会考虑其他哪些方面?最重要的是,您会选择哪种标记语言?

Are these valid observations? What down falls are there to going with Markdown? What other concerns would you look at when choosing a markup language? And most importantly, which markup language would you choose?

任何信息,我们将不胜感激.

Any and all information would be appreciated.

作为旁注,我已经看过

As a side note, I've already looked at Compare and contrast the lightweight markup languages and it didn't directly address my concerns, but perhaps would be helpful for those looking at this question.----

推荐答案

克里奥尔语 a>?

这似乎非常适合Wiki,并且看起来具有Ruby支持,并且由于它还具有Javascript支持,因此可以设计类似于SO的编辑器.

That seems to be well suited for wikis, and looks to have Ruby support and since it also has Javascript support, so an editor similar to SO's can be crafted.

请参阅:

克里奥尔到HTML转换器

JavaScript Creole 1.0 Wiki标记解析器

这篇关于哪种标记语言?降价还是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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