fix metadata parsing, accounting for trailing quotes

This commit is contained in:
2026-01-04 14:57:53 +01:00
parent 598f29f265
commit 7b156281b8
5 changed files with 10 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ struct Metadata {
// Metadata are in yaml format at the top of the file
// They are separated from the rest of the file with `---` at the beginning and
// at the end.
//
// Returns nullopt when no metadata is found in the file
std::optional<Metadata> get_metadata(const std::string &FILE_PATH);
// Reads the markdown file and converts it to html.