diff options
Diffstat (limited to 'src/skaldpress/metadata_parser.rs')
-rw-r--r-- | src/skaldpress/metadata_parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/skaldpress/metadata_parser.rs b/src/skaldpress/metadata_parser.rs index 7a91b74..77ee7b8 100644 --- a/src/skaldpress/metadata_parser.rs +++ b/src/skaldpress/metadata_parser.rs @@ -16,6 +16,8 @@ impl fmt::Display for YamlValue { } } +/// Extract a beginning YAML block of a input-string into a HashMap +/// /// Currently, all files MUST have a metadata block, or this will fail completely pub fn extract_parse_yaml_metadata<'a>(markdown: &'a str) -> (HashMap<String, YamlValue>, &'a str) { let mut yaml_map = HashMap::new(); |