Sha256: 1ee23fe9aee32bac53017386c18da81d97efb737d9c1943881094a18057bccfb

Contents?: true

Size: 1.6 KB

Versions: 3

Compression:

Stored size: 1.6 KB

Contents

[![Build Status](https://travis-ci.org/gjtorikian/jekyll-html-pipeline.svg?branch=master)](https://travis-ci.org/gjtorikian/jekyll-html-pipeline)

jekyll-html-pipeline
====================

An [HTML::Pipeline](https://github.com/jch/html-pipeline), for Jekyll.


## Installation

In your *_config.yml* file, add this gem:

``` yaml
gems:
  - jekyll-html-pipeline
```

## Configuration

You'll need to be running a Jekyll version after 2.0.0, which is when custom
Markdown filters were introduced. In your *_config.yml* file, indicate that you
want to use `html_pipeline`:

``` yaml
markdown: HTMLPipeline
```

Next, create an `html_pipeline` key, and indicate which filters you want to include:

``` yaml
markdown: HTMLPipeline
html_pipeline:
  filters:
    - "markdownfilter"
    - "sanitizationfilter"
    - "emojifilter"
    - "mentionfilter"
```

Finally, some filters require a context object. You can define these next:

``` yaml
markdown: HTMLPipeline
html_pipeline:
  filters:
    - "markdownfilter"
    - "sanitizationfilter"
    - "emojifilter"
    - "mentionfilter"
  context:
    asset_root: "http://foo.com/icons"
    base_url:   "https://github.com/"
```

Keep in mind that [filter dependencies are not bundled](https://github.com/jch/html-pipeline#dependencies),
so you'll need to add these in yourself.

## Custom filters

Custom filters can be designed [the same as in HTML::Pipeline](https://github.com/jch/html-pipeline#extending).

Check out [the test filter](./test/support/new_pipeline.rb) for an example. Because computers are stupid, remember that case-sensitivity matters when adding the custom filter to `filters`.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-html-pipeline-1.0.0 README.md
jekyll-html-pipeline-0.1.4 README.md
jekyll-html-pipeline-0.1.3 README.md