markdown-ui 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/Changelog +14 -0
- data/Gemfile +3 -0
- data/components/collections/markdown-ui-grid/lib/grid/column/column.rb +6 -9
- data/components/collections/markdown-ui-grid/lib/grid/grid.rb +6 -9
- data/components/collections/markdown-ui-grid/lib/grid/row/row.rb +6 -9
- data/components/collections/markdown-ui-grid/markdown-ui-grid.gemspec +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/custom.rb +12 -12
- data/components/collections/markdown-ui-menu/lib/menu/element.rb +54 -52
- data/components/collections/markdown-ui-menu/lib/menu/pagination.rb +11 -10
- data/components/collections/markdown-ui-menu/lib/menu/pointing.rb +11 -10
- data/components/collections/markdown-ui-menu/lib/menu/secondary.rb +11 -10
- data/components/collections/markdown-ui-menu/lib/menu/standard.rb +11 -10
- data/components/collections/markdown-ui-menu/lib/menu/tabular.rb +11 -10
- data/components/collections/markdown-ui-menu/lib/menu/text.rb +11 -10
- data/components/collections/markdown-ui-menu/lib/menu/vertical.rb +11 -10
- data/components/collections/markdown-ui-message/lib/message/custom_message.rb +11 -11
- data/components/collections/markdown-ui-message/lib/message/list_message.rb +10 -9
- data/components/collections/markdown-ui-message/lib/message/message.rb +32 -29
- data/components/collections/markdown-ui-message/lib/message/standard_message.rb +10 -9
- data/components/collections/markdown-ui-message/lib/message/version.rb +1 -1
- data/components/collections/markdown-ui-message/markdown-ui-message.gemspec +2 -2
- data/components/elements/markdown-ui-button/lib/button/animated.rb +24 -22
- data/components/elements/markdown-ui-button/lib/button/basic.rb +14 -12
- data/components/elements/markdown-ui-button/lib/button/custom.rb +16 -14
- data/components/elements/markdown-ui-button/lib/button/element.rb +55 -53
- data/components/elements/markdown-ui-button/lib/button/focusable.rb +14 -12
- data/components/elements/markdown-ui-button/lib/button/group/buttons/custom.rb +14 -12
- data/components/elements/markdown-ui-button/lib/button/group/buttons/element.rb +22 -20
- data/components/elements/markdown-ui-button/lib/button/group/buttons/icon.rb +14 -12
- data/components/elements/markdown-ui-button/lib/button/group/buttons/standard.rb +14 -12
- data/components/elements/markdown-ui-button/lib/button/icon.rb +14 -12
- data/components/elements/markdown-ui-button/lib/button/labeled_icon.rb +19 -17
- data/components/elements/markdown-ui-button/lib/button/standard.rb +14 -12
- data/components/elements/markdown-ui-container/lib/container/alignment/center.rb +1 -1
- data/components/elements/markdown-ui-container/lib/container/alignment/left.rb +1 -1
- data/components/elements/markdown-ui-container/lib/container/alignment/right.rb +1 -1
- data/components/elements/markdown-ui-container/lib/container/custom.rb +1 -1
- data/components/elements/markdown-ui-container/lib/container/element.rb +5 -5
- data/components/elements/markdown-ui-container/lib/container/standard.rb +1 -1
- data/components/elements/markdown-ui-container/lib/container/text.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/basic_block.rb +19 -0
- data/components/elements/markdown-ui-content/lib/content/content_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/custom.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/divider_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/field_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/flag.rb +2 -2
- data/components/elements/markdown-ui-content/lib/content/form_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/header.rb +2 -2
- data/components/elements/markdown-ui-content/lib/content/header_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/icon.rb +2 -2
- data/components/elements/markdown-ui-content/lib/content/input_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/item.rb +4 -4
- data/components/elements/markdown-ui-content/lib/content/item_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/list.rb +6 -6
- data/components/elements/markdown-ui-content/lib/content/parser.rb +17 -17
- data/components/elements/markdown-ui-content/lib/content/span_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/text.rb +6 -6
- data/components/elements/markdown-ui-header/lib/header/header.rb +3 -3
- data/components/elements/markdown-ui-input/lib/input/custom.rb +4 -4
- data/components/elements/markdown-ui-input/lib/input/element.rb +10 -10
- data/components/elements/markdown-ui-label/lib/label/custom.rb +2 -2
- data/components/elements/markdown-ui-label/lib/label/element.rb +9 -16
- data/components/elements/markdown-ui-segment/lib/segment/custom_segment.rb +1 -1
- data/components/elements/markdown-ui-segment/lib/segment/horizontal_segment.rb +1 -1
- data/components/elements/markdown-ui-segment/lib/segment/padded_segment.rb +1 -1
- data/components/elements/markdown-ui-segment/lib/segment/piled_segment.rb +1 -1
- data/components/elements/markdown-ui-segment/lib/segment/segment.rb +6 -6
- data/components/elements/markdown-ui-segment/lib/segment/stacked_segment.rb +1 -1
- data/components/elements/markdown-ui-segment/lib/segment/standard_segment.rb +1 -1
- data/components/elements/markdown-ui-segment/lib/segment/vertical_segment.rb +1 -1
- data/components/shared/markdown-ui-shared/Gemfile +2 -0
- data/components/shared/markdown-ui-shared/lib/markdown-ui-shared.rb +3 -0
- data/components/shared/markdown-ui-shared/lib/shared/tag_klass.rb +77 -0
- data/components/shared/markdown-ui-shared/lib/shared/version.rb +5 -0
- data/components/shared/markdown-ui-shared/markdown-ui-shared.gemspec +37 -0
- data/lib/markdown-ui.rb +10 -132
- data/lib/markdown-ui/renderers/block_quote.rb +47 -0
- data/lib/markdown-ui/renderers/double_emphasis.rb +97 -0
- data/lib/markdown-ui/renderers/emphasis.rb +23 -0
- data/lib/markdown-ui/renderers/header.rb +9 -0
- data/lib/markdown-ui/renderers/horizontal_rule.rb +19 -0
- data/lib/markdown-ui/renderers/link.rb +10 -0
- data/lib/markdown-ui/renderers/list.rb +10 -0
- data/lib/markdown-ui/renderers/paragraph.rb +9 -0
- data/lib/markdown-ui/renderers/quote.rb +9 -0
- data/lib/markdown-ui/shared.rb +7 -0
- data/lib/markdown-ui/tag/article_tag.rb +14 -0
- data/lib/markdown-ui/tag/button_tag.rb +6 -19
- data/lib/markdown-ui/tag/custom_tag.rb +11 -10
- data/lib/markdown-ui/tag/focusable_button_tag.rb +6 -19
- data/lib/markdown-ui/tag/footer_tag.rb +14 -0
- data/lib/markdown-ui/tag/header_tag.rb +14 -0
- data/lib/markdown-ui/tag/input_tag.rb +7 -27
- data/lib/markdown-ui/tag/item_tag.rb +6 -14
- data/lib/markdown-ui/tag/label_tag.rb +6 -19
- data/lib/markdown-ui/tag/list_tag.rb +18 -21
- data/lib/markdown-ui/tag/section_tag.rb +14 -0
- data/lib/markdown-ui/tag/span_tag.rb +7 -7
- data/lib/markdown-ui/tag/standard_tag.rb +6 -19
- data/lib/markdown-ui/tag/tag.rb +18 -20
- data/lib/markdown-ui/tools/html_formatter.rb +11 -0
- data/lib/markdown-ui/utils/klass_util.rb +13 -3
- data/lib/markdown-ui/version.rb +1 -1
- data/website/docs/flag.html +1 -1
- data/website/docs/icon.html +609 -0
- data/website/docs/icon.md +691 -0
- data/website/docs/toc.html +4 -0
- data/website/docs/toc.md +5 -2
- data/website/index.html +2 -2
- metadata +25 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b53533dfc4d6ed629c6debc10ade3fabb9b7f0a
|
4
|
+
data.tar.gz: 9f8a4853a8f5293434303862696c8bc7069c0ecc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d81b2e0feb995a768f1e394a8ca3f2b1051a82e36f9698026e87f8fa500a17253d04fba2bdced7171656f1fac1ebb773cdfe2186f4e2365c4149d217fbab413e
|
7
|
+
data.tar.gz: 23188f91ec79060bcad34508d8766e9761a277cf136b66653d4a4846fd27f107c521ee36bdd73e94fcf6e593fbe1c89d9d7cccb8a53d9f6e55a2db310459838b
|
data/.gitignore
CHANGED
data/Changelog
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
0.1.17 - 11-25-15
|
2
|
+
|
3
|
+
* 5658cf7 Added Article, Footer, Header and Section Tag; Refactor Tag
|
4
|
+
* e9506ca [Refactor] Use a base class with common methods for components and tags
|
5
|
+
* 72e6ae0 Create a shared component that will be used throughout tags
|
6
|
+
* cf09120 added entries to .gitignore
|
7
|
+
* 805bd27 Added Icon Documentation
|
8
|
+
* bd7f841 [Refactor] Extract HTML helper class to it's own file
|
9
|
+
* 5e011d1 Added basic block
|
10
|
+
* b2b6353 Make renderer flags for tests the same as runtime
|
11
|
+
* 66029b2 [Refactor] Refactor tags by subclassing common methods
|
12
|
+
* db90da9 [Refactor] Move common/shared methods to a superclass
|
13
|
+
* 3a05be4 [Refactor] Extract renderers to their own modules/classes
|
14
|
+
|
1
15
|
0.1.16 - 11-16-15
|
2
16
|
* abbfe2f Added span and content block; added header examples
|
3
17
|
* 459aa65 Removed unneeded JS code
|
data/Gemfile
CHANGED
@@ -4,6 +4,9 @@ gemspec
|
|
4
4
|
Encoding.default_external = Encoding::UTF_8
|
5
5
|
Encoding.default_internal = Encoding::UTF_8
|
6
6
|
|
7
|
+
gem 'markdown-ui-shared', \
|
8
|
+
path: 'components/shared/markdown-ui-shared'
|
9
|
+
|
7
10
|
group :elements do
|
8
11
|
gem 'markdown-ui-button', \
|
9
12
|
path: 'components/elements/markdown-ui-button/'
|
@@ -1,18 +1,15 @@
|
|
1
1
|
# coding: UTF-8
|
2
|
-
|
3
2
|
module MarkdownUI
|
4
|
-
class Column
|
5
|
-
def initialize(
|
6
|
-
@element =
|
7
|
-
@content =
|
3
|
+
class Column < MarkdownUI::Shared::TagKlass
|
4
|
+
def initialize(_element, _content)
|
5
|
+
@element = _element
|
6
|
+
@content = _content
|
8
7
|
end
|
9
8
|
|
10
9
|
def render
|
11
|
-
|
12
|
-
content = @content.strip
|
13
|
-
klass = "ui #{element} column"
|
10
|
+
@klass = "ui #{element} column"
|
14
11
|
|
15
|
-
MarkdownUI::StandardTag.new(content,
|
12
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
16
13
|
end
|
17
14
|
end
|
18
15
|
end
|
@@ -1,18 +1,15 @@
|
|
1
1
|
# coding: UTF-8
|
2
|
-
|
3
2
|
module MarkdownUI
|
4
|
-
class Grid
|
5
|
-
def initialize(
|
6
|
-
@element =
|
7
|
-
@content =
|
3
|
+
class Grid < MarkdownUI::Shared::TagKlass
|
4
|
+
def initialize(_element, _content)
|
5
|
+
@element = _element
|
6
|
+
@content = _content
|
8
7
|
end
|
9
8
|
|
10
9
|
def render
|
11
|
-
|
12
|
-
content = @content.strip
|
13
|
-
klass = "ui #{element} grid"
|
10
|
+
@klass = "ui #{element} grid"
|
14
11
|
|
15
|
-
MarkdownUI::StandardTag.new(content,
|
12
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
16
13
|
end
|
17
14
|
end
|
18
15
|
end
|
@@ -1,18 +1,15 @@
|
|
1
1
|
# coding: UTF-8
|
2
|
-
|
3
2
|
module MarkdownUI
|
4
|
-
class Row
|
5
|
-
def initialize(
|
6
|
-
@element =
|
7
|
-
@content =
|
3
|
+
class Row < MarkdownUI::Shared::TagKlass
|
4
|
+
def initialize(_element, _content)
|
5
|
+
@element = _element
|
6
|
+
@content = _content
|
8
7
|
end
|
9
8
|
|
10
9
|
def render
|
11
|
-
|
12
|
-
content = @content.strip
|
13
|
-
klass = "ui #{element} row"
|
10
|
+
@klass = "ui #{element} row"
|
14
11
|
|
15
|
-
MarkdownUI::StandardTag.new(content,
|
12
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
16
13
|
end
|
17
14
|
end
|
18
15
|
end
|
@@ -1,19 +1,19 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
-
module MarkdownUI
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
module MarkdownUI
|
4
|
+
module Menu
|
5
|
+
class Custom < MarkdownUI::Shared::TagKlass
|
6
|
+
def initialize(_element, _content, _klass = nil)
|
7
|
+
@element = _element
|
8
|
+
@_klass = _klass
|
9
|
+
@content = _content
|
10
|
+
end
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
content = MarkdownUI::Content::Parser.new(@content).parse
|
14
|
-
klass = "ui #{element} #{@klass} menu"
|
12
|
+
def render
|
13
|
+
@klass = "ui #{element} #{@_klass} menu"
|
15
14
|
|
16
|
-
|
15
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
16
|
+
end
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
@@ -1,62 +1,64 @@
|
|
1
|
-
module MarkdownUI
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
def render
|
10
|
-
element = if @element.is_a? Array
|
11
|
-
@element
|
12
|
-
else
|
13
|
-
@element.split(' ')
|
1
|
+
module MarkdownUI
|
2
|
+
module Menu
|
3
|
+
class Element
|
4
|
+
def initialize(element, content, klass = nil)
|
5
|
+
@element = element
|
6
|
+
@content = content
|
7
|
+
@klass = klass
|
14
8
|
end
|
15
9
|
|
16
|
-
|
10
|
+
def render
|
11
|
+
element = if @element.is_a? Array
|
12
|
+
@element
|
13
|
+
else
|
14
|
+
@element.split(' ')
|
15
|
+
end
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
content = @content
|
18
|
+
|
19
|
+
klass = if @klass.nil?
|
20
|
+
element.join(' ').strip
|
21
|
+
else
|
22
|
+
@klass
|
23
|
+
end
|
24
|
+
|
25
|
+
mode = OpenStruct.new(
|
26
|
+
:item? => element.grep(/item/i).any?,
|
27
|
+
:secondary? => element.grep(/secondary/i).any?,
|
28
|
+
:pagination? => element.grep(/pagination/i).any?,
|
29
|
+
:pointing? => element.grep(/pointing/i).any?,
|
30
|
+
:tabular? => element.grep(/tabular/i).any?,
|
31
|
+
:text? => element.grep(/text/i).any?,
|
32
|
+
:vertical? => element.grep(/vertical/i).any?
|
33
|
+
)
|
23
34
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
MarkdownUI::Menu::Pointing.new(content, klass).render
|
44
|
-
elsif mode.tabular?
|
45
|
-
MarkdownUI::Menu::Tabular.new(content, klass).render
|
46
|
-
elsif mode.text?
|
47
|
-
MarkdownUI::Menu::Text.new(content, klass).render
|
48
|
-
elsif mode.vertical?
|
49
|
-
MarkdownUI::Menu::Vertical.new(content, klass).render
|
50
|
-
elsif standard_menu?(mode)
|
51
|
-
MarkdownUI::Menu::Standard.new(content, klass).render
|
35
|
+
if standard_menu?(mode) && element.size > 1
|
36
|
+
MarkdownUI::Menu::Custom.new(element, content, klass).render
|
37
|
+
elsif mode.item?
|
38
|
+
MarkdownUI::Menu::Custom.new(element, content, klass).render
|
39
|
+
elsif mode.secondary?
|
40
|
+
MarkdownUI::Menu::Secondary.new(content, klass).render
|
41
|
+
elsif mode.pagination?
|
42
|
+
MarkdownUI::Menu::Pagination.new(content, klass).render
|
43
|
+
elsif mode.pointing?
|
44
|
+
MarkdownUI::Menu::Pointing.new(content, klass).render
|
45
|
+
elsif mode.tabular?
|
46
|
+
MarkdownUI::Menu::Tabular.new(content, klass).render
|
47
|
+
elsif mode.text?
|
48
|
+
MarkdownUI::Menu::Text.new(content, klass).render
|
49
|
+
elsif mode.vertical?
|
50
|
+
MarkdownUI::Menu::Vertical.new(content, klass).render
|
51
|
+
elsif standard_menu?(mode)
|
52
|
+
MarkdownUI::Menu::Standard.new(content, klass).render
|
53
|
+
end
|
52
54
|
end
|
53
|
-
end
|
54
55
|
|
55
|
-
|
56
|
+
protected
|
56
57
|
|
57
|
-
|
58
|
-
|
59
|
-
|
58
|
+
def standard_menu?(mode)
|
59
|
+
!mode.item? && !mode.secondary? && !mode.pagination? && !mode.pointing? && !mode.tabular? && !mode.text? && !mode.vertical?
|
60
|
+
end
|
60
61
|
|
62
|
+
end
|
61
63
|
end
|
62
64
|
end
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
-
module MarkdownUI
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
module MarkdownUI
|
4
|
+
module Menu
|
5
|
+
class Pagination < MarkdownUI::Shared::TagKlass
|
6
|
+
def initialize(_content, _klass = nil)
|
7
|
+
@_klass = _klass
|
8
|
+
@content = _content
|
9
|
+
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
content = MarkdownUI::Content::Parser.new(@content).parse
|
11
|
+
def render
|
12
|
+
@klass = "ui #{@_klass} pagination menu"
|
13
13
|
|
14
|
-
|
14
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
15
|
+
end
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
-
module MarkdownUI
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
module MarkdownUI
|
4
|
+
module Menu
|
5
|
+
class Pointing < MarkdownUI::Shared::TagKlass
|
6
|
+
def initialize(_content, _klass = nil)
|
7
|
+
@_klass = _klass
|
8
|
+
@content = _content
|
9
|
+
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
content = MarkdownUI::Content::Parser.new(@content).parse
|
11
|
+
def render
|
12
|
+
@klass = "ui #{@_klass} pointing menu"
|
13
13
|
|
14
|
-
|
14
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
15
|
+
end
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
-
module MarkdownUI
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
module MarkdownUI
|
4
|
+
module Menu
|
5
|
+
class Secondary < MarkdownUI::Shared::TagKlass
|
6
|
+
def initialize(_content, _klass = nil)
|
7
|
+
@_klass = _klass
|
8
|
+
@content = _content
|
9
|
+
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
content = MarkdownUI::Content::Parser.new(@content).parse
|
11
|
+
def render
|
12
|
+
@klass = "ui #{@_klass} secondary menu"
|
13
13
|
|
14
|
-
|
14
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
15
|
+
end
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
-
module MarkdownUI
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
module MarkdownUI
|
4
|
+
module Menu
|
5
|
+
class Standard < MarkdownUI::Shared::TagKlass
|
6
|
+
def initialize(_content, _klass = nil)
|
7
|
+
@_klass = _klass
|
8
|
+
@content = _content
|
9
|
+
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
content = MarkdownUI::Content::Parser.new(@content).parse
|
11
|
+
def render
|
12
|
+
@klass = "ui #{@_klass} menu"
|
13
13
|
|
14
|
-
|
14
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
15
|
+
end
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
-
module MarkdownUI
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
module MarkdownUI
|
4
|
+
module Menu
|
5
|
+
class Tabular < MarkdownUI::Shared::TagKlass
|
6
|
+
def initialize(_content, _klass = nil)
|
7
|
+
@_klass = _klass
|
8
|
+
@content = _content
|
9
|
+
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
content = MarkdownUI::Content::Parser.new(@content).parse
|
11
|
+
def render
|
12
|
+
@klass = "ui #{@_klass} tabular menu"
|
13
13
|
|
14
|
-
|
14
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
15
|
+
end
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
@@ -1,17 +1,18 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
-
module MarkdownUI
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
module MarkdownUI
|
4
|
+
module Menu
|
5
|
+
class Text < MarkdownUI::Shared::TagKlass
|
6
|
+
def initialize(_content, _klass = nil)
|
7
|
+
@_klass = _klass
|
8
|
+
@content = _content
|
9
|
+
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
content = MarkdownUI::Content::Parser.new(@content).parse
|
11
|
+
def render
|
12
|
+
@klass = "ui #{@_klass} text menu"
|
13
13
|
|
14
|
-
|
14
|
+
MarkdownUI::StandardTag.new(content, klass_text).render
|
15
|
+
end
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|