Big refactor of pages code. Changed TOC code to only parse when actually used

This commit is contained in:
spf13
2014-01-27 17:16:28 -05:00
parent f62e3e9940
commit d0825a211a
5 changed files with 642 additions and 618 deletions

View File

@@ -296,6 +296,7 @@ func TestPageWithDate(t *testing.T) {
func TestWordCount(t *testing.T) {
p, err := ReadFrom(strings.NewReader(SIMPLE_PAGE_WITH_LONG_CONTENT), "simple.md")
p.Convert()
p.analyzePage()
if err != nil {
t.Fatalf("Unable to create a page with frontmatter and body content: %s", err)
}