diff --git a/SMELLS.txt b/SMELLS.txt index 7895735..a386d1f 100644 --- a/SMELLS.txt +++ b/SMELLS.txt @@ -7,3 +7,7 @@ Huge classes - Page has lots of optional arguments that should not really be optional - Could perhaps extract out some graph behaviour to a mixin + +ParsedMarkdownDocument + +- Would be useful for this to contain information from the unparsed document diff --git a/lib/obsidian/parser/frontmatter_parser.rb b/lib/obsidian/parser/frontmatter_parser.rb index 52232a6..f2b9d58 100644 --- a/lib/obsidian/parser/frontmatter_parser.rb +++ b/lib/obsidian/parser/frontmatter_parser.rb @@ -11,7 +11,6 @@ def parse(content) complete = false if first_line.chomp != "---" - puts "bye" return {} end @@ -25,9 +24,6 @@ def parse(content) lines << line end - puts lines - puts complete - complete ? YAML.safe_load(lines.join) : {} rescue YAML::SyntaxError, StopIteration {}