Crate textile

Source
Expand description

Native Rust crate for parsing and rendering into HTML the Textile markup language.

§Installation

Put this into Cargo.toml:

[dependencies]
textile = "*"

§Usage

extern crate textile;

let html = textile::render("h1. *Textile markup language*");
assert_eq!(html, "<h1><strong>Textile markup language</strong></h1>".to_string());

Modules§

  • Parser module for Textile language.

Structs§

Functions§

  • Renders Textile string into HTML string with default options. Accepts &str, String or Path data type.
  • Renders Textile string into HTML string with specified options. Accepts &str, String or Path data type.