git.iko.soy/typeable/pandoc
on master help sign in
Use skylighting 0.7.2. Adjust tests.

This should fix commercialhaskell/stackage#3719, once a new release is made.

commitedcfbccf5dbef7d64b498376b457cc0e44fd275c authorJohn MacFarlane <jgm@berkeley.edu> dateSat 9 Jun 2018, 13:34 (8 years ago) parent9b3d14b
4 files changed+11−15
pandoc.cabal+1−1 stack.yaml+2−2 test/lhs-test.html+4−6 test/lhs-test.html+lhs+4−6
pandoc.cabal+1−1
@@ -369,7 +369,7 @@ library
369369 tagsoup >= 0.14.6 && < 0.15,
370370 base64-bytestring >= 0.1 && < 1.1,
371371 zlib >= 0.5 && < 0.7,
372− skylighting >= 0.5.1 && < 0.8,
372+ skylighting >= 0.7.2 && < 0.8,
373373 data-default >= 0.4 && < 0.8,
374374 temporary >= 1.1 && < 1.4,
375375 blaze-html >= 0.9 && < 0.10,
stack.yaml+2−2
@@ -13,8 +13,8 @@ packages:
1313- '.'
1414extra-deps:
1515- pandoc-citeproc-0.14.3.1
16−- skylighting-0.7.0.2
17−- skylighting-core-0.7.0.2
16+- skylighting-0.7.2
17+- skylighting-core-0.7.2
1818- ansi-terminal-0.8.0.2
1919- tasty-1.0.1.1
2020- test-framework-0.8.2.0
test/lhs-test.html+4−6
@@ -14,7 +14,7 @@
1414 <style type="text/css">
1515a.sourceLine { display: inline-block; line-height: 1.25; }
1616a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
17−a.sourceLine:empty { height: 1.2em; position: absolute; }
17+a.sourceLine:empty { height: 1.2em; }
1818.sourceCode { overflow: visible; }
1919code.sourceCode { white-space: pre; position: relative; }
2020div.sourceCode { margin: 1em 0; }
@@ -27,13 +27,11 @@ code.sourceCode { white-space: pre-wrap; }
2727a.sourceLine { text-indent: -1em; padding-left: 1em; }
2828}
2929pre.numberSource a.sourceLine
30− { position: relative; }
31−pre.numberSource a.sourceLine:empty
32− { position: absolute; }
30+ { position: relative; left: -4em; }
3331pre.numberSource a.sourceLine::before
3432 { content: attr(data-line-number);
35− position: absolute; left: -5em; text-align: right; vertical-align: baseline;
36− border: none; pointer-events: all;
33+ position: relative; left: -1em; text-align: right; vertical-align: baseline;
34+ border: none; pointer-events: all; display: inline-block;
3735 -webkit-touch-callout: none; -webkit-user-select: none;
3836 -khtml-user-select: none; -moz-user-select: none;
3937 -ms-user-select: none; user-select: none;
test/lhs-test.html+lhs+4−6
@@ -14,7 +14,7 @@
1414 <style type="text/css">
1515a.sourceLine { display: inline-block; line-height: 1.25; }
1616a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
17−a.sourceLine:empty { height: 1.2em; position: absolute; }
17+a.sourceLine:empty { height: 1.2em; }
1818.sourceCode { overflow: visible; }
1919code.sourceCode { white-space: pre; position: relative; }
2020div.sourceCode { margin: 1em 0; }
@@ -27,13 +27,11 @@ code.sourceCode { white-space: pre-wrap; }
2727a.sourceLine { text-indent: -1em; padding-left: 1em; }
2828}
2929pre.numberSource a.sourceLine
30− { position: relative; }
31−pre.numberSource a.sourceLine:empty
32− { position: absolute; }
30+ { position: relative; left: -4em; }
3331pre.numberSource a.sourceLine::before
3432 { content: attr(data-line-number);
35− position: absolute; left: -5em; text-align: right; vertical-align: baseline;
36− border: none; pointer-events: all;
33+ position: relative; left: -1em; text-align: right; vertical-align: baseline;
34+ border: none; pointer-events: all; display: inline-block;
3735 -webkit-touch-callout: none; -webkit-user-select: none;
3836 -khtml-user-select: none; -moz-user-select: none;
3937 -ms-user-select: none; user-select: none;