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

convert-policy.py loses Markdown links in headers #145

Open
othermaciej opened this issue Dec 21, 2017 · 1 comment
Open

convert-policy.py loses Markdown links in headers #145

othermaciej opened this issue Dec 21, 2017 · 1 comment
Assignees

Comments

@othermaciej
Copy link
Contributor

convert-policy.py loses Markdown links in headers. This doesn't currently affect any WHATWG policy documents, but it would be nice to fix at some point.

@annevk
Copy link
Member

annevk commented Mar 7, 2020

#295 pretty much fixes this, except that the generated IDs are bad. header_text_to_id will also need to strip markup. Otherwise you get

<h3 id="conduct-a-hrefhttpsexmamplecomtesta">Conduct <a href="https://exmample.com/">test</a><a class="self-link" href="#conduct-a-hrefhttpsexmamplecomtesta"></a></h3>

for

## Conduct [test](https://exmample.com/)

annevk added a commit that referenced this issue Mar 10, 2020
This fixes a few subtle issues and is a prerequisite for fixing more. Also switch to Python 3.

Closes #264 and closes #291. Helps with #145.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants