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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b446df53404a9a04b877d6cca7d2e597c8aeb248
4
- data.tar.gz: 306bbb15becc07f985e2d670aa783e9715e07164
3
+ metadata.gz: 62c4cbf69eb8690ee4e476fb625822ad32d1f09b
4
+ data.tar.gz: 922a23d4fa64046537f0ae0e609b6d43183b5f43
5
5
  SHA512:
6
- metadata.gz: e9edb1dfa39ccd01042ee5990813dc2ee45e81c0eae11233a967e7285dfc81a05e089a69cfabe2708bc6061b3bd4769606ef52f1c87d2404e5b3f51efee94c5d
7
- data.tar.gz: f829982d042ec3c585364dae133701ae3634957f1195a5d40678d6fe884920febc65a3d05c12425fd03a6e1f5ccfc879df612acd757a9bee49b54835876f7798
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
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -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
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: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl