2024-09-23 12:17 AM - edited 2024-09-23 12:21 AM
See:
The post editor allows me to create multi-level subscripts, and it displays fine in the editor:
But, when I post, I get the "Invalid HTML" error, and the post loses all the subscripting:
Is this intended behaviour?
To be able to subscript would be useful.
PS:
So the HTML is not invalid; it may be unsupported - but it's not invalid.
2024-09-23 01:39 AM
Hi @Andrew Neil,
Thanks for your feedback.
At the moment the subscript <sub> and superscript <sup> tags are not enabled by default. It's not possible for us to add it manually, but I will reach out to our provider to understand if they can add them.
Best regards,
Laurids
2024-09-23 01:55 AM - edited 2024-09-23 01:55 AM
Then the HTML editor really shouldn't let you insert them - should it?
There's also the long-standing issue that the messages says, "Correct the highlighted errors and try again" - but there is no highlighting, so we have no idea what to correct!
See: https://community.st.com/t5/feedback-forum/what-invalid-html/td-p/569839
2024-09-23 04:40 AM - edited 2024-09-23 04:41 AM
Hi @Andrew Neil,
I will ask about the scope of having a more "real-time" HTML editor. In the mean time, I suggest including the tags that are allowed on the community inside our guideline How to overcome HTML error when publishing pasted content into a post - let me know what you think.
Regarding the "Correct the highlighted errors and try again" message, I believe this is only applied when obligatory fields such as labels are not filled, and these are highlighted. HTML is edited automatically. Let me know if you have seen this elsewhere.
Best regards,
Laurids
2024-09-23 04:51 AM
@Laurids_PETERSEN wrote:Hi @Andrew Neil,
I will ask about the scope of having a more "real-time" HTML editor.
I don't think it necessarily needs to be real-time - just when you close it to put the HTML into the post it should then flag up HTML errors
@Laurids_PETERSEN wrote:Regarding the "Correct the highlighted errors and try again" message, I believe this is only applied when obligatory fields such as labels are not filled
No, that's not my experience.
That's the error I got for the <sub> tags, and it's the same in the linked thread.
2024-09-23 04:57 AM
This is what happens for no labels:
There is nothing there about invalid HTML.
And this is what happens for invalid HTML
In the editor, that gives:
But posting gives:
2024-09-23 05:55 AM
Thanks for the screenshots, it's clear now.
FYI: We are prioritizing pushing some small changes and improvements soon, this will be picked up afterwards. I'll get back to you if more information is needed.
Thanks again,
Laurids
2024-09-23 06:08 AM
Yes, this is definitely at the non-urgent end of the spectrum!
2024-11-04 04:48 AM - edited 2024-11-04 04:48 AM
Hi @Andrew Neil,
A fix should be deployed for this now, but I'd like to double check if you're able to do it.
Would you mind running this through the HTML editor and post it as a reply?
<sub>
test
</sub>
<sup>
test
</sup>
2024-11-04 05:17 AM
Still fails.
In the Editor:
On posting: