Skip to content

Commit a38da52

Browse files
committed
update pandoc
1 parent 319e995 commit a38da52

File tree

3 files changed

+34
-42
lines changed

3 files changed

+34
-42
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ language: node_js
44
node_js:
55
- node
66
before_install:
7-
- wget https://github.com/jgm/pandoc/releases/download/2.6/pandoc-2.6-1-amd64.deb
7+
- wget https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb
88
- sudo dpkg -i pandoc-*.deb

test/diff.html

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
div.column{display: inline-block; vertical-align: top; width: 50%;}
1313
</style>
1414
<style>
15-
a.sourceLine { display: inline-block; line-height: 1.25; }
16-
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
17-
a.sourceLine:empty { height: 1.2em; }
15+
code.sourceCode > span { display: inline-block; line-height: 1.25; }
16+
code.sourceCode > span { color: inherit; text-decoration: inherit; }
17+
code.sourceCode > span:empty { height: 1.2em; }
1818
.sourceCode { overflow: visible; }
1919
code.sourceCode { white-space: pre; position: relative; }
2020
div.sourceCode { margin: 1em 0; }
@@ -24,14 +24,16 @@
2424
}
2525
@media print {
2626
code.sourceCode { white-space: pre-wrap; }
27-
a.sourceLine { text-indent: -1em; padding-left: 1em; }
28-
}
29-
pre.numberSource a.sourceLine
30-
{ position: relative; left: -4em; }
31-
pre.numberSource a.sourceLine::before
32-
{ content: attr(title);
27+
code.sourceCode > span { text-indent: -5em; padding-left: 5em; }
28+
}
29+
pre.numberSource code
30+
{ counter-reset: source-line 0; }
31+
pre.numberSource code > span
32+
{ position: relative; left: -4em; counter-increment: source-line; }
33+
pre.numberSource code > span > a:first-child::before
34+
{ content: counter(source-line);
3335
position: relative; left: -1em; text-align: right; vertical-align: baseline;
34-
border: none; pointer-events: all; display: inline-block;
36+
border: none; display: inline-block;
3537
-webkit-touch-callout: none; -webkit-user-select: none;
3638
-khtml-user-select: none; -moz-user-select: none;
3739
-ms-user-select: none; user-select: none;
@@ -43,7 +45,7 @@
4345
div.sourceCode
4446
{ color: #1f1c1b; background-color: #ffffff; }
4547
@media screen {
46-
a.sourceLine::before { text-decoration: underline; }
48+
code.sourceCode > span > a:first-child::before { text-decoration: underline; }
4749
}
4850
code span. { color: #1f1c1b; } /* Normal */
4951
code span.al { color: #bf0303; background-color: #f7e6e6; font-weight: bold; } /* Alert */
@@ -683,12 +685,12 @@
683685
<h1 id="oldnew-title"><del>Old</del><ins>New</ins> Title</h1>
684686
<p>
685687
<del>
686-
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAEASURBVEiJ7dZNSsRAEIbhRxEcdOHvzp/Bu4jIHEZwJYLgrRR3uhU36g2MS0cdL6CLTGBoE7uT9ELBDwoKUl1vviLdHf7VUXOJdSsY4QA7WMU7ClzhEpM+LzLAKT7w+UNMcILFLpA9PEYAYTxM1yVriOeWkCoK5XijWu7gJIx7LMVA5z0hVZzF3LxlAr3OupoPQCPlp5tDazhsAu1ngnzrtxA82K0pTt3UlCOb1bBKQkfrLZqmaKMJNM4MeqmScHRFTXE4jjZ6qpLQ0UWPpnVq7JdzH41FTofjTKCjmN0B7npCbiVeGdv6nd5bKZBKm7hpCbmermutbDfsr/ln+Hv6AquXyIvRl+dgAAAAAElFTkSuQmCC" alt="image" />
688+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAEASURBVEiJ7dZNSsRAEIbhRxEcdOHvzp/Bu4jIHEZwJYLgrRR3uhU36g2MS0cdL6CLTGBoE7uT9ELBDwoKUl1vviLdHf7VUXOJdSsY4QA7WMU7ClzhEpM+LzLAKT7w+UNMcILFLpA9PEYAYTxM1yVriOeWkCoK5XijWu7gJIx7LMVA5z0hVZzF3LxlAr3OupoPQCPlp5tDazhsAu1ngnzrtxA82K0pTt3UlCOb1bBKQkfrLZqmaKMJNM4MeqmScHRFTXE4jjZ6qpLQ0UWPpnVq7JdzH41FTofjTKCjmN0B7npCbiVeGdv6nd5bKZBKm7hpCbmermutbDfsr/ln+Hv6AquXyIvRl+dgAAAAAElFTkSuQmCC" title="fig:" alt="image" />
687689
</del>
688690
</p>
689691
<p>
690692
<ins>
691-
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAEGSURBVEiJ7ZZLagJBEIY/JaDowqjZGR1ylxCChxFcafBeSnbJVtxobpDJMpPEXEAXY4OUTld32wsFfyhoqMc3VUw/4KpAlRzjGkAfeAK6wC3wB6TAKzAD1qd8SBV4Af6BjcXWwAiohEAegA8FIG21y3NWAnx5Qoyl5ONVVQ/oRNoSqGmgiVJkX7a4sdbNbyTQz35XZZHYJ/91Y6gJPBeBHiNBDurdCEfvSLBtU0ufHG1iFrKjlqVoiNpFoCwy6Nss5OjSI8FyHCWLT+rTLGRHUyXRV4X1Yu6jDOV0GEYCDWwQyK+GhVJEszmOV8Y9p53eHReI0R3w7gl52+V5K9oNezZvhsvTFpjWvZBjdHnSAAAAAElFTkSuQmCC" alt="image" />
693+
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAEGSURBVEiJ7ZZLagJBEIY/JaDowqjZGR1ylxCChxFcafBeSnbJVtxobpDJMpPEXEAXY4OUTld32wsFfyhoqMc3VUw/4KpAlRzjGkAfeAK6wC3wB6TAKzAD1qd8SBV4Af6BjcXWwAiohEAegA8FIG21y3NWAnx5Qoyl5ONVVQ/oRNoSqGmgiVJkX7a4sdbNbyTQz35XZZHYJ/91Y6gJPBeBHiNBDurdCEfvSLBtU0ufHG1iFrKjlqVoiNpFoCwy6Nss5OjSI8FyHCWLT+rTLGRHUyXRV4X1Yu6jDOV0GEYCDWwQyK+GhVJEszmOV8Y9p53eHReI0R3w7gl52+V5K9oNezZvhsvTFpjWvZBjdHnSAAAAAElFTkSuQmCC" title="fig:" alt="image" />
692694
</ins>
693695
</p>
694696
<ol type="1">
@@ -699,10 +701,10 @@ <h1 id="oldnew-title"><del>Old</del><ins>New</ins> Title</h1>
699701
<li>Lorem<del> ipsum</del> dolor sit amet</li>
700702
</ol>
701703
<p>I really love <em>italic <del>fonts</del><ins>font-styles</ins></em> <del>here.</del><ins>there.</ins></p>
702-
<div class="sourceCode" id="cb1"><pre class="sourceCode diff"><code class="sourceCode diff"><a class="sourceLine" id="cb1-1" title="1"> print(&quot;Hello&quot;)</a>
703-
<a class="sourceLine" id="cb1-2" title="2"><span class="st">-print(&quot;world.&quot;)</span></a>
704-
<a class="sourceLine" id="cb1-3" title="3"><span class="va">+print(&quot;world!&quot;)</span></a>
705-
<a class="sourceLine" id="cb1-4" title="4"> print(&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt&quot;)</a></code></pre></div>
704+
<div class="sourceCode" id="cb1"><pre class="sourceCode diff"><code class="sourceCode diff"><span id="cb1-1"><a href="#cb1-1"></a> print(&quot;Hello&quot;)</span>
705+
<span id="cb1-2"><a href="#cb1-2"></a><span class="st">-print(&quot;world.&quot;)</span></span>
706+
<span id="cb1-3"><a href="#cb1-3"></a><span class="va">+print(&quot;world!&quot;)</span></span>
707+
<span id="cb1-4"><a href="#cb1-4"></a> print(&quot;Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt&quot;)</span></code></pre></div>
706708
<p>Don’t go around saying <del>to people that </del>the world owes you a living. The world owes you nothing. It was here first. <del>One</del><ins>Only one</ins> thing is impossible for God: To find<ins> any</ins> sense in any copyright law on the planet. Truth is stranger than fiction, but it is because Fiction is obliged to stick to possibilities; Truth isn’t.</p>
707709
</article>
708710
</body>

test/diff.tex

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
1+
% Options for packages loaded elsewhere
2+
\PassOptionsToPackage{unicode}{hyperref}
23
\PassOptionsToPackage{hyphens}{url}
34
\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
45
%
@@ -10,13 +11,13 @@
1011
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
1112
\usepackage[T1]{fontenc}
1213
\usepackage[utf8]{inputenc}
13-
\usepackage{textcomp} % provides euro and other symbols
14-
\else % if luatex or xelatex
14+
\usepackage{textcomp} % provide euro and other symbols
15+
\else % if luatex or xetex
1516
\usepackage{unicode-math}
1617
\defaultfontfeatures{Scale=MatchLowercase}
1718
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
1819
\fi
19-
% use upquote if available, for straight quotes in verbatim environments
20+
% Use upquote if available, for straight quotes in verbatim environments
2021
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
2122
\IfFileExists{microtype.sty}{% use microtype if available
2223
\usepackage[]{microtype}
@@ -41,8 +42,8 @@
4142
filecolor=Maroon,
4243
citecolor=Blue,
4344
urlcolor=Blue,
44-
breaklinks=true}
45-
\urlstyle{same} % don't use monospace font for urls
45+
pdfcreator={LaTeX via pandoc}}
46+
\urlstyle{same} % disable monospaced font for URLs
4647
\usepackage{color}
4748
\usepackage{fancyvrb}
4849
\newcommand{\VerbBar}{|}
@@ -92,28 +93,17 @@
9293
% margins by default, and it is still possible to overwrite the defaults
9394
% using explicit options in \includegraphics[width, height, ...]{}
9495
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
96+
% Set default figure placement to htbp
97+
\makeatletter
98+
\def\fps@figure{htbp}
99+
\makeatother
95100
\usepackage[normalem]{ulem}
96-
% avoid problems with \sout in headers with hyperref:
101+
% Avoid problems with \sout in headers with hyperref
97102
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
98-
\setlength{\emergencystretch}{3em} % prevent overfull lines
103+
\setlength{\emergencystretch}{3em} % prevent overfull lines
99104
\providecommand{\tightlist}{%
100105
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
101-
\setcounter{secnumdepth}{-2}
102-
% Redefines (sub)paragraphs to behave more like sections
103-
\ifx\paragraph\undefined\else
104-
\let\oldparagraph\paragraph
105-
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
106-
\fi
107-
\ifx\subparagraph\undefined\else
108-
\let\oldsubparagraph\subparagraph
109-
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
110-
\fi
111-
112-
% set default figure placement to htbp
113-
\makeatletter
114-
\def\fps@figure{htbp}
115-
\makeatother
116-
106+
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
117107

118108
\date{}
119109

0 commit comments

Comments
 (0)