-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
MBS-11040: Use expand2react for annotation display #1653
base: master
Are you sure you want to change the base?
Conversation
The html tags legitimately generated by annotations are added to htmlTagName (should already have been added really, since the same are in use for collection descriptions). expand2react does struggle with malformed returns from Text::WikiFormat more than dangerouslySetInnerHTML, which ignores plenty of the issues, but that should be fixed at the source, I expect.
This seems like a good idea in general, but I'm also afraid that if |
I would favor this option because 1) dealing with |
I was thinking the loose mode would still only be able to output the same restricted elements as currently, just would ignore any tags that are broken or mismatched - they'd be HTML encoded, of course, since React doesn't allow otherwise without |
We need to figure out what we actually want to do here, so setting to draft for now. |
Actually, I'm half-tempted to just close this for now - the reports code has changed for example and now annotations just use a default |
Implement MBS-11040
The html tags legitimately generated by annotations are added to htmlTagName (should already have been added really, since the same are in use for collection descriptions).
expand2react does struggle with malformed returns from Text::WikiFormat more than dangerouslySetInnerHTML, which ignores plenty of the issues, but that should be fixed at the source, I expect.
We can choose to merge this as-is, or we can choose to try and finally deal with the Text::WikiFormat mess. If we opt for the latter, we can: