在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):bhollis/maruku开源软件地址(OpenSource Url):https://github.com/bhollis/maruku开源编程语言(OpenSource Language):Ruby 99.7%开源软件介绍(OpenSource Introduction):MarukuMaruku is a Markdown-superset interpreter. Maruku implements:
Read more about Maruku's Markdown syntax. It also supports inline math. Maruku docs. News about Maruku is posted at http://benhollis.net/blog/category/maruku/ Note: Maruku should be considered obsolete, as it has been superceded by better libraries like Kramdown. It is still supported, so feel free to continue filing bug reports. InstallingMake sure you have Ruby and RubyGems, then run:
Basic useTo convert Markdown from your Ruby programs, first create a new document and then get
its HTML representation with the method
The
If you want to create full HTML documents, use the Error ManagementMaruku warns you if something is wrong with the input. The default behaviour is to print a warning on standard error, and then try to continue. This behavior can be customized with the
This tells Maruku to raise an exception if it encounters a parsing error. To change the error stream, use the
You can pass in any object that supports the Command-line usageMaruku comes with two command-line programs:
Code organizationThe public interface is the DependenciesMaruku will not depend on any gem that is not pure-Ruby. This helps maximize compatibility across Ruby implementations and make Maruku easy to use. Beyond that, Maruku should not depend on any other gem unless absolutely necessary - this make Maruku easy to consume and avoids dependency version conflicts. VersioningMaruku follows Semantic Versioning for release versioning, starting around version 0.6.0. One caveat is that, because even the most minor bug fixes are likely to change the output of some documents, some of the patch-level changes are not strictly backwards compatible. This usually shows up as test breakages, and one suggestion is to use a tool like nokogiri-diff to compare output to the expected structure as XML rather than simply comparing strings. Supported Ruby VersionsThis library aims to support and is tested against the following Ruby implementations:
If something doesn't work on one of these interpreters, it's a bug. Contributing
LicenseCopyright (c) 2006 Andrea Censi. MIT license, see MIT-LICENSE.txt for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论