rbbcode 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -123,4 +123,10 @@ class RbbCode
123
123
  '<br/>'
124
124
  end
125
125
  end
126
+
127
+ module LiteralTextNode
128
+ def to_html
129
+ text_value
130
+ end
131
+ end
126
132
  end
@@ -15,7 +15,7 @@ grammar RbbCodeGrammar
15
15
  rule document
16
16
  # Consume the trailing linebreaks, because the paragraph lookahead
17
17
  # doesn't consume them.
18
- contents:(blockquote <RbbCode::BlockquoteNode> / list <RbbCode::ListNode> / paragraph <RbbCode::ParagraphNode>)* break_ws* <RbbCode::DocumentNode>
18
+ contents:(blockquote <RbbCode::BlockquoteNode> / list <RbbCode::ListNode> / paragraph <RbbCode::ParagraphNode> / . <RbbCode::LiteralTextNode>)* break_ws* <RbbCode::DocumentNode>
19
19
  end
20
20
 
21
21
  rule paragraph
@@ -1,6 +1,6 @@
1
1
  class RbbCode
2
2
  DEFAULT_SANITIZE_CONFIG = {
3
- :elements => %w[a blockquote br code del em img li p pre strong ul],
3
+ :elements => %w[a blockquote br code del em img li p pre strong ul u],
4
4
  :attributes => {
5
5
  'a' => %w[href],
6
6
  'img' => %w[alt src]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 1.8.24
112
+ rubygems_version: 1.8.25
113
113
  signing_key:
114
114
  specification_version: 3
115
115
  summary: RbbCode