Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gettalong/kramdown
kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
https://github.com/gettalong/kramdown
html kramdown markdown pdf ruby
Last synced: 5 days ago
JSON representation
kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
- Host: GitHub
- URL: https://github.com/gettalong/kramdown
- Owner: gettalong
- License: other
- Created: 2008-11-30T08:32:47.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2024-11-18T16:41:59.000Z (2 months ago)
- Last Synced: 2025-01-13T21:03:47.012Z (12 days ago)
- Topics: html, kramdown, markdown, pdf, ruby
- Language: Ruby
- Homepage: http://kramdown.gettalong.org
- Size: 3.33 MB
- Stars: 1,722
- Watchers: 38
- Forks: 277
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: COPYING
- Authors: AUTHORS
Awesome Lists containing this project
- awesome-ruby-toolbox - kramdown - kramdown is yet-another-markdown-parser but fast, pure Ruby, using a strict syntax definition and supporting several common extensions. (HTML & Markup / Markup processors)
- awesome-ruby - kramdown - Kramdown is yet-another-markdown-parser but fast, pure Ruby, using a strict syntax definition and supporting several common extensions. (Markdown Processors)
- Open-Source-Ruby-and-Rails-Apps - Kramdown - kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions. 🔥 (Happy Exploring 🤘)
- awesome-markdown - kramdown - kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions. (Libraries / Ruby)
README
# 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
sponsor**](https://github.com/sponsors/gettalong/) or [**a
patron**](https://www.patreon.com/gettalong) - thanks!Sponsors:
* **GROSSWEBER** provides software
development consulting and training services.## 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
) and a quick reference is available in
**doc/quickref.page** or online at .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 PrawnAll the documentation on the available input and output formats is available in the **doc/**
directory and online at .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
or the commit history!## Usage
kramdown has a very simple API, so using kramdown is as easy as
```ruby
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 , 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 .## 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.