polytexnic 1.2.5 → 1.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/polytexnic/preprocessors/polytex.rb +1 -1
- data/lib/polytexnic/version.rb +1 -1
- data/spec/markdown_to_polytex_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8b981d595cd53357635775f3adb9cc2656c4363
|
|
4
|
+
data.tar.gz: bf75bd800be1667fc3ae2db138cfb1d700843480
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf971b47d5f357e29da4fefbca8dd3d179f5c3a31befe3e8b46c14f068e3bfe3eafe141dc348af78420f9374ff72daa000247f96271b2f58aff365dba21c6ca4
|
|
7
|
+
data.tar.gz: 2e163102566eb596716586abe53c8ba512427bc0961601fe326fbccc6aa7ebcd7bc79ba59be69af54255fa74e99f4b98eff65b07a090c35fc73af84106651868
|
|
@@ -47,7 +47,7 @@ module Kramdown
|
|
|
47
47
|
attrs = attribute_list(el)
|
|
48
48
|
# Override the kramdown default by adding "here" placement.
|
|
49
49
|
# Authors who want a different behavior can always use raw LaTeX.
|
|
50
|
-
"\\begin{figure}[
|
|
50
|
+
"\\begin{figure}[H]#{attrs}\n\\begin{center}\n#{img}\n\\end{center}\n\\caption{#{escape(el.children.first.attr['alt'])}}\n#{latex_link_target(el, true)}\n\\end{figure}#{attrs}\n"
|
|
51
51
|
else
|
|
52
52
|
img.gsub('\includegraphics', '\image') + "\n"
|
|
53
53
|
end
|
data/lib/polytexnic/version.rb
CHANGED
|
@@ -170,7 +170,7 @@ That is it. You can keep writing your text after the footnote content.
|
|
|
170
170
|

|
|
171
171
|
EOS
|
|
172
172
|
end
|
|
173
|
-
it { should include '\begin{figure}[
|
|
173
|
+
it { should include '\begin{figure}[H]' }
|
|
174
174
|
it { should include '\caption' }
|
|
175
175
|
end
|
|
176
176
|
|
|
@@ -591,4 +591,4 @@ def bar(): return "bar"
|
|
|
591
591
|
it { should include output }
|
|
592
592
|
end
|
|
593
593
|
end
|
|
594
|
-
end
|
|
594
|
+
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.2.
|
|
4
|
+
version: 1.2.6
|
|
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: 2016-
|
|
12
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|