File tree 1 file changed +11
-11
lines changed
skylighting-format-typst/src/Skylighting/Format
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,14 @@ macrodef defaultcol tokstyles' tokt =
99
99
bg x = case tokenBackground tokf of
100
100
Nothing -> x
101
101
Just _c -> x -- TODO?
102
- textstyle x = " text(" <> bf x <> it x <> co x <> x <> " )"
103
- it x = if tokenItalic tokf
104
- then " style: \" italic\" ,"
105
- else " "
106
- bf x = if tokenBold tokf
107
- then " weight: \" bold\" ,"
108
- else " "
109
- co x = case tokenColor tokf `mplus` defaultcol of
110
- Just c -> " fill: rgb(" <>
111
- Text. pack (show (fromColor c :: String )) <> " ),"
112
- Nothing -> " "
102
+ textstyle x = " text(" <> bf <> it <> co <> x <> " )"
103
+ it = if tokenItalic tokf
104
+ then " style: \" italic\" ,"
105
+ else " "
106
+ bf = if tokenBold tokf
107
+ then " weight: \" bold\" ,"
108
+ else " "
109
+ co = case tokenColor tokf `mplus` defaultcol of
110
+ Just c -> " fill: rgb(" <>
111
+ Text. pack (show (fromColor c :: String )) <> " ),"
112
+ Nothing -> " "
You can’t perform that action at this time.
0 commit comments