在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):knieriem/markdown开源软件地址(OpenSource Url):https://github.com/knieriem/markdown开源编程语言(OpenSource Language):Go 86.0%开源软件介绍(OpenSource Introduction):This is an implementation of John Gruber's markdown in Go. It is a translation of peg-markdown, written by John MacFarlane in C, into Go. It is using a modified version of Andrew J Snodgrass' PEG parser peg -- now supporting LEG grammars --, which itself is based on the parser used by peg-markdown. Support for HTML and groff mm output is implemented, but LaTeX output has not been ported. The output is identical to that of peg-markdown. I try to keep the grammar in sync with the C version, by cherry-picking relevant changes. In the commit history the corresponding revisions have a suffix [jgm/peg-markdown]. The Markdown parser has a performance similar to that of the original C version, and consumes less memory. InstallationProvided you have a copy of Go 1, and git is available,
should download and install the package according to your GOPATH settings. See doc.go for an example how to use the package. To create the command line program markdown, run
the binary should then be available in the current directory. To run tests, type
At the moment, tests are based on the .text files from the Markdown 1.0.3 test suite created by John Gruber, imported from peg-markdown. The output of the conversion of these .text files to html is compared to the output of peg-markdown. DevelopmentThere is not yet a way to create a Go source file like
Then ExtensionsIn addition to the extensions already present in peg-markdown,
this package also supports definition lists (option Definitions ( As definition item markers both Todo
Subdirectory Index
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论