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
- Parser module for Textile language.
Structs§
- Render
Options - Options for rendering Textile markup language.
Functions§
- render
- Renders Textile string into HTML string with default options.
Accepts
&str
,String
orPath
data type. - render_
with - Renders Textile string into HTML string with specified options.
Accepts
&str
,String
orPath
data type.