git.iko.soy/typeable/pandoc
on master help sign in
Use latest skylighting.
commitb6cf490efd214552b5d36b0c67bdfa0705cc1130 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 10 Feb 2019, 08:06 (8 years ago) parentd0a5f2a
6 files changed+7−5
pandoc.cabal+1−1 stack.yaml+2 test/Tests/Writers/HTML.hs+1−1 test/lhs-test.html+1−1 test/lhs-test.html+lhs+1−1 test/lhs-test.latex+1−1
pandoc.cabal+1−1
@@ -380,7 +380,7 @@ library
380380 tagsoup >= 0.14.6 && < 0.15,
381381 base64-bytestring >= 0.1 && < 1.1,
382382 zlib >= 0.5 && < 0.7,
383− skylighting >= 0.7.5 && < 0.8,
383+ skylighting >= 0.7.6 && < 0.8,
384384 data-default >= 0.4 && < 0.8,
385385 temporary >= 1.1 && < 1.4,
386386 blaze-html >= 0.9 && < 0.10,
stack.yaml+2
@@ -20,6 +20,8 @@ packages:
2020 extra-dep: true
2121extra-deps:
2222- pandoc-citeproc-0.16.0.2
23+- skylighting-0.7.6
24+- skylighting-core-0.7.6
2325- ipynb-0.1
2426- texmath-0.11.2
2527ghc-options:
test/Tests/Writers/HTML.hs+1−1
@@ -34,7 +34,7 @@ tests :: [TestTree]
3434tests = [ testGroup "inline code"
3535 [ "basic" =: code "@&" =?> "<code>@&amp;</code>"
3636 , "haskell" =: codeWith ("",["haskell"],[]) ">>="
37− =?> "<code class=\"sourceCode haskell\"><span class=\"fu\">&gt;&gt;=</span></code>"
37+ =?> "<code class=\"sourceCode haskell\"><span class=\"op\">&gt;&gt;=</span></code>"
3838 , "nolanguage" =: codeWith ("",["nolanguage"],[]) ">>="
3939 =?> "<code class=\"nolanguage\">&gt;&gt;=</code>"
4040 ]
test/lhs-test.html+1−1
@@ -83,7 +83,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
8383<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to
8484return a single value:</p>
8585<div class="sourceCode" id="cb1"><pre class="sourceCode haskell literate"><code class="sourceCode haskell"><a class="sourceLine" id="cb1-1" title="1"><span class="ot">unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d</a>
86−<a class="sourceLine" id="cb1-2" title="2">unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span></a>
86+<a class="sourceLine" id="cb1-2" title="2">unsplit <span class="ot">=</span> arr <span class="op">.</span> <span class="fu">uncurry</span></a>
8787<a class="sourceLine" id="cb1-3" title="3"> <span class="co">-- arr (\op (x,y) -&gt; x `op` y)</span></a></code></pre></div>
8888<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a
8989pair of values (one arrow on the first item of the pair and one arrow on the
test/lhs-test.html+lhs+1−1
@@ -83,7 +83,7 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
8383<p><code>unsplit</code> is an arrow that takes a pair of values and combines them to
8484return a single value:</p>
8585<div class="sourceCode" id="cb1"><pre class="sourceCode literatehaskell literate"><code class="sourceCode literatehaskell"><a class="sourceLine" id="cb1-1" title="1"><span class="ot">&gt; unsplit ::</span> (<span class="dt">Arrow</span> a) <span class="ot">=&gt;</span> (b <span class="ot">-&gt;</span> c <span class="ot">-&gt;</span> d) <span class="ot">-&gt;</span> a (b, c) d</a>
86−<a class="sourceLine" id="cb1-2" title="2"><span class="ot">&gt;</span> unsplit <span class="fu">=</span> arr <span class="fu">.</span> <span class="fu">uncurry</span></a>
86+<a class="sourceLine" id="cb1-2" title="2"><span class="ot">&gt;</span> unsplit <span class="ot">=</span> arr <span class="op">.</span> <span class="fu">uncurry</span></a>
8787<a class="sourceLine" id="cb1-3" title="3"><span class="ot">&gt;</span> <span class="co">-- arr (\op (x,y) -&gt; x `op` y)</span></a></code></pre></div>
8888<p><code>(***)</code> combines two arrows into a new arrow by running the two arrows on a
8989pair of values (one arrow on the first item of the pair and one arrow on the
test/lhs-test.latex+1−1
@@ -109,7 +109,7 @@ return a single value:
109109\begin{Shaded}
110110\begin{Highlighting}[]
111111\OtherTok{unsplit ::}\NormalTok{ (}\DataTypeTok{Arrow}\NormalTok{ a) }\OtherTok{=>}\NormalTok{ (b }\OtherTok{->}\NormalTok{ c }\OtherTok{->}\NormalTok{ d) }\OtherTok{->}\NormalTok{ a (b, c) d}
112−\NormalTok{unsplit }\FunctionTok{=}\NormalTok{ arr }\FunctionTok{.} \FunctionTok{uncurry}
112+\NormalTok{unsplit }\OtherTok{=}\NormalTok{ arr }\OperatorTok{.} \FunctionTok{uncurry}
113113 \CommentTok{-- arr (\textbackslash{}op (x,y) -> x `op` y)}
114114\end{Highlighting}
115115\end{Shaded}