polytexnic 0.7.5 → 0.7.6

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: 992b4e844c5cfcf319fd51187c7149f407ede674
4
- data.tar.gz: 41d96e893e916971b0b1bc2a097edd0cc724eff1
3
+ metadata.gz: 7ba6efd240014302b4f6f6f9afbf261d4b79f313
4
+ data.tar.gz: e55cd520a1d7efc0cdfd3fdaf121004f1678f0e5
5
5
  SHA512:
6
- metadata.gz: 3275186896b0e6447fc3c50b3b259cc45520c76d0f40d4fa43e27524b4d04e30ec5a8330f17d31ceec02b9377a4a0cd279ef177904a0cf06fa618d3efab30f3a
7
- data.tar.gz: 41e7f7ab12d747692d8ebd736a5d7cac1684e627f5507ad3bb43ca28a98839dae37fc354246c1a3d5dc767a2483f6429eda87fabf5dfd3b295c35251fd4fc385
6
+ metadata.gz: 9e4dd24c85820df23be2dc3b974a06686e069cfb7294df1d5b4a11ac93126dd06a727a04160b1c7a5ebe3a9fe7ab63d9273a9c6eb185c66d3e771331360ad4f8
7
+ data.tar.gz: 2cbe3f2f7d571e8f0cb494b07ff7de5f2c36a2626a45790130085144f274587d6529647bcbb0367834e6740ed0adcf7730116ef29284e80e56e1752cbe91ccf2
File without changes
@@ -91,7 +91,9 @@ module Polytexnic
91
91
  |
92
92
  \\- # hyphenation
93
93
  |
94
- \\[ %&$\#@] # space or special character
94
+ \\[ %&$\#@] # space or special character
95
+ |
96
+ \\\\ # double backslashes
95
97
  )
96
98
  /x
97
99
  markdown.gsub!(command_regex) do
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
3
3
  end
@@ -18,6 +18,12 @@ describe Polytexnic::Pipeline do
18
18
  it { should_not include '\begin{document}' }
19
19
  end
20
20
 
21
+ context "with a manual break" do
22
+ let(:source) { '[Michael Hartl](http://www.michaelhartl.com/) \\\\ Author, [*The Ruby on Rails Tutorial*](http://railstutorial.org/)' }
23
+ it { should include '\\\\' }
24
+ it { should_not include '\textbackslash' }
25
+ end
26
+
21
27
  context "for multiline Markdown" do
22
28
  let(:source) do <<-EOS
23
29
  # A chapter
@@ -18,6 +18,11 @@ describe 'Polytexnic::Pipeline#to_html' do
18
18
  it { should eq '' }
19
19
  end
20
20
 
21
+ context "with a manual break" do
22
+ let(:polytex) { 'foo \\\\ bar' }
23
+ it { should include '<span class="break">' }
24
+ end
25
+
21
26
  context "with a code listing" do
22
27
  let(:polytex) do <<-'EOS'
23
28
  % \begin{codelisting}
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.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -193,6 +193,7 @@ files:
193
193
  - .pull_requests/1386718874
194
194
  - .pull_requests/1386936855
195
195
  - .pull_requests/1387316123
196
+ - .pull_requests/1387337421
196
197
  - .rspec
197
198
  - Gemfile
198
199
  - Guardfile