Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFM parser does not allow numbers in attributes #66

Open
sebbASF opened this issue Jun 11, 2023 · 2 comments
Open

GFM parser does not allow numbers in attributes #66

sebbASF opened this issue Jun 11, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sebbASF
Copy link
Contributor

sebbASF commented Jun 11, 2023

Standard Pelican allows metadata attributes to contain numbers

@sebbASF sebbASF added the bug Something isn't working label Jun 11, 2023
@sebbASF
Copy link
Contributor Author

sebbASF commented Jun 13, 2023

https://python-markdown.github.io/extensions/meta_data/
says:

“The keywords are case-insensitive and may consist of letters, numbers, underscores and dashes and must end with a colon.
The values consist of anything following the colon on the line and may even be blank.

If a line is indented by 4 or more spaces, that line is assumed to be an additional line of the value for the previous keyword.
A keyword may have as many lines as desired.

The first blank line ends all meta-data for the document.”

The parser also allows YAML-style delimiters.

@sebbASF
Copy link
Contributor Author

sebbASF commented Jun 14, 2023

Note: Bug #73 means that allowing different characters in keywords may increase the risk of accidentally matching the start of body-content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant