Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Text colour works in edit preview but not in saved post
I entered the following markdown into an answer I posted recently:
### ImageMagick
> <p style="color:red">An error occurred while installing rmagick (4.2.6), and Bundler cannot continue.</p>
I wasn't sure if the red colour would work, but I tried it to find out.
In the edit preview, it looked like this:
However, after pressing save the rendered answer looked like this:
I don't mind whether Codidact posts support setting the colour of text or not, but it would be useful to have consistent behaviour between the preview and the saved post.
1 answer
The fix for "Although div tag is not allowed, it's rendered in the preview" has also fixed this inconsistent style problem.
Entering the same raw text into the input text box now results in an editor preview that does not show red text (consistent with the final rendered post), and has a message above the preview explaining clearly which parts of the HTML will be removed.
Raw text
### ImageMagick
> <p style="color:red">An error occurred while installing rmagick (4.2.6), and Bundler cannot continue.</p>
2 comment threads