Make TOC munge include blank line before TOC

This commit is contained in:
Tim Hockin
2015-07-17 09:20:19 -07:00
parent 816f18a388
commit 6e4ec38f51
31 changed files with 38 additions and 9 deletions

View File

@@ -54,6 +54,7 @@ func updateTOC(filePath string, markdown []byte) ([]byte, error) {
// builds the ToC.
func buildTOC(markdown []byte) ([]byte, error) {
var buffer bytes.Buffer
buffer.WriteString("\n")
scanner := bufio.NewScanner(bytes.NewReader(markdown))
inBlockQuotes := false
for scanner.Scan() {