Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mfenner/jekyll-pandoc

Jekyll Pandoc markdown converter as Ruby gem
https://github.com/mfenner/jekyll-pandoc

Last synced: 3 months ago
JSON representation

Jekyll Pandoc markdown converter as Ruby gem

Awesome Lists containing this project

README

        

jekyll-pandoc
=============

[![Build Status](https://travis-ci.org/mfenner/jekyll-pandoc.svg)](https://travis-ci.org/mfenner/jekyll-pandoc)
[![Gem Version](https://badge.fury.io/rb/jekyll-pandoc.svg)](http://badge.fury.io/rb/jekyll-pandoc)
[![Code Climate](https://codeclimate.com/github/mfenner/jekyll-pandoc.png)](https://codeclimate.com/github/mfenner/jekyll-pandoc)

[Pandoc](http://johnmacfarlane.net/pandoc/) markdown converter for the [Jekyll](https://github.com/jekyll/jekyll) static site generator. Originally based on [jekyll-pandoc-plugin](https://github.com/dsanson/jekyll-pandoc-plugin) by David Sanson.

Jekyll-pandoc uses the [pandoc-ruby](https://github.com/alphabetum/pandoc-ruby) gem as a Ruby wrapper for Pandoc.

## Requirements

* Jekyll, version `3.0` or higher
* Pandoc, version `1.15` or higher

Install version `1.0.2` for older jekyll versions

## Installation

Run `bundle install` after adding the gem to your Jekyll `Gemfile`:

```
gem "jekyll-pandoc"
```

If you are not using Bundler, install as gem:

```
[sudo] gem install jekyll-pandoc
```

## Configuration

Add the gem to the Jekyll `_config.yml`:

```
gems:
- jekyll-pandoc
```

Change the markdown processor in the Jekyll `_config.yml`:

```
markdown: Pandoc
```

Additional pandoc options can be provided in the Jekyll `_config.yml`:

```
pandoc:
extensions:
- normalize
- smart
- mathjax
- csl: _styles/apa.csl
- bibliography: bibliography/references.bib
```

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License
[MIT License](LICENSE).