motion-markdown-it 0.4.0.3.0 → 4.1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -13
- data/lib/motion-markdown-it/common/simpleidn.rb +268 -0
- data/lib/motion-markdown-it/common/utils.rb +4 -13
- data/lib/motion-markdown-it/index.rb +55 -63
- data/lib/motion-markdown-it/renderer.rb +2 -0
- data/lib/motion-markdown-it/rules_core/linkify.rb +93 -95
- data/lib/motion-markdown-it/rules_core/replacements.rb +1 -1
- data/lib/motion-markdown-it/rules_core/smartquotes.rb +2 -2
- data/lib/motion-markdown-it/rules_inline/strikethrough.rb +2 -2
- data/lib/motion-markdown-it/version.rb +1 -1
- data/lib/motion-markdown-it.rb +2 -0
- data/spec/motion-markdown-it/bench_mark_spec.rb +5 -5
- data/spec/motion-markdown-it/misc_spec.rb +241 -221
- data/spec/motion-markdown-it/utils_spec.rb +0 -12
- metadata +5 -4
@@ -21,18 +21,6 @@ describe 'Utils' do
|
|
21
21
|
expect(isValidEntityCode(0x7F)).to eq false
|
22
22
|
end
|
23
23
|
|
24
|
-
# /*it('replaceEntities', function () {
|
25
|
-
# var replaceEntities = require('../lib/common/utils').replaceEntities;
|
26
|
-
#
|
27
|
-
# assert.strictEqual(replaceEntities('&'), '&');
|
28
|
-
# assert.strictEqual(replaceEntities(' '), ' ');
|
29
|
-
# assert.strictEqual(replaceEntities(' '), ' ');
|
30
|
-
# assert.strictEqual(replaceEntities('&&'), '&&');
|
31
|
-
#
|
32
|
-
# assert.strictEqual(replaceEntities('&am;'), '&am;');
|
33
|
-
# assert.strictEqual(replaceEntities('�'), '�');
|
34
|
-
# });*/
|
35
|
-
|
36
24
|
#------------------------------------------------------------------------------
|
37
25
|
it 'assign' do
|
38
26
|
expect(assign({ a: 1 }, nil, { b: 2 })).to eq ({ a: 1, b: 2 })
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-markdown-it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Walker
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mdurl-rb
|
@@ -46,14 +46,14 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '0
|
49
|
+
version: '1.0'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '0
|
56
|
+
version: '1.0'
|
57
57
|
description: Ruby/RubyMotion version of markdown-it
|
58
58
|
email: github@digitalmoksha.com
|
59
59
|
executables: []
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- lib/motion-markdown-it/common/entities.rb
|
66
66
|
- lib/motion-markdown-it/common/html_blocks.rb
|
67
67
|
- lib/motion-markdown-it/common/html_re.rb
|
68
|
+
- lib/motion-markdown-it/common/simpleidn.rb
|
68
69
|
- lib/motion-markdown-it/common/string.rb
|
69
70
|
- lib/motion-markdown-it/common/url_schemas.rb
|
70
71
|
- lib/motion-markdown-it/common/utils.rb
|