gray-matter-rs icon indicating copy to clipboard operation
gray-matter-rs copied to clipboard

A tool for easily extracting front matter out of a string. It is a fast Rust implementation of gray-matter. Parses YAML, JSON, TOML and support for custom parsers. Use it and let me know by giving it...

Results 4 gray-matter-rs issues
Sort by recently updated
recently updated
newest added

The JS library allows the use of different delimiters for the start and the end: https://www.npmjs.com/package/gray-matter#optionsdelimiters What do you think? Could we add the same functionality?

While investigating #3, I realised that we don't really have a need for the polyglot datatype [`Pod`](https://docs.rs/gray_matter/0.2.0/gray_matter/enum.Pod.html). Since we nonetheless coerce it into a [`serde_json::Value`](https://docs.serde.rs/serde_json/value/enum.Value.html#impl-Serialize) upon deserializing, [`Pod`](https://docs.rs/gray_matter/0.2.0/gray_matter/enum.Pod.html) can easily...

enhancement
performance

In `engines/toml.rs` (and similar in the other engines) ``` impl Engine for TOML { fn parse(content: &str) -> Pod { match toml::from_str::(content) { Ok(value) => value.into(), Err(_) => Pod::Null, }...