I wanted to create a nicely laid out navigation section for my plugin posts using divs and CSS Grid/Flexbox, like this:
I attempted to use tables for this, but it introduces lots of unwanted padding and borders, which again can’t be removed since CSS styles don’t seem to work
It’s most likely because the DevForum changed a plugin that they use for formatting posts. They’re probably not using Discourse’s plugin, but rather something else that doesn’t support most div styling.
But I did find another topic that talks about format breaking in old posts:
And one of posts said that they changed plugin, which was the answer. The reason–I guess no one knows for sure. Maybe they didn’t include certain features that other plugins did or something along those lines. I think they’re trying to get as many ways of formatting in one plugin.
No that’s not related, Kunena is forum software, not a Discourse plugin. Before Oct 2015 we used to have a Kunena-based forum on a different URL. Those posts with old formatting are from Kunena that weren’t properly converted over.
I’m pretty sure the DevForum uses MarkdownIt, which basically just applies the styles it would normally apply to transformed markdown. I don’t think MarkdownIt supports any form of custom styles. I might be wrong.
I didn’t put that very well. I meant, I think it strips style and script tags from HTML. I’m aware some tags have deprecated attributes which can be used for styling.
I’m intrigued as to what security vulnerabilities you could run into with CSS styling. For things like offsite images/tracking pixels I’m pretty sure there’s already countermeasures in place.
Yeah it might just be a configuration issue. If so, then it appears all it’ll take to solve is enabling style attributes and configuring the css whitelist to a safe subset
Sorry for the necrobump- This issue still exists, to a certain extent. I have found the the combination of HTML tags right before/after markdown and/or richtext breaks the post styling. Here is an example:
Example
![image|690x301](upload://qhYAxICQ70pJFhD44JGyn2xEb1s.png)
Very simple yet broken. As someone who uses HTML/CSS a lot when writing posts, this is extremely frustrating and also embarssing when I look back and see this instead the image of the issue: ![image|690x301(upload://qhYAxICQ70pJFhD44JGyn2xEb1s.png)
I don’t know why this is happening, but if it’s at all possible to fix, that would be great. Thank you.