1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-07-01 00:35:06 +02:00

HTML formatter + import all Pygments styles.

This commit is contained in:
Alec Thomas
2017-07-19 23:51:16 -07:00
parent a3862242d5
commit d12529ae61
49 changed files with 1774 additions and 221 deletions

View File

@ -0,0 +1,14 @@
package html
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestCompressStyle(t *testing.T) {
style := "color: #888888; background-color: #ffffff"
actual := compressStyle(style)
expected := "color:#888;background-color:#fff"
require.Equal(t, expected, actual)
}