pandoc-ruby 2.1.2 → 2.1.3
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/README.md +2 -2
- data/lib/pandoc-ruby.rb +2 -0
- data/pandoc-ruby.gemspec +1 -1
- data/test/test_pandoc_ruby.rb +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 650e0986f59f42561631dfdce08087dceb3de5e5b29e1f14172238aa035ea364
|
4
|
+
data.tar.gz: e8b2c8d850877561d3c7336fdc9aa1ae2f3282be0f3e8f7de12211f7d64c0bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf133e569fcdcd1bff4367d532cf076677e6535e803fe737034871897a6b4ec25994a3a9c56f3913510d32c7d7560142881ab852b6d989bd7f491a4d0fac579
|
7
|
+
data.tar.gz: fa7eb59f4b16126a3b838dfd91932080a0ff2eb7a9613f7c7a6041c1dfa74831fc56d3af87d60fbc4916449aa620d3e99cdf613cf119b32421e154d63d134d9f
|
data/README.md
CHANGED
@@ -48,13 +48,13 @@ symbols or strings for options without arguments and hashes of strings or
|
|
48
48
|
symbols for options with arguments.
|
49
49
|
|
50
50
|
```ruby
|
51
|
-
PandocRuby.convert('# Markdown Title', :s, {f: :markdown, to: :rst}, '
|
51
|
+
PandocRuby.convert('# Markdown Title', :s, {f: :markdown, to: :rst}, '--wrap=none', :table_of_contents)
|
52
52
|
```
|
53
53
|
|
54
54
|
is equivalent to
|
55
55
|
|
56
56
|
```bash
|
57
|
-
echo "# Markdown Title" | pandoc -s -f markdown --to=rst --
|
57
|
+
echo "# Markdown Title" | pandoc -s -f markdown --to=rst --wrap=none --table-of-contents
|
58
58
|
```
|
59
59
|
|
60
60
|
Also provided are `#to_[writer]` instance methods for each of the writers,
|
data/lib/pandoc-ruby.rb
CHANGED
data/pandoc-ruby.gemspec
CHANGED
data/test/test_pandoc_ruby.rb
CHANGED
@@ -92,6 +92,17 @@ describe PandocRuby do
|
|
92
92
|
assert converter.convert
|
93
93
|
end
|
94
94
|
|
95
|
+
it 'passes command line options without modification' do
|
96
|
+
converter = PandocRuby.new(
|
97
|
+
@string,
|
98
|
+
'+RTS', '-M512M', '-RTS', '--to=markdown', '--no-wrap'
|
99
|
+
)
|
100
|
+
converter.expects(:execute).with(
|
101
|
+
'pandoc +RTS -M512M -RTS --to=markdown --no-wrap'
|
102
|
+
).returns(true)
|
103
|
+
assert converter.convert
|
104
|
+
end
|
105
|
+
|
95
106
|
it 'supports reader extensions' do
|
96
107
|
assert_equal(
|
97
108
|
PandocRuby.convert(
|