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

Some additives not shown, malformed knowledge panel for wikipedia abstracts #8339

Closed
stephanegigandet opened this issue Apr 20, 2023 · 2 comments · Fixed by #8340
Closed
Assignees
Labels
🐛 bug This is a bug, not a feature request. 📖 Knowledge Panels - https://wiki.openfoodfacts.org/Knowledge_panels 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels

Comments

@stephanegigandet
Copy link
Contributor

stephanegigandet commented Apr 20, 2023

Describe the bug

On some pages, we don't show some additives, like E250 in French:

https://fr.openfoodfacts.org/produit/3095758049019/le-torchon-cuit-a-l-etouffee-25-de-sel-fleury-michon

There is an empty panel:

image

To Reproduce

https://fr.openfoodfacts.org/produit/3095758049019/le-torchon-cuit-a-l-etouffee-25-de-sel-fleury-michon

Expected behavior

All additives panels shown

Part of

@stephanegigandet stephanegigandet added the 🐛 bug This is a bug, not a feature request. label Apr 20, 2023
@stephanegigandet stephanegigandet self-assigned this Apr 20, 2023
@stephanegigandet
Copy link
Contributor Author

This is due to some unescaped \ in the wikipedia content:

{\displaystyle \mathrm {NaNO_{3}} +\mathrm {Pb} \to \mathrm {NaNO_{2}} +\mathrm {PbO} }

@stephanegigandet
Copy link
Contributor Author

Sometimes I feel that we should just remove the wikipedia abstracts, and have our own abstracts...

image

I'll remove the latex formula at least.

@teolemon teolemon added 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels 📖 Knowledge Panels - https://wiki.openfoodfacts.org/Knowledge_panels labels May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. 📖 Knowledge Panels - https://wiki.openfoodfacts.org/Knowledge_panels 📖 Knowledge Panels https://wiki.openfoodfacts.org/Knowledge_panels
Projects
2 participants