markdown-ui 0.1.18 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog +15 -0
  3. data/components/collections/markdown-ui-grid/lib/grid/column/column.rb +1 -1
  4. data/components/collections/markdown-ui-grid/lib/grid/grid.rb +1 -1
  5. data/components/collections/markdown-ui-grid/lib/grid/row/row.rb +1 -1
  6. data/components/collections/markdown-ui-menu/lib/menu/custom.rb +1 -1
  7. data/components/collections/markdown-ui-menu/lib/menu/item.rb +1 -1
  8. data/components/collections/markdown-ui-menu/lib/menu/pagination.rb +1 -1
  9. data/components/collections/markdown-ui-menu/lib/menu/pointing.rb +1 -1
  10. data/components/collections/markdown-ui-menu/lib/menu/secondary.rb +1 -1
  11. data/components/collections/markdown-ui-menu/lib/menu/standard.rb +1 -1
  12. data/components/collections/markdown-ui-menu/lib/menu/tabular.rb +1 -1
  13. data/components/collections/markdown-ui-menu/lib/menu/text.rb +1 -1
  14. data/components/collections/markdown-ui-menu/lib/menu/vertical.rb +1 -1
  15. data/components/collections/markdown-ui-message/lib/message/standard_message.rb +1 -1
  16. data/components/elements/markdown-ui-container/lib/container/alignment/center.rb +1 -1
  17. data/components/elements/markdown-ui-container/lib/container/alignment/left.rb +1 -1
  18. data/components/elements/markdown-ui-container/lib/container/alignment/right.rb +1 -1
  19. data/components/elements/markdown-ui-container/lib/container/custom.rb +1 -1
  20. data/components/elements/markdown-ui-container/lib/container/standard.rb +1 -1
  21. data/components/elements/markdown-ui-container/lib/container/text.rb +1 -1
  22. data/components/elements/markdown-ui-content/lib/content/field_block.rb +1 -1
  23. data/components/elements/markdown-ui-content/lib/content/fields_block.rb +19 -0
  24. data/components/elements/markdown-ui-content/lib/content/flag.rb +1 -1
  25. data/components/elements/markdown-ui-content/lib/content/item_block.rb +1 -1
  26. data/components/elements/markdown-ui-header/lib/header/header.rb +2 -2
  27. data/components/elements/markdown-ui-segment/lib/segment/custom_segment.rb +1 -1
  28. data/components/elements/markdown-ui-segment/lib/segment/horizontal_segment.rb +1 -1
  29. data/components/elements/markdown-ui-segment/lib/segment/padded_segment.rb +1 -1
  30. data/components/elements/markdown-ui-segment/lib/segment/piled_segment.rb +1 -1
  31. data/components/elements/markdown-ui-segment/lib/segment/stacked_segment.rb +1 -1
  32. data/components/elements/markdown-ui-segment/lib/segment/standard_segment.rb +1 -1
  33. data/components/elements/markdown-ui-segment/lib/segment/vertical_segment.rb +1 -1
  34. data/components/shared/markdown-ui-shared/lib/shared/tag_klass.rb +7 -7
  35. data/exe/markdown-ui +99 -19
  36. data/lib/markdown-ui/renderers/block_quote.rb +1 -0
  37. data/lib/markdown-ui/tag/item_tag.rb +1 -1
  38. data/lib/markdown-ui/tag/menu_tag.rb +11 -0
  39. data/lib/markdown-ui/version.rb +1 -1
  40. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 939752583db6ecdf875d6692253da09075b906d4
4
- data.tar.gz: 5b43d42b72f656c55e3ff08e847f470fddfc6586
3
+ metadata.gz: 913838f0f825a5bb39e37d0aa8bf1ac60a9c0f02
4
+ data.tar.gz: f10a7d69d6b44c2f77e8f1aac018a793b079794e
5
5
  SHA512:
6
- metadata.gz: 272aeadf67df01886f349297b48c5370d9f9c71b48da01ca6c05dbe2e6abdb9eede030c5423874d2695d9002e061307fca199c0833514edfd206c3178e711dd9
7
- data.tar.gz: 74058ac51b735aebfdc4b794150312139084d631cbeffb1e0ffe6067d3cdcb68cca06a40806ee43f591196cbc138a4557581cbf8b994f62029c5a2ed97737ac0
6
+ metadata.gz: 615fed4888ccafca2fad2300a488fcd21468725daecd2402a32769254045763a69891a7f65d5bc8702168773bfb9495ba7e7f585f94b0c547d2339e91d3cde98
7
+ data.tar.gz: 08955a07fbf77add42dc4ab7f338a3786c5874d0a10151fa0010b1dafac3000b42f4b3967b80aa7ec1955e3184d4fecb3f89adb849051edb232c2f969e0c80ef
data/Changelog CHANGED
@@ -1,3 +1,18 @@
1
+ 0.2.0 - 08-26-16
2
+ This release is full of bug fixes and new opinionated features particularly,
3
+
4
+ a.) We can now use full URL on links
5
+ b.) Menu are now using 'nav' tag
6
+ c.) Containers and Grids are using 'article' tag
7
+ d.) Fields are using 'menu' tag, e.) and field is using 'field' tag
8
+ f.) Row, Columns and Segment is using 'section' tag
9
+ g.) Headers now have 'headers' tag wrap around them.
10
+ h.) Semantic-UI now points to /bower_components/semantic/, use 'python -m SimpleHTTPServer' to debug.
11
+ i.) we are now utilizing individual components, you would have to include the css and js in the in your projects to require individual components.
12
+
13
+ I use this personally, I hope if you're using it, you'll like it too like I do.
14
+
15
+
1
16
  0.1.18 - 01-04-16
2
17
 
3
18
  * fc6277a Parser is now initialized via MarkdownUI::Parser
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  def render
11
11
  @klass = "ui #{element} column"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass_text).render
13
+ MarkdownUI::SectionTag.new(content, klass_text).render
14
14
  end
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  def render
11
11
  @klass = "ui #{element} grid"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass_text).render
13
+ MarkdownUI::ArticleTag.new(content, klass_text).render
14
14
  end
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  def render
11
11
  @klass = "ui #{element} row"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass_text).render
13
+ MarkdownUI::SectionTag.new(content, klass_text).render
14
14
  end
15
15
  end
16
16
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} item menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} pagination menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} pointing menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} secondary menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} tabular menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} text menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI
11
11
  def render
12
12
  @klass = "ui #{@_klass} vertical menu"
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass_text).render
14
+ MarkdownUI::NavTag.new(content, klass_text).render
15
15
  end
16
16
  end
17
17
  end
@@ -4,7 +4,7 @@ module MarkdownUI
4
4
  module Message
5
5
  class StandardMessage < MarkdownUI::Shared::TagKlass
6
6
  def initialize(_content, _klass = nil)
7
- @klass = _klass
7
+ @_klass = _klass
8
8
  @content = _content
9
9
  end
10
10
 
@@ -12,7 +12,7 @@ module MarkdownUI::Container
12
12
  klass = "ui #{@element} center aligned container"
13
13
  content = @content.strip
14
14
 
15
- MarkdownUI::StandardTag.new(content, klass).render
15
+ MarkdownUI::ArticleTag.new(content, klass).render
16
16
  end
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ module MarkdownUI::Container
12
12
  klass = "ui #{@element} left aligned container"
13
13
  content = @content.strip
14
14
 
15
- MarkdownUI::StandardTag.new(content, klass).render
15
+ MarkdownUI::ArticleTag.new(content, klass).render
16
16
  end
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ module MarkdownUI::Container
12
12
  klass = "ui #{@element} right aligned container"
13
13
  content = @content.strip
14
14
 
15
- MarkdownUI::StandardTag.new(content, klass).render
15
+ MarkdownUI::ArticleTag.new(content, klass).render
16
16
  end
17
17
  end
18
18
  end
@@ -11,7 +11,7 @@ module MarkdownUI::Container
11
11
  klass = "ui #{@element} container"
12
12
  content = @content.strip
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass).render
14
+ MarkdownUI::ArticleTag.new(content, klass).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI::Container
11
11
  klass = "ui #{@element} container"
12
12
  content = @content.strip
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass).render
14
+ MarkdownUI::ArticleTag.new(content, klass).render
15
15
  end
16
16
  end
17
17
  end
@@ -11,7 +11,7 @@ module MarkdownUI::Container
11
11
  klass = "ui #{@element} text container"
12
12
  content = @content.strip
13
13
 
14
- MarkdownUI::StandardTag.new(content, klass).render
14
+ MarkdownUI::ArticleTag.new(content, klass).render
15
15
  end
16
16
  end
17
17
  end
@@ -12,7 +12,7 @@ module MarkdownUI
12
12
  klass = "ui #{@element} field"
13
13
  content = @content.strip
14
14
 
15
- MarkdownUI::StandardTag.new(content, klass).render
15
+ MarkdownUI::FieldTag.new(content, klass).render
16
16
  end
17
17
  end
18
18
  end
@@ -0,0 +1,19 @@
1
+ # coding: UTF-8
2
+
3
+ module MarkdownUI
4
+ module Content
5
+ class FieldsBlock
6
+ def initialize(element, content)
7
+ @element = element
8
+ @content = content
9
+ end
10
+
11
+ def render
12
+ klass = "ui #{@element} fields"
13
+ content = @content.strip
14
+
15
+ MarkdownUI::MenuTag.new(content, klass).render
16
+ end
17
+ end
18
+ end
19
+ end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
 
11
11
  def render
12
12
  content = @content.downcase
13
- klass = MarkdownUI::KlassUtil.new("#{@content} #{@klass} flag").klass
13
+ klass = MarkdownUI::KlassUtil.new("#{content} #{@klass} flag").klass
14
14
 
15
15
  output = []
16
16
  output << '<i'
@@ -12,7 +12,7 @@ module MarkdownUI
12
12
  klass = "ui #{@element} item"
13
13
  content = @content.strip
14
14
 
15
- MarkdownUI::StandardTag.new(content, klass).render
15
+ MarkdownUI::NavTag.new(content, klass).render
16
16
  end
17
17
  end
18
18
  end
@@ -26,8 +26,8 @@ module MarkdownUI
26
26
  output << "#{text}"
27
27
  output << '</div>'
28
28
  end
29
-
30
- output.join
29
+
30
+ MarkdownUI::HeaderTag.new(output.join).render
31
31
  end
32
32
  end
33
33
  end
@@ -12,7 +12,7 @@ module MarkdownUI
12
12
  content = @content.strip
13
13
  klass = "ui #{element} segment"
14
14
 
15
- MarkdownUI::StandardTag.new(content, klass).render
15
+ MarkdownUI::SectionTag.new(content, klass).render
16
16
  end
17
17
  end
18
18
  end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  content = @content.strip
11
11
  klass = "ui #{element} horizontal segment"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass).render
13
+ MarkdownUI::SectionTag.new(content, klass).render
14
14
  end
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  content = @content.strip
11
11
  klass = "ui #{element} padded segment"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass).render
13
+ MarkdownUI::SectionTag.new(content, klass).render
14
14
  end
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  content = @content.strip
11
11
  klass = "ui #{element} piled segment"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass).render
13
+ MarkdownUI::SectionTag.new(content, klass).render
14
14
  end
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  content = @content.strip
11
11
  klass = "ui #{element} stacked segment"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass).render
13
+ MarkdownUI::SectionTag.new(content, klass).render
14
14
  end
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  content = @content.strip
11
11
  klass = "ui #{element} segment"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass).render
13
+ MarkdownUI::SectionTag.new(content, klass).render
14
14
  end
15
15
  end
16
16
  end
@@ -10,7 +10,7 @@ module MarkdownUI
10
10
  content = @content.strip
11
11
  klass = "ui #{element} vertical segment"
12
12
 
13
- MarkdownUI::StandardTag.new(content, klass).render
13
+ MarkdownUI::SectionTag.new(content, klass).render
14
14
  end
15
15
  end
16
16
  end
@@ -28,12 +28,6 @@ module MarkdownUI
28
28
  MarkdownUI::KlassUtil.new(@klass).text unless @klass.nil?
29
29
  end
30
30
 
31
- def _id
32
- if @id
33
- " id=\'#{@id.split.join('-')}\'"
34
- end
35
- end
36
-
37
31
  def data
38
32
  if @data
39
33
  if @data =~ /\:/
@@ -47,8 +41,14 @@ module MarkdownUI
47
41
  end
48
42
  end
49
43
 
44
+ def _id
45
+ if defined?(@id) && @id
46
+ " id=\'#{@id.split.join('-')}\'"
47
+ end
48
+ end
49
+
50
50
  def _input_id
51
- if @id
51
+ if defined?(@id) && @id
52
52
  " placeholder=\'#{@id.capitalize}\'"
53
53
  end
54
54
  end
@@ -5,29 +5,109 @@ require 'markdown-ui'
5
5
 
6
6
  parser = MarkdownUI::Parser.new
7
7
  f = File.open(ARGV.first, 'r')
8
- @content = parser.render f.read
8
+ basename = File.basename(ARGV.first, ".md")
9
+ content = f.read
10
+ content.gsub!(/http\:\/\//, "MARKDOWN-UI-PREFILTER-http//")
11
+ content.gsub!(/https\:\/\//, "MARKDOWN-UI-PREFILTER-https//")
12
+ content.gsub!(/file\:\/\//, "MARKDOWN-UI-PREFILTER-file//")
13
+ content.gsub!(/ftp\:\/\//, "MARKDOWN-UI-PREFILTER-ftp//")
14
+ content.gsub!(/mailto\:/, "MARKDOWN-UI-PREFILTER-mailto//")
15
+ content.gsub!(/tel\:/, "MARKDOWN-UI-PREFILTER-tel//")
16
+ content.gsub!(/javascript\:/, "MARKDOWN-UI-PREFILTER-javascript//")
17
+ @content = parser.render content
9
18
  f.close
10
19
 
11
- puts <<-EOS
20
+ output = <<-EOS
12
21
  <!doctype html>
13
22
 
14
- <html lang='en'>
15
- <head>
16
- <meta charset='utf-8'>
17
- <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
18
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
23
+ <html>
24
+ <head>
25
+ <meta charset="utf-8">
26
+ <title>#{basename.capitalize}</title>
27
+ <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
28
+ <script src='/bower_components/jquery/dist/jquery.min.js'></script>
29
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/reset.min.css" />
30
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/site.min.css" />
31
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/container.min.css" />
32
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/button.min.css" />
33
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/checkbox.min.css" />
34
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/divider.min.css" />
35
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/dropdown.min.css" />
36
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/form.min.css" />
37
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/grid.min.css" />
38
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/header.min.css" />
39
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/icon.min.css" />
40
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/image.min.css" />
41
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/input.min.css" />
42
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/item.min.css" />
43
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/label.min.css" />
44
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/menu.min.css" />
45
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/list.min.css" />
46
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/segment.min.css" />
47
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/transition.min.css" />
48
+ <script src='/bower_components/semantic/dist/components/checkbox.min.js'></script>
49
+ <script src='/bower_components/semantic/dist/components/dropdown.min.js'></script>
50
+ <script src='/bower_components/semantic/dist/components/form.min.js'></script>
51
+ <script src='/bower_components/semantic/dist/components/site.min.js'></script>
52
+ <script src='/bower_components/semantic/dist/components/transition.min.js'></script>
53
+ <!--
54
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/accordion.min.css" />
55
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/ad.min.css" />
56
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/breadcrumb.min.css" />
57
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/card.min.css" />
58
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/comment.min.css" />
59
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/dimmer.min.css" />
60
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/embed.min.css" />
61
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/feed.min.css" />
62
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/flag.min.css" />
63
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/loader.min.css" />
64
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/message.min.css" />
65
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/modal.min.css" />
66
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/nag.min.css" />
67
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/popup.min.css" />
68
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/progress.min.css" />
69
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/rail.min.css" />
70
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/rating.min.css" />
71
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/reveal.min.css" />
72
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/search.min.css" />
73
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/shape.min.css" />
74
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/sidebar.min.css" />
75
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/statistic.min.css" />
76
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/step.min.css" />
77
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/sticky.min.css" />
78
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/tab.min.css" />
79
+ <link rel="stylesheet" type="text/css" href="/bower_components/semantic/dist/components/table.min.css" />
80
+ <script src='/bower_components/semantic/dist/components/accordion.min.js'></script>
81
+ <script src='/bower_components/semantic/dist/components/api.min.js'></script>
82
+ <script src='/bower_components/semantic/dist/components/dimmer.min.js'></script>
83
+ <script src='/bower_components/semantic/dist/components/embed.min.js'></script>
84
+ <script src='/bower_components/semantic/dist/components/modal.min.js'></script>
85
+ <script src='/bower_components/semantic/dist/components/nag.min.js'></script>
86
+ <script src='/bower_components/semantic/dist/components/popup.min.js'></script>
87
+ <script src='/bower_components/semantic/dist/components/progress.min.js'></script>
88
+ <script src='/bower_components/semantic/dist/components/rating.min.js'></script>
89
+ <script src='/bower_components/semantic/dist/components/search.min.js'></script>
90
+ <script src='/bower_components/semantic/dist/components/shape.min.js'></script>
91
+ <script src='/bower_components/semantic/dist/components/sidebar.min.js'></script>
92
+ <script src='/bower_components/semantic/dist/components/state.min.js'></script>
93
+ <script src='/bower_components/semantic/dist/components/sticky.min.js'></script>
94
+ <script src='/bower_components/semantic/dist/components/tab.min.js'></script>
95
+ <script src='/bower_components/semantic/dist/components/visibility.min.js'></script>
96
+ -->
19
97
 
20
- <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.6/semantic.min.css'>
21
- <script src='https://code.jquery.com/jquery-2.1.4.min.js'></script>
22
- <script src='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.6/semantic.min.js'></script>
23
-
24
- <!--[if lt IE 9]>
25
- <script src='http://html5shiv.googlecode.com/svn/trunk/html5.js'></script>
26
- <![endif]-->
27
- </head>
28
- <body>
29
- <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.1.6/components/reset.min.css'>
30
- #{@content}
31
- </body>
98
+ </head>
99
+ <body>
100
+ #{@content}
101
+ </body>
32
102
  </html>
33
103
  EOS
104
+
105
+ output.gsub!(/MARKDOWN-UI-PREFILTER-http\/\//, "http://")
106
+ output.gsub!(/MARKDOWN-UI-PREFILTER-https\/\//, "https://")
107
+ output.gsub!(/MARKDOWN-UI-PREFILTER-file\/\//, "file://")
108
+ output.gsub!(/MARKDOWN-UI-PREFILTER-ftp\/\//, "ftp://")
109
+ output.gsub!(/MARKDOWN-UI-PREFILTER-mailto\/\//, "mailto:")
110
+ output.gsub!(/MARKDOWN-UI-PREFILTER-tel\/\//, "tel:")
111
+ output.gsub!(/MARKDOWN-UI-PREFILTER-javascript\/\//, "javascript:")
112
+
113
+ puts output
@@ -18,6 +18,7 @@ module MarkdownUI
18
18
  content: MarkdownUI::Content::ContentBlock,
19
19
  divider: MarkdownUI::Content::DividerBlock,
20
20
  field: MarkdownUI::Content::FieldBlock,
21
+ fields: MarkdownUI::Content::FieldsBlock,
21
22
  form: MarkdownUI::Content::FormBlock,
22
23
  item: MarkdownUI::Content::ItemBlock,
23
24
  tag: MarkdownUI::Tag,
@@ -9,7 +9,7 @@ module MarkdownUI
9
9
  def render
10
10
  content, @data = @content.split(';')
11
11
  link = " href=\'#{@link.strip}\'" if @link
12
-
12
+
13
13
  "<a#{klass}#{data}#{link}>#{content}</a>"
14
14
  end
15
15
  end
@@ -0,0 +1,11 @@
1
+ module MarkdownUI
2
+ class MenuTag < MarkdownUI::Shared::TagKlass
3
+ def initialize(_content, _klass = nil, __id = nil, _data = nil)
4
+ @content = _content
5
+ end
6
+
7
+ def render
8
+ "<menu#{_id}#{klass}#{data}>#{@content}</menu>"
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module MarkdownUI
2
- VERSION = '0.1.18'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markdown-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Bryan Juliano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-04 00:00:00.000000000 Z
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -219,6 +219,7 @@ files:
219
219
  - components/elements/markdown-ui-content/lib/content/custom.rb
220
220
  - components/elements/markdown-ui-content/lib/content/divider_block.rb
221
221
  - components/elements/markdown-ui-content/lib/content/field_block.rb
222
+ - components/elements/markdown-ui-content/lib/content/fields_block.rb
222
223
  - components/elements/markdown-ui-content/lib/content/flag.rb
223
224
  - components/elements/markdown-ui-content/lib/content/form_block.rb
224
225
  - components/elements/markdown-ui-content/lib/content/header.rb
@@ -295,6 +296,7 @@ files:
295
296
  - lib/markdown-ui/tag/item_tag.rb
296
297
  - lib/markdown-ui/tag/label_tag.rb
297
298
  - lib/markdown-ui/tag/list_tag.rb
299
+ - lib/markdown-ui/tag/menu_tag.rb
298
300
  - lib/markdown-ui/tag/nav_tag.rb
299
301
  - lib/markdown-ui/tag/script_tag.rb
300
302
  - lib/markdown-ui/tag/section_tag.rb
@@ -345,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
345
347
  version: '0'
346
348
  requirements: []
347
349
  rubyforge_project:
348
- rubygems_version: 2.4.5.1
350
+ rubygems_version: 2.5.1
349
351
  signing_key:
350
352
  specification_version: 4
351
353
  summary: Responsive User Interfaces in Markdown