Giter VIP home page Giter VIP logo

motion-kramdown's Introduction

motion-kramdown

Gem Version Build Status Platform Language

kramdown Markdown parser, for use with RubyMotion on iOS and macOS.

Currently implements: kramdown 1.16.2

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 online at http://kramdown.gettalong.org/syntax.html and a quick reference is available 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 (and LaTeX and PDF, though not in motion-kramdown)

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

Installation

Add it to your project's Gemfile

gem 'motion-kramdown'

Edit your Rakefile and add

require 'motion-kramdown'

Usage

motion-kramdown uses the same api and options as kramdown

Kramdown::Document.new(text).to_html

For detailed information on usage and options, see the kramdown documentation. The full kramdown RDoc documentation is available at http://kramdown.gettalong.org/rdoc/

Supported Features

The entire kramdown api is supported, except where noted below.

Missing Features

These items are currently not supported

  1. transliterated header ids
  2. math engines: MathJax, Ritex, and itex2MML
  3. syntax highlighters: Coderay and Rouge
  4. Latex
  5. PDF
  6. using template files or the :template option
  7. Andriod support (will accept pull requests)

Testing

Test files are located in the spec directory. The test directory contains the original kramdown test and data files, which are used in the specs.

#--- run the entire test suite
rake spec

#--- run just the kramdown converter tests
rake spec files=kramdown_to_xxx

#--- run test for specific data files
rake spec files=kramdown_to_xxx focus=block/03_paragraph

Issues

If you run into any problems with the gem,

  1. First see if the problem exists with the regular kramdown gem. If it does, then the issue should be opened on the main kramdown repository
  2. Open an issue on this repository

Credit

All credit for kramdown belongs to Thomas Leitner. motion-kramdown is a simple modifcation to make it work with RubyMotion.

License

motion-kramdown is released under the MIT license (see the COPYING file) and therefore can easily be used in commercial projects.

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

motion-kramdown's People

Contributors

digitalmoksha avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

richardy2012

motion-kramdown's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.