apache / apache/infrastructure-pelican

GFM meta parser ignores blank lines; this is non-standard

Open
#73 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
3
Forks
13
PR merge metrics
No merged PRs in 30d

Description

The GFM reader skips blank lines when parsing meta-data.
This is in contrast with the standard Pelican parsers which treat a blank line as the end of the meta-data block.

This matters because:
- it is non-standard
- the parser can treat the start of body content as a meta-data item, if the body starts with something that looks like a keyword. This is unlikely, but not impossible.

It looks as though this behaviour has been relied on in some ASF website sources, in particular the main website.

Some options are:
- just document the behaviour
- add an option to warn if such blank lines are found
- add an option to disable the behaviour

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.