Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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.

Comments on Text colour works in edit preview but not in saved post

Post

Text colour works in edit preview but not in saved post

+0
−0

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:

Preview text with red colour showing

However, after pressing save the rendered answer looked like this:

Rendered text after pressing save with no red colour showing

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.

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Is there a renderer that can serve both purposes? (2 comments)
Is there a renderer that can serve both purposes?
trichoplax‭ wrote over 1 year ago

Rather than fixing each discrepancy as they are raised, is there a way to use the same renderer for both the edit preview and the saved post?

If neither of the renderers used currently are suitable for both purposes, is there a third renderer available from somewhere that will be suitable for both?

Moshi‭ wrote over 1 year ago

They use the same renderer. In actuality, only the client renders the post, then sending it to the server. However, in addition to the client renderer, there is also an HTML scrubber for security purposes on the server side.

Honestly, the way we do post rendering and validation in general has a lot of issues, but it's what we're stuck with for now.