grab md headlines as well

This commit is contained in:
Aaron Bieber 2020-04-30 06:54:53 -06:00
parent bf457ae74c
commit e4dcb3023e

View File

@ -15,7 +15,7 @@ import (
var AuthorRE = regexp.MustCompile(`^author:\s(.*)$`) var AuthorRE = regexp.MustCompile(`^author:\s(.*)$`)
// TitleRE matches our article title for either plain text or org-mode // TitleRE matches our article title for either plain text or org-mode
var TitleRE = regexp.MustCompile(`^(?:\*|title:)\s(.*)$`) var TitleRE = regexp.MustCompile(`^(?:\*|title:|#)\s(.*)$`)
// DateRE matches our article date // DateRE matches our article date
var DateRE = regexp.MustCompile(`^date:\s(.*)$`) var DateRE = regexp.MustCompile(`^date:\s(.*)$`)