Class: BlueDoc::SML::Rules::Blockquote
- Inherits:
-
Base
- Object
- Base
- BlueDoc::SML::Rules::Blockquote
show all
- Defined in:
- lib/bluedoc/sml/rules/blockquote.rb
Constant Summary
Constants inherited
from Base
BlueDoc::SML::Rules::Base::INDENT_PX
Class Method Summary
collapse
Methods inherited from Base
to_text
Class Method Details
.match?(node) ⇒ Boolean
5
6
7
|
# File 'lib/bluedoc/sml/rules/blockquote.rb', line 5
def self.match?(node)
tag_name(node) == "blockquote"
end
|
.to_html(node, opts = {}) ⇒ Object
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/bluedoc/sml/rules/blockquote.rb', line 9
def self.to_html(node, opts = {})
renderer = opts[:renderer]
attrs = attributes(node)
children = renderer.children_to_html(node)
nid_attr = name_by_attrs(attrs)
%(<blockquote#{nid_attr}>#{children}</blockquote>)
end
|