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.
- checksums.yaml +4 -4
- data/Changelog +15 -0
- data/components/collections/markdown-ui-grid/lib/grid/column/column.rb +1 -1
- data/components/collections/markdown-ui-grid/lib/grid/grid.rb +1 -1
- data/components/collections/markdown-ui-grid/lib/grid/row/row.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/custom.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/item.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/pagination.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/pointing.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/secondary.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/standard.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/tabular.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/text.rb +1 -1
- data/components/collections/markdown-ui-menu/lib/menu/vertical.rb +1 -1
- data/components/collections/markdown-ui-message/lib/message/standard_message.rb +1 -1
- 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/standard.rb +1 -1
- data/components/elements/markdown-ui-container/lib/container/text.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/field_block.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/fields_block.rb +19 -0
- data/components/elements/markdown-ui-content/lib/content/flag.rb +1 -1
- data/components/elements/markdown-ui-content/lib/content/item_block.rb +1 -1
- data/components/elements/markdown-ui-header/lib/header/header.rb +2 -2
- 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/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/lib/shared/tag_klass.rb +7 -7
- data/exe/markdown-ui +99 -19
- data/lib/markdown-ui/renderers/block_quote.rb +1 -0
- data/lib/markdown-ui/tag/item_tag.rb +1 -1
- data/lib/markdown-ui/tag/menu_tag.rb +11 -0
- data/lib/markdown-ui/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 913838f0f825a5bb39e37d0aa8bf1ac60a9c0f02
|
4
|
+
data.tar.gz: f10a7d69d6b44c2f77e8f1aac018a793b079794e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
@@ -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
|
data/exe/markdown-ui
CHANGED
@@ -5,29 +5,109 @@ require 'markdown-ui'
|
|
5
5
|
|
6
6
|
parser = MarkdownUI::Parser.new
|
7
7
|
f = File.open(ARGV.first, 'r')
|
8
|
-
|
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
|
-
|
20
|
+
output = <<-EOS
|
12
21
|
<!doctype html>
|
13
22
|
|
14
|
-
<html
|
15
|
-
<head>
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
21
|
-
<
|
22
|
-
|
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,
|
data/lib/markdown-ui/version.rb
CHANGED
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.
|
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-
|
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.
|
350
|
+
rubygems_version: 2.5.1
|
349
351
|
signing_key:
|
350
352
|
specification_version: 4
|
351
353
|
summary: Responsive User Interfaces in Markdown
|