Skip to content
HTML processing filters and utilities for Crystal.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
src
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
shard.yml

README.md

HTML::Pipeline

Build status

HTML processing filters and utilities for Crystal.

This is Crystal implement like html-pipeline in Ruby.

Installation

Add this to your application's shard.yml:

dependencies:
  html-pipeline:
    github: huacnlee/html-pipeline

Filters

  • PlainTextInputFilter - HTML.escape
  • MarkdownFilter
  • AutolinkFilter - Autolink for any urls.

Usage

require "html-pipeline"

filters = [
  HTML::Pipeline::PlainTextInputFilter,
  HTML::Pipeline::MarkdownFilter,
  HTML::Pipeline::AutolinkFilter,
] of HTML::Pipeline::Filter.class
pipeline = HTML::Pipeline.new(filters)
pipeline.call("Markdown context")

LICENSE

MIT License

You can’t perform that action at this time.