CSS stylesheet in post?

(Mark Alldritt) #1

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 {
   padding: 1px 5px 1px 5px;

.badge.bug {

.badge.new {

.badge.update {

# ANNOUNCE: Script Debugger 6.0.7 (6A216)

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


## 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.

(Jim Underwood) #2

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.