polytexnic 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/polytexnic/preprocessors/polytex.rb +2 -0
- data/lib/polytexnic/version.rb +1 -1
- data/spec/markdown_to_polytex_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c4cbf69eb8690ee4e476fb625822ad32d1f09b
|
4
|
+
data.tar.gz: 922a23d4fa64046537f0ae0e609b6d43183b5f43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94c950d8c489bfe1edb194f566fc39bdc1468eb1922db187cb6529c4c035a45e5e4e2baf73a60c4052f029e4f416bde51183f84e3f6e818e88be1b01dce4298e
|
7
|
+
data.tar.gz: 6ec49f0e5f229b95ba870182f0c7fd50ea0a1a34514df99073ebd4468ea4f9e1e93cc0a6fc6f6042384e384cab24c4abfcbcf2a0beb8ed264e7e1ecd686ec2f2
|
@@ -67,6 +67,8 @@ module Polytexnic
|
|
67
67
|
# Caches raw LaTeX commands to be passed through the pipeline.
|
68
68
|
def cache_raw_latex(markdown, cache)
|
69
69
|
command_regex = /(
|
70
|
+
\s*\\.*\n # Command on a single line
|
71
|
+
|
|
70
72
|
~\\ref\{.*?\} # reference with a tie
|
71
73
|
|
|
72
74
|
~\\eqref\{.*?\} # eq reference with a tie
|
data/lib/polytexnic/version.rb
CHANGED
@@ -141,10 +141,10 @@ bar
|
|
141
141
|
it { should resemble source }
|
142
142
|
end
|
143
143
|
|
144
|
-
context "a codelisting environment" do
|
144
|
+
context "a codelisting environment, including a nested command." do
|
145
145
|
let(:source) do <<-'EOS'
|
146
146
|
\begin{codelisting}
|
147
|
-
\codecaption{Lorem ipsum.}
|
147
|
+
\codecaption{Lorem \emph{ipsum}.}
|
148
148
|
\label{code:lorem}
|
149
149
|
```ruby
|
150
150
|
def foo; "bar"; end
|
@@ -153,7 +153,7 @@ def foo; "bar"; end
|
|
153
153
|
EOS
|
154
154
|
end
|
155
155
|
it { should resemble '\begin{codelisting}' }
|
156
|
-
it { should resemble '\codecaption{Lorem ipsum.}' }
|
156
|
+
it { should resemble '\codecaption{Lorem \emph{ipsum}.}' }
|
157
157
|
it { should resemble '\label{code:lorem}' }
|
158
158
|
it { should resemble '\end{codelisting}' }
|
159
159
|
end
|