Skip to content

Commit

Permalink
fix invalid markdown splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Stepanov committed Jun 13, 2016
1 parent 51d91aa commit 32d67a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Document {
// TODO: make this a regex to support lines of any length
if content.contains("---") {
let content2 = content.clone();
let mut content_splits = content2.split("---");
let mut content_splits = content2.splitn(2, "---");

// above the split are the attributes
let attribute_string = content_splits.next().unwrap_or("");
Expand Down

0 comments on commit 32d67a5

Please sign in to comment.