HTML processing filters and utilities for Crystal.
This is Crystal implement like html-pipeline in Ruby.
Add this to your application's shard.yml
:
dependencies:
html-pipeline:
github: huacnlee/html-pipeline.cr
- PlainTextInputFilter - HTML.escape
- MarkdownFilter
- AutolinkFilter - Autolink for any urls.
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")
MIT License