CSS stylesheet in post?

This question is for those with experience with Discourse. Is there a way to allow admins to include CSS stylesheet definitions and class references in their posts. I’m trying to improve my automated release note generation. Here’s how I want my post rendered:

When I post the text below to the forum, the CSS stuff is stripped.

<style type='text/css'>
.badge {
   background:green;
   color:white;
   text-align:center;
   border-radius:4px;
   padding: 1px 5px 1px 5px;
}

.badge.bug {
   background:#23967F;
}

.badge.new {
   background:#3BB5FF;
}

.badge.update {
   background:#CE8EDB;
}
</style>

# ANNOUNCE: Script Debugger 6.0.7 (6A216)

A new Script Debugger 6.0.7 build is available for download here:

[http://www.latenightsw.com/archives/beta_for_script_debugger/ScriptDebugger6.0.7-6A216.dmg](http://www.latenightsw.com/archives/beta_for_script_debugger/ScriptDebugger6.0.7-6A216.dmg)

## Changes in the 6.0.7 release

<span class='badge bug'>FIXED</span> <span class='badge new'>NEW</span> <span class='badge update'>UPDATE</span>

- <span class='badge bug'>814</span> Corrected a cosmetic problem where document tabs are not drawn in the correct shade of grey on macOS Sierra systems.

- <span class='badge bug'>812</span> Resolved a macOS High Sierra bug that caused Script Debugger's Spotlight plugin to crash under certain circumstances.

- <span class='badge bug'>808</span> Resolved a regression in Script Debugger 6.0.6 which prevented the creation of new documents form templates that referenced script libraries in AppleScript `use` statements.

Mark, I’m not sure about using CSS directly in you post, but you might be able to define them in the site settings. Your best bet is to post this question in the Discourse support forum, meta.discourse.org.

1 Like