markdown-ui 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b70222e42eaa13906efa24482be04882ef04c393
4
- data.tar.gz: ba58a736a5c579f5115e30006a6af601b7683d8a
3
+ metadata.gz: fdbb36cc1a136c408fe4532c29b2b2114dd09cf2
4
+ data.tar.gz: f07fbbc736660d3707940512ce9ac024bd88fa78
5
5
  SHA512:
6
- metadata.gz: 75954e9e390ec81f40f57e64c8df4324a2c575fa6aff589e65d2f243bd53ca1a02c0bdc216731114c01acfaee00a081708c2ad940b1a0fa761d700e5a84acd4b
7
- data.tar.gz: 31c41e066e67ca95ceec9419a620afb500dfb4930aaa9903b238d23d0622149988cb94175209f0631e1a14bca3b9bb1b660dc34f35f555e8bc33af5da391284c
6
+ metadata.gz: dc7cfe0021c349844111ea231436bb7ec4228e1e5517a5e9f32e2fbbe572e26182a86cc2a4ce29fd3578c610fd3f9e57a41616e5c6bd35a364474073c710de03
7
+ data.tar.gz: 36e22c7fd049bbf474c65c52b9c21dd187fd4b7478ee61d467abfcb2163308bd7cf1bc5186cf376ed821a3f279f1627997666f3ae6e72471cd21de26c5e446b8
data/Changelog CHANGED
@@ -1,3 +1,9 @@
1
+ 0.1.7 - 08-07-15
2
+ * Parse generated HTML document using Nokogiri;
3
+ * Support Nokogiri 1.5 to 1.6
4
+ * Add Block-style syntax examples
5
+ * Fix documentation
6
+
1
7
  0.1.6 - 08-05-15
2
8
  * Fix component not resolving components in CLI tool
3
9
  * Componentize
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  [![Join the chat at https://gitter.im/jjuliano/markdown-ui](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jjuliano/markdown-ui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2
2
 
3
- [![Code Climate](https://codeclimate.com/repos/55af40bfe30ba04297004e5b/badges/9a3000a8f7f20e930c56/gpa.svg)](https://codeclimate.com/repos/55af40bfe30ba04297004e5b/feed) [![Build Status](https://travis-ci.org/jjuliano/markdown-ui.svg)](https://travis-ci.org/jjuliano/markdown-ui) [![Test Coverage](https://codeclimate.com/repos/55af40bfe30ba04297004e5b/badges/9a3000a8f7f20e930c56/coverage.svg)](https://codeclimate.com/repos/55af40bfe30ba04297004e5b/coverage) [![Gem Version](https://badge.fury.io/rb/markdown-ui.svg)](http://badge.fury.io/rb/markdown-ui)
3
+ [![Code Climate](https://codeclimate.com/github/jjuliano/markdown-ui/badges/gpa.svg)](https://codeclimate.com/github/jjuliano/markdown-ui) [![Build Status](https://travis-ci.org/jjuliano/markdown-ui.svg)](https://travis-ci.org/jjuliano/markdown-ui) [![Test Coverage](https://codeclimate.com/github/jjuliano/markdown-ui/badges/coverage.svg)](https://codeclimate.com/github/jjuliano/markdown-ui/coverage) [![Gem Version](https://badge.fury.io/rb/markdown-ui.svg)](http://badge.fury.io/rb/markdown-ui)
4
4
 
5
5
  # Markdown UI
6
6
 
@@ -2,24 +2,24 @@
2
2
 
3
3
  require "bundler/setup"
4
4
  require "markdown-ui"
5
+ require "nokogiri"
5
6
 
6
7
  parser = Redcarpet::Markdown.new(MarkdownUI::Renderer, quote: true, tables: true)
7
8
 
8
9
  f = File.open(ARGV.first, 'r')
9
- puts <<-EOS
10
- <!doctype html>
11
10
 
11
+ content = <<-EOS
12
12
  <!doctype html>
13
13
 
14
14
  <html lang="en">
15
15
  <head>
16
16
  <meta charset="utf-8">
17
- <meta http-equiv="x-ua-compatible" content="ie=edge">
18
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
17
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
18
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
19
19
 
20
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.1/semantic.min.css">
20
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.css">
21
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.0.1/semantic.min.js"></script>
22
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.js"></script>
23
23
 
24
24
  <!--[if lt IE 9]>
25
25
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -30,12 +30,10 @@ puts <<-EOS
30
30
  </head>
31
31
 
32
32
  <body>
33
- EOS
34
-
35
- puts parser.render f.read
36
-
37
- puts <<-EOS
33
+ #{parser.render f.read}
38
34
  </body>
39
35
  </html>
40
36
  EOS
41
- f.close
37
+ f.close
38
+
39
+ puts Nokogiri::HTML(content, &:noblanks).to_xhtml(indent: 2)
@@ -90,7 +90,7 @@ module MarkdownUI
90
90
  end
91
91
 
92
92
  def list(content, list_type)
93
- klass = 'ui'
93
+ klass = "ui #{list_type}"
94
94
  html { MarkdownUI::Content::List.new(content, klass, list_type).render }
95
95
  end
96
96
 
@@ -107,12 +107,6 @@ module MarkdownUI
107
107
  html { MarkdownUI::Header.new(text, level).render }
108
108
  end
109
109
 
110
- def table_cell(content, alignment)
111
- body, klass = content.split(':')
112
-
113
- "<div class=\"ui #{klass}column\">#{body}</div>"
114
- end
115
-
116
110
  protected
117
111
 
118
112
  def html
@@ -1,3 +1,3 @@
1
1
  module MarkdownUI
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'markdown-ui/version'
4
+ require "markdown-ui/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "markdown-ui"
@@ -14,10 +14,10 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/jjuliano/markdown-ui"
15
15
  spec.license = "MIT"
16
16
 
17
- # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
+ # Prevent pushing this gem to RubyGems.org by setting "allowed_push_host", or
18
18
  # delete this section to allow pushing this gem to any host.
19
19
  if spec.respond_to?(:metadata)
20
- spec.metadata['allowed_push_host'] = "https://rubygems.org"
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
21
  else
22
22
  raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
23
  end
@@ -27,9 +27,9 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
30
+ spec.add_dependency "bundler", "~> 1.10", "~> 1.9"
31
31
  spec.add_dependency "redcarpet", "~> 3.2"
32
- spec.add_dependency "nokogiri", "~> 1.6"
32
+ spec.add_dependency "nokogiri", "~> 1.5", "~> 1.6"
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
34
  spec.add_development_dependency "test-unit", "~> 3.0"
35
35
  spec.add_development_dependency "simplecov", "~> 0.10"
@@ -0,0 +1,524 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5
+ <meta charset="utf-8" />
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.css" />
9
+ <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
10
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.7/semantic.min.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <style>
15
+ <![CDATA[
16
+ code { white-space:pre }
17
+ ]]>
18
+ </style>
19
+ </head>
20
+ <body>
21
+ <div class="ui sticky inverted vertical menu">
22
+ <a class="ui active item" href="button.html">Button</a>
23
+ <a class="ui item" href="button.html">Button</a>
24
+ <a class="ui item" href="button.html">Button</a>
25
+ <a class="ui item" href="button.html">Button</a>
26
+ </div>
27
+
28
+ <!-- -->
29
+ <div class="ui inverted segment container">
30
+ <div class="ui inverted menu">
31
+ <a class="ui basic item" href="http://jjuliano.github.io/markdown-ui">Markdown UI</a>
32
+ <div class="ui inverted right menu">
33
+ <a class="ui disabled item" href="#docs">Docs</a>
34
+ <a class="ui disabled item" href="#about">About</a>
35
+ <a class="ui item" href="https://github.com/jjuliano/markdown-ui">Github</a>
36
+ <a class="ui disabled item" href="#install">Install</a>
37
+ </div>
38
+ </div>
39
+ </div>
40
+
41
+ <!-- -->
42
+ <div class="ui left aligned container">
43
+ <div class="ui segment">
44
+ <h1 class="ui center aligned header">Buttons</h1>
45
+ </div>
46
+ <!-- -->
47
+ <div class="ui segment">
48
+ <h3 class="ui header">Button</h3>
49
+ <p>Standard Button</p>
50
+ </div>
51
+ <!-- -->
52
+ <div class="ui divided segment grid">
53
+ <div class="ui html top attached segment">
54
+ <div class="ui top attached label">Standard Button</div>
55
+ </div>
56
+ <!-- -->
57
+ <div class="ui center aligned six wide column">
58
+ <h5 class="ui header">Preview</h5>
59
+ <div class="ui button">Follow</div>
60
+ </div>
61
+ <!-- -->
62
+ <div class="ui left aligned ten wide column">
63
+ <h5 class="ui header">Markdown Syntax</h5>
64
+ <div class="ui inverted very padded segment">
65
+ <code>
66
+ __Button|Follow__
67
+ </code>
68
+ </div>
69
+ </div>
70
+ <!-- -->
71
+ </div>
72
+ <!-- -->
73
+ <div class="ui divided segment grid">
74
+ <div class="ui html top attached segment">
75
+ <div class="ui top attached label">Standard Button with Custom Class And ID</div>
76
+ </div>
77
+ <!-- -->
78
+ <div class="ui center aligned six wide column">
79
+ <h5 class="ui header">Preview</h5>
80
+ <div id="optional-id" class="ui optional-class button">Follow</div>
81
+ </div>
82
+ <!-- -->
83
+ <div class="ui left aligned ten wide column">
84
+ <h5 class="ui header">Markdown Syntax</h5>
85
+ <div class="ui inverted very padded segment">
86
+ <code>__&lt;Optional-Class&gt; Button|Follow|&lt;Optional-ID&gt;__</code>
87
+ </div>
88
+ </div>
89
+ <!-- -->
90
+ </div>
91
+ <!-- -->
92
+ <div class="ui divided segment grid">
93
+ <div class="ui html top attached segment">
94
+ <div class="ui top attached label">Focusable Button</div>
95
+ </div>
96
+ <!-- -->
97
+ <div class="ui center aligned six wide column">
98
+ <h5 class="ui header">Preview</h5>
99
+ <button id="optional-id" class="ui focusable button">Follow</button>
100
+ </div>
101
+ <!-- -->
102
+ <div class="ui left aligned ten wide column">
103
+ <h5 class="ui header">Markdown Syntax</h5>
104
+ <div class="ui inverted very padded segment">
105
+ <code>
106
+ __Focusable Button|Follow|&lt;Optional-ID&gt;__
107
+ </code>
108
+ </div>
109
+ </div>
110
+ <!-- -->
111
+ </div>
112
+ <!-- -->
113
+ <div class="ui attached segment">
114
+ <h3 class="ui header">Emphasis</h3>
115
+ <p>A button can be formatted to show different levels of emphasis</p>
116
+ </div>
117
+ <!-- -->
118
+ <div class="ui divided segment grid">
119
+ <div class="ui html top attached segment">
120
+ <div class="ui top attached label">Emphasis</div>
121
+ </div>
122
+ <!-- -->
123
+ <div class="ui center aligned six wide column">
124
+ <h5 class="ui header">Preview</h5>
125
+ <div class="ui primary button">Save</div>
126
+ <div class="ui button">Discard</div>
127
+ <p></p>
128
+ <div class="ui secondary button">Save</div>
129
+ <div class="ui button">Discard</div>
130
+ </div>
131
+ <!-- -->
132
+ <div class="ui left aligned ten wide column">
133
+ <h5 class="ui header">Markdown Syntax</h5>
134
+ <div class="ui inverted very padded segment">
135
+ <code>__Primary Button|Save__ __Button|Discard__</code>
136
+ <br /><code>__Secondary Button|Save__ __Button|Discard__</code>
137
+ </div>
138
+ </div>
139
+ <!-- -->
140
+ </div>
141
+ <!-- -->
142
+ <div class="ui attached segment">
143
+ <h3 class="ui header">Animated</h3>
144
+ <p>A button can animate to show hidden content</p>
145
+ </div>
146
+ <!-- -->
147
+ <div class="ui divided segment grid">
148
+ <div class="ui html top attached segment">
149
+ <div class="ui top attached label">Animated</div>
150
+ </div>
151
+ <!-- -->
152
+ <div class="ui center aligned six wide column">
153
+ <h5 class="ui header">Preview</h5>
154
+ <div class="ui animated button">
155
+ <div class="visible content">Next</div>
156
+ <div class="hidden content">
157
+ <i class="right arrow icon"></i>
158
+ </div>
159
+ </div>
160
+ </div>
161
+ <!-- -->
162
+ <div class="ui left aligned ten wide column">
163
+ <h5 class="ui header">Markdown Syntax</h5>
164
+ <div class="ui inverted very padded segment">
165
+ <code>
166
+ __Animated Button|Next;Icon:Right Arrow__
167
+ </code>
168
+ </div>
169
+ </div>
170
+ <!-- -->
171
+ </div>
172
+ <!-- -->
173
+ <div class="ui divided segment grid">
174
+ <div class="ui html top attached segment">
175
+ <div class="ui top attached label">Vertical Animated</div>
176
+ </div>
177
+ <!-- -->
178
+ <div class="ui center aligned six wide column">
179
+ <h5 class="ui header">Preview</h5>
180
+ <div class="ui vertical animated button">
181
+ <div class="visible content">
182
+ <i class="shop icon"></i>
183
+ </div>
184
+ <div class="hidden content">Shop</div>
185
+ </div>
186
+ </div>
187
+ <!-- -->
188
+ <div class="ui left aligned ten wide column">
189
+ <h5 class="ui header">Markdown Syntax</h5>
190
+ <div class="ui inverted very padded segment">
191
+ <code>
192
+ __Vertical Animated Button|Icon:Shop;Shop__
193
+ </code>
194
+ </div>
195
+ </div>
196
+ <!-- -->
197
+ </div>
198
+ <!-- -->
199
+ <div class="ui divided segment grid">
200
+ <div class="ui html top attached segment">
201
+ <div class="ui top attached label">Fade Animated</div>
202
+ </div>
203
+ <!-- -->
204
+ <div class="ui center aligned six wide column">
205
+ <h5 class="ui header">Preview</h5>
206
+ <div class="ui fade animated button">
207
+ <div class="visible content">Sign-up for a Pro account</div>
208
+ <div class="hidden content">$12.99 a month</div>
209
+ </div>
210
+ </div>
211
+ <!-- -->
212
+ <div class="ui left aligned ten wide column">
213
+ <h5 class="ui header">Markdown Syntax</h5>
214
+ <div class="ui inverted very padded segment">
215
+ <code>__Fade Animated Button|Sign-up for a Pro account;$12.99 a month__</code>
216
+ </div>
217
+ </div>
218
+ <!-- -->
219
+ </div>
220
+ <!-- -->
221
+ <div class="ui attached segment">
222
+ <h3 class="ui header">Icon</h3>
223
+ <p>A button can have only an icon</p>
224
+ </div>
225
+ <!-- -->
226
+ <div class="ui divided segment grid">
227
+ <div class="ui html top attached segment">
228
+ <div class="ui top attached label">Icon Button</div>
229
+ </div>
230
+ <!-- -->
231
+ <div class="ui center aligned six wide column">
232
+ <h5 class="ui header">Preview</h5>
233
+ <div class="ui icon button">
234
+ <i class="cloud icon"></i>
235
+ </div>
236
+ </div>
237
+ <!-- -->
238
+ <div class="ui left aligned ten wide column">
239
+ <h5 class="ui header">Markdown Syntax</h5>
240
+ <div class="ui inverted very padded segment">
241
+ <code>
242
+ __Icon Button|Icon:Cloud__
243
+ </code>
244
+ </div>
245
+ </div>
246
+ <!-- -->
247
+ </div>
248
+ <!-- -->
249
+ <div class="ui attached segment">
250
+ <h3 class="ui header">Labeled Icon</h3>
251
+ <p>A button can have an icon and a label</p>
252
+ </div>
253
+ <!-- -->
254
+ <div class="ui divided segment grid">
255
+ <div class="ui html top attached segment">
256
+ <div class="ui top attached label">Labeled Icon</div>
257
+ </div>
258
+ <!-- -->
259
+ <div class="ui center aligned six wide column">
260
+ <h5 class="ui header">Preview</h5>
261
+ <div class="ui labeled icon button"><i class="pause icon"></i>Pause</div>
262
+ </div>
263
+ <!-- -->
264
+ <div class="ui left aligned ten wide column">
265
+ <h5 class="ui header">Markdown Syntax</h5>
266
+ <div class="ui inverted very padded segment">
267
+ <code>
268
+ __Labeled Icon Button|Icon:Pause,Pause__
269
+ </code>
270
+ </div>
271
+ </div>
272
+ <!-- -->
273
+ </div>
274
+ <!-- -->
275
+ <div class="ui attached segment">
276
+ <h3 class="ui header">Basic Button</h3>
277
+ <p>A basic button is less pronounced</p>
278
+ </div>
279
+ <!-- -->
280
+ <div class="ui divided segment grid">
281
+ <div class="ui html top attached segment">
282
+ <div class="ui top attached label">Basic Button</div>
283
+ </div>
284
+ <!-- -->
285
+ <div class="ui center aligned six wide column">
286
+ <h5 class="ui header">Preview</h5>
287
+ <div class="ui basic button"><i class="user icon"></i>Add Friend</div>
288
+ </div>
289
+ <!-- -->
290
+ <div class="ui left aligned ten wide column">
291
+ <h5 class="ui header">Markdown Syntax</h5>
292
+ <div class="ui inverted very padded segment">
293
+ <code>
294
+ __Basic Button|Icon:User,Add Friend__
295
+ </code>
296
+ </div>
297
+ </div>
298
+ <!-- -->
299
+ </div>
300
+ <!-- -->
301
+ <div class="ui divided segment grid">
302
+ <div class="ui html top attached segment">
303
+ <div class="ui top attached label">Basic Button</div>
304
+ </div>
305
+ <!-- -->
306
+ <div class="ui center aligned six wide column">
307
+ <h5 class="ui header">Preview</h5>
308
+ <div class="ui basic standard button">Standard</div>
309
+ <div class="ui basic black button">Black</div>
310
+ <div class="ui basic yellow button">Yellow</div>
311
+ <div class="ui basic green button">Green</div>
312
+ <div class="ui basic blue button">Blue</div>
313
+ <div class="ui basic orange button">Orange</div>
314
+ <div class="ui basic purple button">Purple</div>
315
+ <div class="ui basic pink button">Pink</div>
316
+ <div class="ui basic red button">Red</div>
317
+ <div class="ui basic teal button">Teal</div>
318
+ </div>
319
+ <!-- -->
320
+ <div class="ui left aligned ten wide column">
321
+ <h5 class="ui header">Markdown Syntax</h5>
322
+ <div class="ui inverted very padded segment">
323
+ <code>__Basic Standard Button|Standard__</code>
324
+ <br /><code>__Basic Black Button|Black__</code>
325
+ <br /><code>__Basic Yellow Button|Yellow__</code>
326
+ <br /><code>__Basic Green Button|Green__</code>
327
+ <br /><code>__Basic Blue Button|Blue__</code>
328
+ <br /><code>__Basic Orange Button|Orange__</code>
329
+ <br /><code>__Basic Purple Button|Purple__</code>
330
+ <br /><code>__Basic Pink Button|Pink__</code>
331
+ <br /><code>__Basic Red Button|Red__</code>
332
+ <br /><code>__Basic Teal Button|Teal__</code>
333
+ </div>
334
+ </div>
335
+ <!-- -->
336
+ </div>
337
+ <!-- -->
338
+ <div class="ui attached segment">
339
+ <h3 class="ui header">Inverted</h3>
340
+ <p>A button can be formatted to appear on dark backgrounds</p>
341
+ </div>
342
+ <!-- -->
343
+ <div class="ui divided segment grid">
344
+ <div class="ui html top attached segment">
345
+ <div class="ui top attached label">Inverted</div>
346
+ </div>
347
+ <!-- -->
348
+ <div class="ui center aligned six wide column">
349
+ <h5 class="ui header">Preview</h5>
350
+ <div class="ui inverted very padded segment">
351
+ <div class="ui inverted standard button">Standard</div>
352
+ <div class="ui inverted black button">Black</div>
353
+ <div class="ui inverted yellow button">Yellow</div>
354
+ <div class="ui inverted green button">Green</div>
355
+ <div class="ui inverted blue button">Blue</div>
356
+ <div class="ui inverted orange button">Orange</div>
357
+ <div class="ui inverted purple button">Purple</div>
358
+ <div class="ui inverted pink button">Pink</div>
359
+ <div class="ui inverted red button">Red</div>
360
+ <div class="ui inverted teal button">Teal</div>
361
+ </div>
362
+ </div>
363
+ <!-- -->
364
+ <div class="ui left aligned ten wide column">
365
+ <h5 class="ui header">Markdown Syntax</h5>
366
+ <div class="ui inverted very padded segment">
367
+ <code>&gt; Inverted Segment:</code>
368
+ <br /><code>&gt; __Inverted Standard Button|Standard__</code>
369
+ <br /><code>&gt; __Inverted Black Button|Black__</code>
370
+ <br /><code>&gt; __Inverted Yellow Button|Yellow__</code>
371
+ <br /><code>&gt; __Inverted Green Button|Green__</code>
372
+ <br /><code>&gt; __Inverted Blue Button|Blue__</code>
373
+ <br /><code>&gt; __Inverted Orange Button|Orange__</code>
374
+ <br /><code>&gt; __Inverted Purple Button|Purple__</code>
375
+ <br /><code>&gt; __Inverted Pink Button|Pink__</code>
376
+ <br /><code>&gt; __Inverted Red Button|Red__</code>
377
+ <br /><code>&gt; __Inverted Teal Button|Teal__</code>
378
+ </div>
379
+ </div>
380
+ <!-- -->
381
+ </div>
382
+ <!-- -->
383
+ <div class="ui attached segment">
384
+ <h3 class="ui header">Groups</h3>
385
+ <p>Buttons can exist together as a group</p>
386
+ </div>
387
+ <!-- -->
388
+ <div class="ui divided segment grid">
389
+ <div class="ui html top attached segment">
390
+ <div class="ui top attached label">Buttons</div>
391
+ </div>
392
+ <!-- -->
393
+ <div class="ui center aligned six wide column">
394
+ <h5 class="ui header">Preview</h5>
395
+ <div class="ui buttons">
396
+ <div id="standard" class="ui button">One</div>
397
+ <div id="standard" class="ui button">Two</div>
398
+ <div id="standard" class="ui button">Three</div>
399
+ </div>
400
+ </div>
401
+ <!-- -->
402
+ <div class="ui left aligned ten wide column">
403
+ <h5 class="ui header">Markdown Syntax</h5>
404
+ <div class="ui inverted very padded segment">
405
+ <code>&gt; Buttons:</code>
406
+ <br /><code>&gt; __Standard Button|One__</code>
407
+ <br /><code>&gt; __Standard Button|Two__</code>
408
+ <br /><code>&gt; __Standard Button|Three__</code>
409
+ </div>
410
+ </div>
411
+ <!-- -->
412
+ </div>
413
+ <!-- -->
414
+ <div class="ui attached segment">
415
+ <h3 class="ui header">Icon Buttons</h3>
416
+ <p>Buttons can exist together as a group</p>
417
+ </div>
418
+ <!-- -->
419
+ <div class="ui divided segment grid">
420
+ <div class="ui html top attached segment">
421
+ <div class="ui top attached label">Buttons</div>
422
+ </div>
423
+ <!-- -->
424
+ <div class="ui center aligned six wide column">
425
+ <h5 class="ui header">Preview</h5>
426
+ <div class="ui icon buttons">
427
+ <div class="ui button">
428
+ <i class="align left icon"></i>
429
+ </div>
430
+ <div class="ui button">
431
+ <i class="align center icon"></i>
432
+ </div>
433
+ <div class="ui button">
434
+ <i class="align right icon"></i>
435
+ </div>
436
+ <div class="ui button">
437
+ <i class="align justify icon"></i>
438
+ </div>
439
+ </div>
440
+ <!-- -->
441
+ <div class="ui icon buttons">
442
+ <div class="ui button">
443
+ <i class="bold icon"></i>
444
+ </div>
445
+ <div class="ui button">
446
+ <i class="underline icon"></i>
447
+ </div>
448
+ <div class="ui button">
449
+ <i class="text width icon"></i>
450
+ </div>
451
+ </div>
452
+ </div>
453
+ <!-- -->
454
+ <div class="ui left aligned ten wide column">
455
+ <h5 class="ui header">Markdown Syntax</h5>
456
+ <div class="ui inverted very padded segment">
457
+ <code>&gt; Icon Buttons:</code>
458
+ <br /><code>&gt; __Button|Icon:Align Left__</code>
459
+ <br /><code>&gt; __Button|Icon:Align Center__</code>
460
+ <br /><code>&gt; __Button|Icon:Align Right__</code>
461
+ <br /><code>&gt; __Button|Icon:Align Justify__</code>
462
+ <br /><br /><code>&lt;!-- A separator is required in between two spaces --&gt;</code>
463
+ <br /><br /><code>&gt; Icon Buttons:</code>
464
+ <br /><code>&gt; __Button|Icon:Bold__</code>
465
+ <br /><code>&gt; __Button|Icon:Underline__</code>
466
+ <br /><code>&gt; __Button|Icon:Text Width__</code>
467
+ </div>
468
+ </div>
469
+ <!-- -->
470
+ </div>
471
+ <!-- -->
472
+ <div class="ui attached segment">
473
+ <h3 class="ui header">Conditionals</h3>
474
+ <p>Button groups can contain conditionals</p>
475
+ </div>
476
+ <!-- -->
477
+ <div class="ui divided segment grid">
478
+ <div class="ui html top attached segment">
479
+ <div class="ui top attached label">Conditionals</div>
480
+ </div>
481
+ <!-- -->
482
+ <div class="ui center aligned six wide column">
483
+ <h5 class="ui header">Preview</h5>
484
+ <div class="ui buttons">
485
+ <div class="ui button">Cancel</div>
486
+ <div class="or"></div>
487
+ <div class="ui positive button">Save</div>
488
+ </div>
489
+ </div>
490
+ <!-- -->
491
+ <div class="ui left aligned ten wide column">
492
+ <h5 class="ui header">Markdown Syntax</h5>
493
+ <div class="ui inverted very padded segment">
494
+ <code>&gt; Buttons:</code>
495
+ <br /><code>&gt; __Button|Cancel__</code>
496
+ <br /><code>&gt; __Div Tag||Or__</code>
497
+ <br /><code>&gt; __Positive Button|Save__</code>
498
+ </div>
499
+ </div>
500
+ <!-- -->
501
+ <div class="ui center aligned six wide column">
502
+ <h5 class="ui header">Preview</h5>
503
+ <div class="ui buttons">
504
+ <div class="ui button">un</div>
505
+ <div class="or" data-text="ou"></div>
506
+ <div id="optional-id" class="ui positive button">deux</div>
507
+ </div>
508
+ </div>
509
+ <!-- -->
510
+ <div class="ui left aligned ten wide column">
511
+ <h5 class="ui header">Markdown Syntax</h5>
512
+ <div class="ui inverted very padded segment">
513
+ <code>&gt; Buttons:</code>
514
+ <br /><code>&gt; __Button|un__</code>
515
+ <br /><code>&gt; __Div Tag||Or|Data:Text:ou__</code>
516
+ <br /><code>&gt; __Positive Button|deux|&lt;Optional-ID&gt;__</code>
517
+ </div>
518
+ </div>
519
+ <!-- -->
520
+ </div>
521
+ </div>
522
+
523
+ </body>
524
+ </html>