html-pipeline~huacnlee

HTML processing filters and utilities html-pipeline markdown
0.2.0 Latest release released

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.cr

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

html-pipeline:
  github: huacnlee/html-pipeline.cr
  version: ~> 0.2.0
License MIT
Crystal 0.21.1

Authors

Dependencies 1

  • markd
    {'github' => 'icyleaf/markd'}

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently