kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.

Github星跟蹤圖

kramdown

Readme first!

kramdown was originally licensed under the GPL until the 1.0.0 release. However, due to the many
requests it is now released under the MIT license and therefore can easily be used in commercial
projects, too.

However, if you use kramdown in a commercial setting, please consider contributing back any
changes
for the benefit of the community and/or
becoming a patron - thanks!

Introduction

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and
supporting several common extensions.

The syntax definition for the kramdown syntax can be found in doc/syntax.page (or online at
http://kramdown.gettalong.org/syntax.html) and a quick reference is available in
doc/quickref.page or online at http://kramdown.gettalong.org/quickref.html.

The kramdown library is mainly written to support the kramdown-to-HTML conversion chain. However,
due to its flexibility (by creating an internal AST) it supports other input and output formats as
well. Here is a list of the supported formats:

  • input formats: kramdown (a Markdown superset), Markdown, GFM, HTML
  • output formats: HTML, kramdown, LaTeX (and therefore PDF), PDF via Prawn

All the documentation on the available input and output formats is available in the doc/
directory and online at http://kramdown.gettalong.org.

Starting from version 1.0.0 kramdown is using a versioning scheme with major, minor and patch parts
in the version number where the major number changes on backwards-incompatible changes, the minor
number on the introduction of new features and the patch number on everything else.

For information about changes between versions, have a look at
http://kramdown.gettalong.org/news.html or the commit history!

Usage

kramdown has a very simple API, so using kramdown is as easy as

require 'kramdown'

Kramdown::Document.new(text).to_html

For detailed information have a look at the API documentation of the Kramdown::Document class.

The full API documentation is available at http://kramdown.gettalong.org/rdoc/, other sites with an
API documentation for kramdown probably don't provide the complete documentation!

There are also some third-party libraries that extend the functionality of kramdown -- see the
kramdown Wiki at https://github.com/gettalong/kramdown/wiki.

Development

Just clone the git repository as described in doc/installation.page and you are good to go. You
probably want to install rake so that you can use the provided rake tasks.

If you want to run the tests, the development dependencies are needed as well as some additional
programs like tidy and latex. See the .travis.yml file for more information.

License

MIT - see the COPYING file.

主要指標

概覽
名稱與所有者gettalong/kramdown
主編程語言Ruby
編程語言Ruby (語言數: 4)
平台
許可證Other
所有者活动
創建於2008-11-30 08:32:47
推送於2024-11-18 16:41:59
最后一次提交2024-11-18 17:39:17
發布數65
最新版本名稱REL_2_5_1 (發布於 2024-11-18 17:41:51)
第一版名稱REL_0_1_0 (發布於 2009-11-21 08:44:31)
用户参与
星數1.7k
關注者數37
派生數280
提交數1.1k
已啟用問題?
問題數586
打開的問題數9
拉請求數46
打開的拉請求數3
關閉的拉請求數182
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?