redcloth icon indicating copy to clipboard operation
redcloth copied to clipboard

CSS colors

Open bsbodden opened this issue 5 years ago • 0 comments

In RedCloth 3.0.4 something like:

text2 = %[|_.a|_.b|_.c|
{background:rgb(240,245,250);color:red}. |a|red|row|]

puts RedCloth.new(text).to_html()

Produces:

<table>
		<tr>
			<th>a</th>
			<th>b</th>
			<th>c</th>
		</tr>
		<tr style="background:rgb(240,245,250);color:red;">
			<td>a</td>
			<td>red</td>
			<td>row</td>
		</tr>
	</table>

But with 4.3.2 results in:

<table>
	<tr>
		<th>a</th>
		<th>b</th>
		<th>c</th>
	</tr>
</table>
{background:rgb(240,245,250);color:red}. |a|red|row|

Is there something I'm missing with CSS colors expressed as RGB values?

bsbodden avatar Jan 27 '20 22:01 bsbodden