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

[C++] Missing Superscript Formatting #1142

Open
Neonit opened this issue Dec 11, 2019 · 1 comment
Open

[C++] Missing Superscript Formatting #1142

Neonit opened this issue Dec 11, 2019 · 1 comment

Comments

@Neonit
Copy link

@Neonit Neonit commented Dec 11, 2019

I found one case, where there is a superscript formatting missing in the C++ documentation, leading to a confusing error in the sentence. This is definitely the fault of cppreference.com, because they're not using the proper HTML tag (<sup>), but a span.t-su. Assuming they're using this everywhere, there might be other pages in the documentation suffering from this as well. Maybe someone could make the devdocs parser a bit smarter in this case.

Example

@j-f1
Copy link
Member

@j-f1 j-f1 commented Jan 7, 2020

This could be fixed by adding a clean_html filter to the C++ scraper, then using it to transform every <span class="t-su"> to a <sup>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.