qiita-markdown 0.11.1 → 0.11.2

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

Potentially problematic release.


This version of qiita-markdown might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f9aec2830ebeb393f7d12ad8b568e0db39bdcbd
4
- data.tar.gz: 14082af538813e3fefcae586794a009d55316a23
3
+ metadata.gz: c616ac60e98b103ea1923bfb61a2b8dba81a8360
4
+ data.tar.gz: 4437c013d34d01d707597071dc8881e70d095c43
5
5
  SHA512:
6
- metadata.gz: 6e3acce6c9c3669240e6535cdcf75faeaa245334b1330be59c5b15ac18dc91bdbb28bc98c267cbb182790188aaf318fe594e11995dc05f25d88eafb537124d61
7
- data.tar.gz: 3ed0f2a3ed5ad6c1401dc26b14dc7e91bf7e66692a69d10cccadd33c82343af3af541e090751cd066d6684328e20f05bb1874022a54579ed097bd38f924f4e39
6
+ metadata.gz: 39edeccac9b7c4b68c7f2d098753e188869fefe42f0ed8e999775d7db4cd05015943db2f64452c7d4341bbafeb4d1c1f31fed606a3c0264d3002d36809e4ba51
7
+ data.tar.gz: 91c31e3751ccae3c4f248ea74e1aaed8a9126d0b8eda1949042e196ee3d9b56f9fc091dd09afed92a68da6f6c190df5a0de143467eb19d441e1358cf2851860c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.11.2
2
+ - Support video element on `SCRIPTABLE_RULE`
3
+
1
4
  ## 0.11.1
2
5
  - Support email address link
3
6
 
@@ -82,6 +82,14 @@ module Qiita
82
82
  "th" => [
83
83
  "style",
84
84
  ],
85
+ "video" => [
86
+ "src",
87
+ "autoplay",
88
+ "controls",
89
+ "loop",
90
+ "muted",
91
+ "poster",
92
+ ],
85
93
  all: [
86
94
  "abbr",
87
95
  "align",
@@ -183,6 +191,18 @@ module Qiita
183
191
  "https",
184
192
  ],
185
193
  },
194
+ "video" => {
195
+ "src" => [
196
+ :relative,
197
+ "http",
198
+ "https",
199
+ ],
200
+ "poster" => [
201
+ :relative,
202
+ "http",
203
+ "https",
204
+ ],
205
+ },
186
206
  },
187
207
  remove_contents: [
188
208
  "script",
@@ -193,7 +213,7 @@ module Qiita
193
213
  SCRIPTABLE_RULE = RULE.dup.tap do |rule|
194
214
  rule[:attributes] = RULE[:attributes].dup
195
215
  rule[:attributes][:all] = rule[:attributes][:all] + [:data]
196
- rule[:elements] = RULE[:elements] + ["iframe", "script"]
216
+ rule[:elements] = RULE[:elements] + ["iframe", "script", "video"]
197
217
  rule[:remove_contents] = []
198
218
  end
199
219
 
@@ -1,5 +1,5 @@
1
1
  module Qiita
2
2
  module Markdown
3
- VERSION = "0.11.1"
3
+ VERSION = "0.11.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-30 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemoji