Crate textile [] [src]

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

Parser module for Textile language.

Structs

RenderOptions

Options for rendering Textile markup language.

Functions

render

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

render_with

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