md2dw 1.0.0 → 1.0.1

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: 5f54031624c612c43ffba948c99fd76b10d0a393
4
- data.tar.gz: 14d39b6c2c83d2f748d64645c099b1fa3fe65331
3
+ metadata.gz: 5509bdb0f9e83865a952d7dfc99e09f3350e0f91
4
+ data.tar.gz: b296955223fecea173b419357b12e2d2fae16e94
5
5
  SHA512:
6
- metadata.gz: 566f9f14e0d4604f4ed119d2b3d05d5b733cf02836722767da03c62b3bf93b8b616e8089018e6193411b7953675eae8fba66883154b8a2358625432d4388f68a
7
- data.tar.gz: 075286cda8a1c3b05b095ab9411d3d4004d5e2904e38c00349e4547dabd194f257df6dc4c3111facbd749b33c7f3844e38e7535e972afa1a013e3c573b2f8f49
6
+ metadata.gz: ec3eca0edf05b55a17ab6de03bd757534ca89c406a04ee1c8ea776cf6b60c8a75936722ffc4f22ed95553125cdba0f1dfaa0448b22ec0ada27f997508a2e1edf
7
+ data.tar.gz: b9fc73620f2d292078f7a8964383b3786f0461ca46fe5825f5af8208edd946c66609bfa2c5efdbc200f84d0b535d7f80a22f144b77212e6e5c0184c922727c8a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -65,6 +65,7 @@ module MD2DW
65
65
  end
66
66
 
67
67
  def codespan code
68
+ code = "%%#{code}%%" if code =~ /--/
68
69
  "''%s''" % code
69
70
  end
70
71
 
@@ -47,7 +47,10 @@ class TestMD2DW < MiniTest::Test
47
47
  # Code
48
48
  [ code_block_md, code_block_dw ],
49
49
  [ code_block_mde_md, code_block_mde_dw ],
50
- [ code_block_gfm_md, code_block_gfm_dw ]
50
+ [ code_block_gfm_md, code_block_gfm_dw ],
51
+
52
+ # Special edge-case for double-dashes in code samples
53
+ [ "`--TEST`", "''%%--TEST%%''" ]
51
54
 
52
55
  ].map { |tag| assert_renders tag[0], tag[1] }
53
56
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md2dw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2014-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop