Skip to content

Commit b970228

Browse files
committed
Refresh targets
1 parent 5ad793e commit b970228

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ DIFF ?= diff --strip-trailing-cr -u
33
.PHONY: test
44

55
test: test_html test_latex
6+
@echo Test complete.
7+
8+
recreate: expected.html expected.tex
69

710
test_html: README.md columns.lua
811
@pandoc --lua-filter columns.lua --standalone --to=html $< \

expected.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
<title>Columns - Multiple columns support in Pandoc’s markdown</title>
99
<style>
1010
html {
11-
line-height: 1.5;
12-
font-family: Georgia, serif;
13-
font-size: 20px;
1411
color: #1a1a1a;
1512
background-color: #fdfdfd;
1613
}
@@ -29,13 +26,16 @@
2926
@media (max-width: 600px) {
3027
body {
3128
font-size: 0.9em;
32-
padding: 1em;
29+
padding: 12px;
3330
}
3431
h1 {
3532
font-size: 1.8em;
3633
}
3734
}
3835
@media print {
36+
html {
37+
background-color: white;
38+
}
3939
body {
4040
background-color: transparent;
4141
color: black;
@@ -85,9 +85,10 @@
8585
color: #606060;
8686
}
8787
code {
88-
font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace;
88+
font-family: Menlo, Monaco, Consolas, 'Lucida Console', monospace;
8989
font-size: 85%;
9090
margin: 0;
91+
hyphens: manual;
9192
}
9293
pre {
9394
margin: 1em 0;
@@ -158,6 +159,8 @@
158159
margin: 0 0.8em 0.2em -1.6em;
159160
vertical-align: middle;
160161
}
162+
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
163+
/* CSS for syntax highlighting */
161164
pre > code.sourceCode { white-space: pre; position: relative; }
162165
pre > code.sourceCode > span { display: inline-block; line-height: 1.25; }
163166
pre > code.sourceCode > span:empty { height: 1.2em; }
@@ -221,7 +224,6 @@
221224
code span.va { color: #19177c; } /* Variable */
222225
code span.vs { color: #4070a0; } /* VerbatimString */
223226
code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
224-
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
225227
</style>
226228
<style>
227229
/* Styles added by the columns.lua pandoc filter */
@@ -240,7 +242,7 @@ <h1 class="title">Columns - Multiple columns support in Pandoc’s
240242
</header>
241243
<h1 id="columns">Columns</h1>
242244
<p>Multiple columns support in Pandoc’s markdown.</p>
243-
<p>v1.1.2. Copyright: © 2021 Julien Dutant <a
245+
<p>Copyright: ©2021-23 Julien Dutant <a
244246
href="mailto:julien.dutant@kcl.ac.uk"
245247
class="email">julien.dutant@kcl.ac.uk</a> License: MIT - see LICENSE
246248
file for details.</p>

expected.tex

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@
55
\documentclass[
66
]{article}
77
\usepackage{amsmath,amssymb}
8-
\usepackage{lmodern}
98
\usepackage{iftex}
109
\ifPDFTeX
1110
\usepackage[T1]{fontenc}
1211
\usepackage[utf8]{inputenc}
1312
\usepackage{textcomp} % provide euro and other symbols
1413
\else % if luatex or xetex
15-
\usepackage{unicode-math}
14+
\usepackage{unicode-math} % this also loads fontspec
1615
\defaultfontfeatures{Scale=MatchLowercase}
1716
\defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
1817
\fi
18+
\usepackage{lmodern}
19+
\ifPDFTeX\else
20+
% xetex/luatex font selection
21+
\fi
1922
% Use upquote if available, for straight quotes in verbatim environments
2023
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
2124
\IfFileExists{microtype.sty}{% use microtype if available
@@ -81,7 +84,7 @@
8184
\fi
8285
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
8386
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
84-
\urlstyle{same} % disable monospaced font for URLs
87+
\urlstyle{same}
8588
\hypersetup{
8689
pdftitle={Columns - Multiple columns support in Pandoc's markdown},
8790
pdfauthor={Julien Dutant},
@@ -100,7 +103,7 @@ \section{Columns}\label{columns}}
100103

101104
Multiple columns support in Pandoc's markdown.
102105

103-
v1.1.2. Copyright: © 2021 Julien Dutant
106+
Copyright: ©2021-23 Julien Dutant
104107
\href{mailto:julien.dutant@kcl.ac.uk}{\nolinkurl{julien.dutant@kcl.ac.uk}}
105108
License: MIT - see LICENSE file for details.
106109

0 commit comments

Comments
 (0)