Skip to content

Commit 92ce44e

Browse files
committed
janky loop
1 parent 0afd1b1 commit 92ce44e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

misc/browser

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ PART=${3:-1}
66

77
cd ~/aoc/$YEAR/day$DAY
88

9+
set -o pipefail
10+
while true; do
911
cat puzzle.html \
1012
| pup -p -i 0 --pre article \
1113
| html-minifier --collapse-whitespace \
@@ -14,4 +16,6 @@ cat puzzle.html \
1416
| sed 's/\([(]\) `/\1`/g' \
1517
| sed 's/* \([.,:;!?)]\)/*\1/g' \
1618
| sed 's/\([(]\) \*/\1*/g' \
17-
| glow -p -s ../../misc/glow.json
19+
| glow -p -s ../../misc/glow.json \
20+
|| exit
21+
done

misc/glow.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"crossed_out": true
2525
},
2626
"emph": {
27-
"background_color": "#1f2335",
28-
"color": "#bb9af7"
27+
"color": "#e0af68",
28+
"italic": true
2929
},
3030
"strong": {
3131
"color": "#a9b1d6",
@@ -63,8 +63,6 @@
6363
},
6464
"code": {
6565
"background_color": "#1f2335",
66-
"prefix": " ",
67-
"suffix": " ",
6866
"color": "#9ece6a"
6967
},
7068
"code_block": {

0 commit comments

Comments
 (0)