Expand Makefile workflow dependencies and sync parser formatting
This commit is contained in:
@@ -11,8 +11,8 @@ import (
|
||||
// entryRe matches: - [Name](URL) - Description
|
||||
// Also handles optional markers/text between URL and " - " separator, e.g.:
|
||||
//
|
||||
// - [Name](URL) :skull: - Description
|
||||
// - [Name](URL) (2) :skull: - Description
|
||||
// - [Name](URL) :skull: - Description
|
||||
// - [Name](URL) (2) :skull: - Description
|
||||
var entryRe = regexp.MustCompile(`^[-*]\s+\[([^\]]+)\]\(([^)]+)\)(.*?)\s+-\s+(.+)$`)
|
||||
|
||||
// headingRe matches markdown headings: # Title, ## Title, etc.
|
||||
|
||||
@@ -30,6 +30,6 @@ type Section struct {
|
||||
|
||||
// Document is the parsed representation of the full README.
|
||||
type Document struct {
|
||||
Preamble []string // lines before the first section
|
||||
Preamble []string // lines before the first section
|
||||
Sections []Section
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user