qiita-markdown 0.0.4 → 0.0.5

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: 3af22c8eb0334e08693fbe35fefc4918b8f0a23e
4
- data.tar.gz: ea1ecd65e7cb7dca1d91e3bbe74edfbb3051fa5f
3
+ metadata.gz: 4b7f1b7babdb03dcf12c0fab552db3d1dede3acb
4
+ data.tar.gz: f2989a7161187b503576e508c9314d3f19ef9e86
5
5
  SHA512:
6
- metadata.gz: 97290186fac7d4b16831c5996f589b4357da4892067c4df975134a7c53299854574f5f8950355c667d85efbb8db2a5dceebefdc2dfda7a7d8e408b79c1491dfa
7
- data.tar.gz: bd3caef118d1074cc65fcda3aefedee101c3cb4dae0c35d7ffe8df49b9b43d21615b5ffffb4aa8cc1359e42904438fb42be6f013073a20fe8baca899e138fd16
6
+ metadata.gz: a5d59878ad1a408bb792fb3d8b916241e9e20c537c11d416048f317f0a8c9c251fd816bb1badd801563ab889fb9ce97c9a90016bd13e706c59e57d9c92c282c1
7
+ data.tar.gz: 9367a914247a1e5881b626f27d17c7ac4692a7961900d7d9b39612258bfcf4efde9c235767c39db3597341de566a8ab7ae9d765e9d9ed9037e00ca316c36ac79
@@ -1,3 +1,6 @@
1
+ ## 0.0.5
2
+ * Allow font element with color attribute
3
+
1
4
  ## 0.0.4
2
5
  * Add iframe and data-attributes support
3
6
 
@@ -6,8 +6,6 @@ module Qiita
6
6
  #
7
7
  # You can pass :allowed_usernames context to limit mentioned usernames.
8
8
  class Mention < HTML::Pipeline::MentionFilter
9
- # Overrides HTML::Pipeline::MentionFilter's constant.
10
- # Allows "_" instead of "-" in username pattern.
11
9
  MentionPattern = /
12
10
  (?:^|\W)
13
11
  @((?>[\w][\w-]{1,30}\w(?:@github)?))
@@ -108,6 +108,7 @@ module Qiita
108
108
  "dl",
109
109
  "dt",
110
110
  "em",
111
+ "font",
111
112
  "h1",
112
113
  "h2",
113
114
  "h3",
@@ -1,5 +1,5 @@
1
1
  module Qiita
2
2
  module Markdown
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -363,5 +363,17 @@ describe Qiita::Markdown::Processor do
363
363
  ]
364
364
  end
365
365
  end
366
+
367
+ context "with font element with color attribute" do
368
+ let(:markdown) do
369
+ %[<font color="red">test</font>]
370
+ end
371
+
372
+ it "allows font element with color attribute" do
373
+ should eq <<-EOS.strip_heredoc
374
+ <p>#{markdown}</p>
375
+ EOS
376
+ end
377
+ end
366
378
  end
367
379
  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.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-07 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport