The site page for FEP-61cf is currently bugged because of unescaped double quotes.
The YAML issue could be solved with something like yaml.safe_dump, but there's also an HTML issue (mkdocs doesn't escape quotes).
clean_markdown now uses the built-in html.escape() (nh3.escape() escapes too much)
escape html characters in clean_markdown #868
:patch-1 into main Using the built-in `html.escape()` since `nh3.escape()` is too aggressive
Is it a duplicate of #825 ?
Escaping double quotes with a backslash fixes the YAML issue (like the PR that you linked), but the double quotes still need to be escaped before being used as an HTML attribute (<meta name="description" content="...">).
html.escape() fixes both the HTML and YAML double quote issue, while also handling other characters (&, <, >, ') that could cause issues.
if you want to keep the changes minimal, something like this should work as well:
transformed = transformed.replace('"', '"')
Thanks for clarification, I agree that switching to html.escape() is a good idea.
I decided to merge #825 first, could you rebase this PR?
4ca4cdbe47
bcb6702c5c
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?