polytexnic 1.5.9 → 1.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/polytexnic/postprocessors/html.rb +1 -0
- data/lib/polytexnic/version.rb +1 -1
- data/spec/to_html/quotations_and_verse_spec.rb +30 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfe26c4c48f6d2b37be2d6b88ecaab5f9f824525c2823c38f0beaeb0d39df9c7
|
4
|
+
data.tar.gz: 9acf5c68517e741c781eeab8b60098183ed12f411c9223124c7d06a52d15971f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d420185ea890f21da2dab06f03d36513734ccc5fb8169e4641648a8f01b688f2166df6d5b234098c23dc420c62c5f7766141e6c890b84f06e0eea9e7d767a70
|
7
|
+
data.tar.gz: d5e8a7eb19fb8f0cab3d75e83819843190cb24f18b2411049eba68efefc1bc56be89f6f88056989850569f92fc240ddbf834762d39592ce576ff0ee2d9d35677
|
data/lib/polytexnic/version.rb
CHANGED
@@ -70,6 +70,35 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
70
70
|
end
|
71
71
|
it { should_not include('noindent') }
|
72
72
|
end
|
73
|
+
|
74
|
+
context "inside a figure" do
|
75
|
+
let(:polytex) do <<-'EOS'
|
76
|
+
\chapter{Manipulating files}
|
77
|
+
\label{cha:manipulating_files}
|
78
|
+
|
79
|
+
\begin{figure}
|
80
|
+
\begin{quote}
|
81
|
+
FRom faireſt creatures we deſire increaſe, \\
|
82
|
+
That thereby beauties \emph{Roſe} might neuer die, \\
|
83
|
+
But as the riper ſhould by time deceaſe, \\
|
84
|
+
His tender heire might beare his memory: \\
|
85
|
+
But thou contracted to thine owne bright eyes, \\
|
86
|
+
Feed'ſt thy lights flame with ſelfe ſubſtantiall fewell, \\
|
87
|
+
Making a famine where aboundance lies, \\
|
88
|
+
Thy ſelfe thy foe,to thy ſweet ſelfe too cruell: \\
|
89
|
+
Thou that art now the worlds freſh ornament, \\
|
90
|
+
And only herauld to the gaudy ſpring, \\
|
91
|
+
Within thine owne bud burieſt thy content, \\
|
92
|
+
And tender chorle makſt waſt in niggarding: \\
|
93
|
+
\quad Pitty the world,or elſe this glutton be, \\
|
94
|
+
\quad To eate the worlds due,by the graue and thee.\\
|
95
|
+
\end{quote}
|
96
|
+
\caption{A copy-and-pastable version of Shakespeare's first sonnet (\href{https://en.wikipedia.org/wiki/Cf.}{\emph{cf.}}\ Figure~\ref{fig:sonnet_1}).\label{fig:copy_paste_sonnet_1}}
|
97
|
+
\end{figure}
|
98
|
+
EOS
|
99
|
+
end
|
100
|
+
it { should include('ſubſtantiall') }
|
101
|
+
end
|
73
102
|
end
|
74
103
|
|
75
104
|
describe '\verse' do
|
@@ -95,4 +124,4 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
95
124
|
end
|
96
125
|
end
|
97
126
|
end
|
98
|
-
end
|
127
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polytexnic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-04-
|
12
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|