降价的规范实施是什么? [英] What is the canonical implementation of markdown?

查看:61
本文介绍了降价的规范实施是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用Clojure编写我自己的Markdown解析器的问题是Markdown并不是一种明确指定的语言.没有正式的"语法,只有非正式的这是它的工作方式"描述,以及Perl中非常丑陋的参考实现. http://briancarper.net/blog/415/

The problem with writing my own Markdown parser in Clojure is that Markdown is not a well-specified language. There is no "official" grammar, just an informal "Here's how it works" description and a really ugly reference implementation in Perl. http://briancarper.net/blog/415/

我可以在此处和实施这是赢得Google排名测试的实现,此处

This is an implementation that wins the google ranking test here

然后有 peg-markdown 似乎可以解决语法问题-但这不是规范的实现.

Then there is peg-markdown which appears to solve the 'there is no grammar' problem - but is not the canonical implementation.

我的问题是-markdown的规范实现是什么? (大家说的定义标准).

My question is - what is the canonical implementation of markdown? (The one that everybody says defines the standard).

我承认没有规范的标准".我正在寻找下一个最好的东西.

I acknowledge that "there is no canonical standard". I'm looking for the next best thing.

答案似乎是 showdown.js ,但存在问题.

The answer seems to be showdown.js, but there are problems with it.

(使用规范的定义是每个人都定义的标准).

(using the definition of canonical being the one that everybody says defines the standard).

此处和github

It gets referenced here and on github here.

我也将加入 pagedown (由@deceze),因为它似乎可以解决摊牌中的错误,并且更接近Gruber的原始版本.

I'll throw in pagedown as well (as aluded to by @deceze) because it appears to fix the bugs in showdown and be a little closer to Gruber's original.

推荐答案

我相信Gruber的语言是原始的且经过一定程度的规范化(例如,参见),然后人们从那里扩展了它.我认为某些扩展比其他扩展更普遍,因此可能值得一看一些使用良好的软件包比他的原始软件包有什么优势.

I believe Gruber's is the original and sort-of-canonical (see, for example, his 'Introducing Markdown'), and then people have extended it from there. I think some extensions are more common than others though, so it's probably worth seeing what a few well-used packages have over his original.

这篇关于降价的规范实施是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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