Add fix for comrak bug not finding frontmatter
This commit is contained in:
parent
86f81ccc35
commit
fd6619320e
1 changed files with 5 additions and 2 deletions
|
@ -31,8 +31,11 @@ impl Challenge {
|
|||
let arena = Arena::new();
|
||||
let root = parse_document(
|
||||
&arena,
|
||||
&fs::read_to_string(format!("content/challenges/{number}.md"))
|
||||
.expect("Couldn't find challenge file"),
|
||||
& (fs::read_to_string(format!("content/challenges/{number}.md"))
|
||||
.expect("Couldn't find challenge file")
|
||||
// comrak can't find frontmatter if there's only frontmatter and no newline at end
|
||||
// TODO: Open issue in comrak
|
||||
+ "\n"),
|
||||
&options,
|
||||
);
|
||||
if let Some(node) = root.children().next() {
|
||||
|
|
Loading…
Add table
Reference in a new issue