Crate hoedown [−] [src]
This crate provides bindings for the hoedown markdown processing library.
It has a Markdown
type which stores markdown text in a Buffer
. The
markdown can then be rendered with any renderer that implements the Render
trait. The library comes with an Html
renderer by default.
let doc = Markdown::new("some _emphasis_ required"); let mut html = Html::new(html::Flags::empty(), 0); assert_eq!( html.render(&doc).to_str().unwrap(), "<p>some <em>emphasis</em> required</p>\n");
Reexports
pub use renderer::Render; |
pub use renderer::html::Html; |
pub use renderer::wrapper::Wrapper; |
pub use renderer::trace::Trace; |
Modules
ffi | |
renderer |
Contains Render behavior and stock renderers |
Macros
wrap |
Structs
Buffer |
Buffer for holding markdown contents |
Extension |
Constants for the various Hoedown extensions |
Markdown |
Markdown document |
Constants
AUTOLINK |
Automatically link URLs and emails |
DISABLE_INDENTED_CODE |
Ignore indented code blocks |
FENCED_CODE |
Process fenced code |
FOOTNOTES |
Process footnotes |
HIGHLIGHT |
Process highlight syntax, e.g. |
MATH |
Process math syntax, e.g. |
MATH_EXPLICIT |
Process the single dollar math syntax, e.g. |
NO_INTRA_EMPHASIS |
Don't parse emphasis inside of words, e.g. |
QUOTE |
Render quotes differently, e.g. the html renderer may use the |
SPACE_HEADERS |
Process ATX header syntax, e.g. |
STRIKETHROUGH |
Enable strikethrough syntax, e.g. |
SUPERSCRIPT |
Process superscript syntax, e.g. |
TABLES |
Process table syntax |
UNDERLINE |
Perform an underline instead of emphasis |