commonmarker 0.18.1 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of commonmarker might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 489aa89b25b1a7719ed8e7eb90cee9407b41235f
4
- data.tar.gz: 271d80841baf1d5945a9c8c8dac0b26e2e3f399d
3
+ metadata.gz: 545a27262881d1a8155ceed21db8df506186e0f3
4
+ data.tar.gz: 72dff49bd58449db9a0984780e0e0b3cc4b916e8
5
5
  SHA512:
6
- metadata.gz: f96e20323a729a2e4b59cd0c1bc7ce74c8620c21ded847695d15da281d73edfdea78049f750eb44eb45be946e8fa2e1d048e047c8ba81cda23d531e289e42b5f
7
- data.tar.gz: 8e281208f058c1aa864210cbff8c61298c47a0786abc790b18c4f82dc05123bad1e34aad8ada94ea6e3401588f8e839db3f3546e2d3e90a01f24e24f34490a10
6
+ metadata.gz: 9724a8b640621d41ec30be2314c23b39bbc94b876431170b206b63232aac1b8101d64accdc97fd1f06bc02112afbecf9ab32bf44e54aa363ef8aeaaa233c3fed
7
+ data.tar.gz: 348a661807768665f4452a03868c8375f7600303736ca478b5a6c1c604a3e38281a7ffaac4bfe0192be0ff4f196df3fb070795f39bd0a4f27a5400ebf530ba98
data/README.md CHANGED
@@ -132,6 +132,7 @@ CommonMarker accepts the same options that CMark does, as symbols. Note that the
132
132
  | Name | Description
133
133
  | ----------------------------- | -----------
134
134
  | `:DEFAULT` | The default parsing system.
135
+ | `:UNSAFE` | Allow raw/custom HTML and unsafe links. |
135
136
  | `:FOOTNOTES` | Parse footnotes.
136
137
  | `:LIBERAL_HTML_TAG` | Support liberal parsing of inline HTML tags.
137
138
  | `:SMART` | Use smart punctuation (curly quotes, etc.).
@@ -143,10 +144,10 @@ CommonMarker accepts the same options that CMark does, as symbols. Note that the
143
144
  | Name | Description |
144
145
  | ------------------ | ----------- |
145
146
  | `:DEFAULT` | The default rendering system. |
147
+ | `:UNSAFE` | Allow raw/custom HTML and unsafe links.
146
148
  | `:GITHUB_PRE_LANG` | Use GitHub-style `<pre lang>` for fenced code blocks. |
147
149
  | `:HARDBREAKS` | Treat `\n` as hardbreaks (by adding `<br/>`). |
148
- | `:NOBREAKS` | Translate `\n` in the source to a single whitespace. |
149
- | `:UNSAFE` | Allow raw HTML and unsafe links. |
150
+ | `:NOBREAKS` | Translate `\n` in the source to a single whitespace. | |
150
151
  | `:SOURCEPOS` | Include source position in rendered HTML. |
151
152
  | `:TABLE_PREFER_STYLE_ATTRIBUTES` | Use `style` insted of `align` for table cells |
152
153
  | `:FULL_INFO_STRING` | Include full info strings of code blocks in separate attribute |
@@ -11,6 +11,7 @@ module CommonMarker
11
11
  define :LIBERAL_HTML_TAG, (1 << 12)
12
12
  define :FOOTNOTES, (1 << 13)
13
13
  define :STRIKETHROUGH_DOUBLE_TILDE, (1 << 14)
14
+ define :UNSAFE, (1 << 17)
14
15
  end
15
16
 
16
17
  class Render
@@ -19,11 +20,11 @@ module CommonMarker
19
20
  define :DEFAULT, 0
20
21
  define :SOURCEPOS, (1 << 1)
21
22
  define :HARDBREAKS, (1 << 2)
22
- define :UNSAFE, (1 << 17)
23
23
  define :NOBREAKS, (1 << 4)
24
24
  define :GITHUB_PRE_LANG, (1 << 11)
25
25
  define :TABLE_PREFER_STYLE_ATTRIBUTES, (1 << 15)
26
26
  define :FULL_INFO_STRING, (1 << 16)
27
+ define :UNSAFE, (1 << 17)
27
28
  end
28
29
 
29
30
  def self.process_options(option, type)
@@ -41,7 +42,7 @@ module CommonMarker
41
42
  end
42
43
 
43
44
  def self.check_option(option, type)
44
- unless type.keys.include?(option)
45
+ unless type.key?(option)
45
46
  raise TypeError, "option ':#{option}' does not exist for #{type}"
46
47
  end
47
48
  end
@@ -1,3 +1,3 @@
1
1
  module CommonMarker
2
- VERSION = '0.18.1'.freeze
2
+ VERSION = '0.18.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmarker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-10-18 00:00:00.000000000 Z
12
+ date: 2018-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby-enum