From 34ce787d08858accfc4623ff5d49976896b145bd Mon Sep 17 00:00:00 2001 From: Dave Fisher Date: Wed, 25 Mar 2026 11:25:07 -0700 Subject: [PATCH 1/2] Update gfm.py due to typo in RE_METADATA Signed-off-by: Dave Fisher --- pelican/plugins/gfm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/plugins/gfm.py b/pelican/plugins/gfm.py index 597b8316..2b83f96f 100644 --- a/pelican/plugins/gfm.py +++ b/pelican/plugins/gfm.py @@ -136,7 +136,7 @@ class GFMReader(pelican.readers.BaseReader): # Note: name starts in column 0, no whitespace before colon, will be # made lower-case, and value will be stripped # - RE_METADATA = re.compile('^([A-za-z]+): (.*)$') + RE_METADATA = re.compile('^([A-Za-z]+): (.*)$') def read_source(self, source_path): "Read metadata and content from the source." @@ -160,7 +160,7 @@ def read_source(self, source_path): i = 0 # See https://github.com/apache/infrastructure-pelican/issues/70 for i in range(len(lines)): line = lines[i] - match = GFMReader.RE_METADATA.match(line) + match = GFMReader..match(line) if match: name = match.group(1).strip().lower() if name != 'slug': From 2a6dddd2809bc3af9dd457d9437a85af9846acad Mon Sep 17 00:00:00 2001 From: Dave Fisher Date: Wed, 25 Mar 2026 11:29:44 -0700 Subject: [PATCH 2/2] Update gfm.py Signed-off-by: Dave Fisher --- pelican/plugins/gfm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/plugins/gfm.py b/pelican/plugins/gfm.py index 2b83f96f..4c2d5d05 100644 --- a/pelican/plugins/gfm.py +++ b/pelican/plugins/gfm.py @@ -160,7 +160,7 @@ def read_source(self, source_path): i = 0 # See https://github.com/apache/infrastructure-pelican/issues/70 for i in range(len(lines)): line = lines[i] - match = GFMReader..match(line) + match = GFMReader.RE_METADATA.match(line) if match: name = match.group(1).strip().lower() if name != 'slug':