martile 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +5 -3
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c59da8fa9b9fff57c84a2503ed684788a6a81082
|
4
|
+
data.tar.gz: 4a3438a8ad32b5efa66021b584529b2e4c37ddd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8c12768f2e1a0e84e31c315e0aba359efc4d8e6a7eade158e3ceb21e712cdee0c91ee61d9041d22aa359531df57d7fa223d02ca8322d69fd06ea19b4c2c477a
|
7
|
+
data.tar.gz: 116f466348f178fa3c9a866d20521d6170c17f34063ff708c7271f3d2f526d825bffb3a4fcb1fcd1bd67fc05ba99d597c104faede165144784135903f94539b6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -8,9 +8,11 @@ require 'dynarex'
|
|
8
8
|
require 'rdiscount'
|
9
9
|
|
10
10
|
|
11
|
-
# bug fix:
|
12
|
-
#
|
11
|
+
# bug fix: 28-Mar-2015: Fixes a bug introduced on the 20-Mar-2015 relating to
|
12
|
+
# Markdown lists not being converted to HTML
|
13
13
|
# see http://www.jamesrobertson.eu/bugtracker/2015/mar/28/markdown-lists-are-not-converted-to-html.html
|
14
|
+
# improvement: A space is now appended to the unicode checkbox to
|
15
|
+
# separate it from the text
|
14
16
|
# feature: 21-Mar-2015: URLS are now given labels e.g.
|
15
17
|
# [news](http://news.bbc.co.uk)<span class='domain'>[bbc.co.uk]</span>
|
16
18
|
# bug fix: 20-Mar-2015: HTML and XML elements should not be filtered out of
|
@@ -238,7 +240,7 @@ class Martile
|
|
238
240
|
# convert square brackets to unicode check boxes
|
239
241
|
# replaces a [] with a unicode checkbox,
|
240
242
|
# and [x] with a unicode checked checkbox
|
241
|
-
s2 = s.gsub(/\s\[\s*\]\s/,' ☐').gsub(/\s\[x\]\s/,' ☑')
|
243
|
+
s2 = s.gsub(/\s\[\s*\]\s/,' ☐ ').gsub(/\s\[x\]\s/,' ☑ ')
|
242
244
|
|
243
245
|
s2.gsub(/(?:^\[|\s\[)[^\]]+\]\((https?:\/\/[^\s]+)/) do |x|
|
244
246
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|