maciejhirsz / ramhorns

Fast Mustache template engine implementation in pure Rust.
https://crates.io/crates/ramhorns
Mozilla Public License 2.0
297 stars 29 forks source link

Quick Question: Setting Pulldown-Cmark Options #47

Open Tloru opened 3 years ago

Tloru commented 3 years ago

If I have something like this:

#[derive(Content)]
struct Thing {
    #[md]
    content: String,
}

And I want to render the following markdown (note, has a table):

# This is Markdown
Nice table:

| this | that |
| ---- | ---- |
|    2 |    1 |

Rendering tables with pulldown-cmark requires one to set the ENABLE_TABLES option.

Does Ramhorns support tables in Markdown? More generally, does it support setting Options for #[md]? Or do we need to pull in pulldown-cmark and do this manually?

Thanks!