Class: BlueDoc::SML::Rules::Base
- Inherits:
-
Object
- Object
- BlueDoc::SML::Rules::Base
show all
- Extended by:
- EscapeUtils
- Includes:
- Utils
- Defined in:
- lib/bluedoc/sml/rules/base.rb
Direct Known Subclasses
Blockquote, Br, Codeblock, File, Heading, Hr, Image, Link, List, Math, Mention, Paragraph, Plantuml, Root, Span, SpanWithMark, Table, Td, Text, Tr, Video
Constant Summary
collapse
- INDENT_PX =
8
Class Method Summary
collapse
Class Method Details
.match?(node) ⇒ Boolean
18
19
20
|
# File 'lib/bluedoc/sml/rules/base.rb', line 18
def self.match?(node)
false
end
|
.to_html(node, opts = {}) ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/bluedoc/sml/rules/base.rb', line 22
def self.to_html(node, opts = {})
children = opts[:renderer].children_to_html(node)
tag = tag_name(node)
attrs = attributes(node)
style_attrs = style_for_attrs(attrs)
%(<#{tag}#{style_attrs}>#{children}</#{tag}>)
end
|
.to_text(node, opts = {}) ⇒ Object
30
31
32
|
# File 'lib/bluedoc/sml/rules/base.rb', line 30
def self.to_text(node, opts = {})
opts[:renderer].children_to_text(node)
end
|