From e4dcb3023e93df8ba0f99175e17edef4e655493e Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 30 Apr 2020 06:54:53 -0600 Subject: [PATCH] grab md headlines as well --- internal/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils.go b/internal/utils.go index f17520f..ca37337 100644 --- a/internal/utils.go +++ b/internal/utils.go @@ -15,7 +15,7 @@ import ( var AuthorRE = regexp.MustCompile(`^author:\s(.*)$`) // 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 var DateRE = regexp.MustCompile(`^date:\s(.*)$`)