markdown-ui 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +61 -6
- data/Changelog +27 -2
- data/Gemfile +15 -2
- data/components/collections/markdown-ui-grid/Gemfile +2 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-grid/lib}/grid/column/column.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-grid/lib}/grid/grid.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-grid/lib}/grid/row/row.rb +0 -0
- data/components/collections/markdown-ui-grid/lib/grid/version.rb +5 -0
- data/components/collections/markdown-ui-grid/lib/markdown-ui-grid.rb +3 -0
- data/components/collections/markdown-ui-grid/markdown-ui-grid.gemspec +37 -0
- data/components/collections/markdown-ui-menu/Gemfile +2 -0
- data/components/collections/markdown-ui-menu/lib/markdown-ui-menu.rb +3 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/custom.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/element.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/pagination.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/pointing.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/secondary.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/standard.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/tabular.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/text.rb +0 -0
- data/components/collections/markdown-ui-menu/lib/menu/version.rb +5 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-menu/lib}/menu/vertical.rb +0 -0
- data/components/collections/markdown-ui-menu/markdown-ui-menu.gemspec +37 -0
- data/components/collections/markdown-ui-message/Gemfile +2 -0
- data/components/collections/markdown-ui-message/lib/markdown-ui-message.rb +3 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-message/lib}/message/custom_message.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-message/lib}/message/list_message.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-message/lib}/message/message.rb +0 -0
- data/{lib/markdown-ui → components/collections/markdown-ui-message/lib}/message/standard_message.rb +0 -0
- data/components/collections/markdown-ui-message/lib/message/version.rb +5 -0
- data/components/collections/markdown-ui-message/markdown-ui-message.gemspec +37 -0
- data/components/elements/markdown-ui-button/Gemfile +2 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/animated.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/basic.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/custom.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/element.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/focusable.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/group/buttons/custom.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/group/buttons/element.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/group/buttons/icon.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/group/buttons/standard.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/icon.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/labeled_icon.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-button/lib}/button/standard.rb +0 -0
- data/components/elements/markdown-ui-button/lib/button/version.rb +5 -0
- data/components/elements/markdown-ui-button/lib/markdown-ui-button.rb +3 -0
- data/components/elements/markdown-ui-button/markdown-ui-button.gemspec +37 -0
- data/components/elements/markdown-ui-container/Gemfile +2 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-container/lib}/container/alignment/center.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-container/lib}/container/alignment/left.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-container/lib}/container/alignment/right.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-container/lib}/container/custom.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-container/lib}/container/element.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-container/lib}/container/standard.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-container/lib}/container/text.rb +0 -0
- data/components/elements/markdown-ui-container/lib/container/version.rb +5 -0
- data/components/elements/markdown-ui-container/lib/markdown-ui-container.rb +3 -0
- data/components/elements/markdown-ui-container/markdown-ui-container.gemspec +37 -0
- data/components/elements/markdown-ui-content/Gemfile +2 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-content/lib}/content/custom.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-content/lib}/content/header.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-content/lib}/content/icon.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-content/lib}/content/item.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-content/lib}/content/list.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-content/lib}/content/parser.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-content/lib}/content/text.rb +0 -0
- data/components/elements/markdown-ui-content/lib/content/version.rb +5 -0
- data/components/elements/markdown-ui-content/lib/markdown-ui-content.rb +3 -0
- data/components/elements/markdown-ui-content/markdown-ui-content.gemspec +37 -0
- data/components/elements/markdown-ui-header/Gemfile +2 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-header/lib}/header/header.rb +0 -0
- data/components/elements/markdown-ui-header/lib/header/version.rb +5 -0
- data/components/elements/markdown-ui-header/lib/markdown-ui-header.rb +3 -0
- data/components/elements/markdown-ui-header/markdown-ui-header.gemspec +37 -0
- data/components/elements/markdown-ui-label/Gemfile +2 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-label/lib}/label/custom.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-label/lib}/label/element.rb +0 -0
- data/components/elements/markdown-ui-label/lib/label/version.rb +5 -0
- data/components/elements/markdown-ui-label/lib/markdown-ui-label.rb +3 -0
- data/components/elements/markdown-ui-label/markdown-ui-label.gemspec +37 -0
- data/components/elements/markdown-ui-segment/Gemfile +2 -0
- data/components/elements/markdown-ui-segment/lib/markdown-ui-segment.rb +3 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/custom_segment.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/horizontal_segment.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/padded_segment.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/piled_segment.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/segment.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/stacked_segment.rb +0 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/standard_segment.rb +0 -0
- data/components/elements/markdown-ui-segment/lib/segment/version.rb +5 -0
- data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/vertical_segment.rb +0 -0
- data/components/elements/markdown-ui-segment/markdown-ui-segment.gemspec +37 -0
- data/lib/markdown-ui.rb +5 -0
- data/lib/markdown-ui/collection.rb +7 -0
- data/lib/markdown-ui/element.rb +7 -0
- data/lib/markdown-ui/tag/item_tag.rb +2 -2
- data/lib/markdown-ui/version.rb +1 -1
- data/website/index.html +24 -8
- data/website/index.md +23 -8
- metadata +93 -55
File without changes
|
File without changes
|
data/{lib/markdown-ui → components/elements/markdown-ui-container/lib}/container/standard.rb
RENAMED
File without changes
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'container/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "markdown-ui-container"
|
8
|
+
spec.version = MarkdownUI::Container::VERSION
|
9
|
+
spec.authors = ["Joel Bryan Juliano"]
|
10
|
+
spec.email = ["joelbryan.juliano@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Responsive User Interfaces in Markdown}
|
13
|
+
spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
|
14
|
+
spec.homepage = "https://github.com/jjuliano/markdown-ui"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
|
31
|
+
spec.add_dependency "redcarpet", "~> 3.2"
|
32
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "test-unit", "~> 3.0"
|
35
|
+
spec.add_development_dependency "simplecov", "~> 0.10"
|
36
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
|
37
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'content/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "markdown-ui-content"
|
8
|
+
spec.version = MarkdownUI::Content::VERSION
|
9
|
+
spec.authors = ["Joel Bryan Juliano"]
|
10
|
+
spec.email = ["joelbryan.juliano@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Responsive User Interfaces in Markdown}
|
13
|
+
spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
|
14
|
+
spec.homepage = "https://github.com/jjuliano/markdown-ui"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
|
31
|
+
spec.add_dependency "redcarpet", "~> 3.2"
|
32
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "test-unit", "~> 3.0"
|
35
|
+
spec.add_development_dependency "simplecov", "~> 0.10"
|
36
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
|
37
|
+
end
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'header/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "markdown-ui-header"
|
8
|
+
spec.version = MarkdownUI::HeaderElement::VERSION
|
9
|
+
spec.authors = ["Joel Bryan Juliano"]
|
10
|
+
spec.email = ["joelbryan.juliano@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Responsive User Interfaces in Markdown}
|
13
|
+
spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
|
14
|
+
spec.homepage = "https://github.com/jjuliano/markdown-ui"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
|
31
|
+
spec.add_dependency "redcarpet", "~> 3.2"
|
32
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "test-unit", "~> 3.0"
|
35
|
+
spec.add_development_dependency "simplecov", "~> 0.10"
|
36
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
|
37
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'label/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "markdown-ui-label"
|
8
|
+
spec.version = MarkdownUI::Label::VERSION
|
9
|
+
spec.authors = ["Joel Bryan Juliano"]
|
10
|
+
spec.email = ["joelbryan.juliano@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Responsive User Interfaces in Markdown}
|
13
|
+
spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
|
14
|
+
spec.homepage = "https://github.com/jjuliano/markdown-ui"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
|
31
|
+
spec.add_dependency "redcarpet", "~> 3.2"
|
32
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "test-unit", "~> 3.0"
|
35
|
+
spec.add_development_dependency "simplecov", "~> 0.10"
|
36
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
|
37
|
+
end
|
data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/custom_segment.rb
RENAMED
File without changes
|
data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/horizontal_segment.rb
RENAMED
File without changes
|
data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/padded_segment.rb
RENAMED
File without changes
|
data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/piled_segment.rb
RENAMED
File without changes
|
File without changes
|
data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/stacked_segment.rb
RENAMED
File without changes
|
data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/standard_segment.rb
RENAMED
File without changes
|
data/{lib/markdown-ui → components/elements/markdown-ui-segment/lib}/segment/vertical_segment.rb
RENAMED
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'segment/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "markdown-ui-segment"
|
8
|
+
spec.version = MarkdownUI::SegmentElement::VERSION
|
9
|
+
spec.authors = ["Joel Bryan Juliano"]
|
10
|
+
spec.email = ["joelbryan.juliano@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Responsive User Interfaces in Markdown}
|
13
|
+
spec.description = %q{Create responsive UI/UX for mobile and web using Markdown Syntax}
|
14
|
+
spec.homepage = "https://github.com/jjuliano/markdown-ui"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_dependency 'bundler', '~> 1.10', '~> 1.9'
|
31
|
+
spec.add_dependency "redcarpet", "~> 3.2"
|
32
|
+
spec.add_dependency "nokogiri", "~> 1.6"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "test-unit", "~> 3.0"
|
35
|
+
spec.add_development_dependency "simplecov", "~> 0.10"
|
36
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 0.4"
|
37
|
+
end
|
data/lib/markdown-ui.rb
CHANGED
@@ -5,6 +5,9 @@ require 'redcarpet'
|
|
5
5
|
require 'nokogiri'
|
6
6
|
require 'ostruct'
|
7
7
|
|
8
|
+
require 'markdown-ui/element'
|
9
|
+
require 'markdown-ui/collection'
|
10
|
+
|
8
11
|
['markdown-ui/**/*.rb'].each do |dir|
|
9
12
|
Dir[File.join(File.dirname(__FILE__), dir)].sort.each { |f| require_relative f }
|
10
13
|
end
|
@@ -12,6 +15,8 @@ end
|
|
12
15
|
module MarkdownUI
|
13
16
|
class Renderer < Redcarpet::Render::HTML
|
14
17
|
include Redcarpet::Render::SmartyPants
|
18
|
+
include MarkdownUI::Element
|
19
|
+
include MarkdownUI::Collection
|
15
20
|
|
16
21
|
def paragraph(text)
|
17
22
|
text
|
@@ -8,8 +8,8 @@ module MarkdownUI
|
|
8
8
|
|
9
9
|
def render
|
10
10
|
content, @data = @content.split(';')
|
11
|
-
klass = MarkdownUI::KlassUtil.new(@klass).klass
|
12
|
-
link = " href=\"#{@link.strip}\""
|
11
|
+
klass = MarkdownUI::KlassUtil.new(@klass).klass if @klass
|
12
|
+
link = " href=\"#{@link.strip}\"" if @link
|
13
13
|
|
14
14
|
data = if @data
|
15
15
|
_data, attribute, value = @data.split(':')
|
data/lib/markdown-ui/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<head>
|
7
7
|
<meta charset="utf-8">
|
8
8
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
10
10
|
|
11
11
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.0.1/semantic.min.css">
|
12
12
|
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
|
@@ -48,7 +48,7 @@
|
|
48
48
|
Markdown-UI uses <a class="ui item" href="http://www.semantic-ui.com">Semantic-UI http://www.semantic-ui.com</a>
|
49
49
|
syntax and framework, and ruby <code>redcarpet</code> library.
|
50
50
|
Credit goes to the people behind these wonderful framework and libraries.<h2 class="ui header">Issues/Bugs</h2>
|
51
|
-
<ul class="ui list"><li>Ongoing support for
|
51
|
+
<ul class="ui list"><li>Ongoing support for Semantic-UI elements/modules/components</li><li>The Colon (:) character will be parsed when used inside a text, needs post-processing to dislay correctly (for URLs)</li><li>Code is not DRY, needs refactoring.</li><li>Implimentation is subject to change</li><li>A separator in between two spaces is required on block elements to separate elements (see Column example)</li></ul></div>
|
52
52
|
<!-- -->
|
53
53
|
<div class="ui column">
|
54
54
|
<div class="ui inverted very padded segment">
|
@@ -109,6 +109,22 @@ Credit goes to the people behind these wonderful framework and libraries.<h2 cla
|
|
109
109
|
<code>> [Menu Item]</code>
|
110
110
|
<br />
|
111
111
|
</div>
|
112
|
+
<!-- -->
|
113
|
+
<h5 class="ui header">List</h5>
|
114
|
+
<div class="ui info message">
|
115
|
+
<code>* List 1</code>
|
116
|
+
<br />
|
117
|
+
<code>* List 2</code>
|
118
|
+
<br />
|
119
|
+
</div>
|
120
|
+
<!-- -->
|
121
|
+
<h5 class="ui header">Label</h5>
|
122
|
+
<div class="ui info message">
|
123
|
+
<code>> Label:</code>
|
124
|
+
<br />
|
125
|
+
<code>> _Mail Icon_ 23</code>
|
126
|
+
<br />
|
127
|
+
</div>
|
112
128
|
<!-- -->
|
113
129
|
</div>
|
114
130
|
</div>
|
@@ -631,7 +647,7 @@ __Basic Teal Button|Teal__
|
|
631
647
|
<!-- -->
|
632
648
|
<div class="ui center aligned six wide column">
|
633
649
|
<h5 class="ui header">Preview</h5>
|
634
|
-
<div class="ui
|
650
|
+
<div class="ui buttons">
|
635
651
|
<div class="ui button">Cancel</div>
|
636
652
|
<div class="or"></div>
|
637
653
|
<div class="ui positive button">Save</div>
|
@@ -641,7 +657,7 @@ __Basic Teal Button|Teal__
|
|
641
657
|
<div class="ui left aligned ten wide column">
|
642
658
|
<h5 class="ui header">Markdown Syntax</h5>
|
643
659
|
<div class="ui inverted very padded segment">
|
644
|
-
<code>>
|
660
|
+
<code>> Buttons:</code>
|
645
661
|
<br />
|
646
662
|
<code>> __Button|Cancel__</code>
|
647
663
|
<br />
|
@@ -653,9 +669,9 @@ __Basic Teal Button|Teal__
|
|
653
669
|
<!-- -->
|
654
670
|
<div class="ui center aligned six wide column">
|
655
671
|
<h5 class="ui header">Preview</h5>
|
656
|
-
<div class="ui
|
672
|
+
<div class="ui buttons">
|
657
673
|
<div class="ui button">un</div>
|
658
|
-
<div class="or" data-
|
674
|
+
<div class="or" data-text="ou"></div>
|
659
675
|
<div id="positive-id" class="ui positive button">deux</div>
|
660
676
|
</div>
|
661
677
|
</div>
|
@@ -663,11 +679,11 @@ __Basic Teal Button|Teal__
|
|
663
679
|
<div class="ui left aligned ten wide column">
|
664
680
|
<h5 class="ui header">Markdown Syntax</h5>
|
665
681
|
<div class="ui inverted very padded segment">
|
666
|
-
<code>>
|
682
|
+
<code>> Buttons:</code>
|
667
683
|
<br />
|
668
684
|
<code>> __Button|un__</code>
|
669
685
|
<br />
|
670
|
-
<code>> __Div Tag|Or|Data:ou__</code>
|
686
|
+
<code>> __Div Tag|Or|Data:Text:ou__</code>
|
671
687
|
<br />
|
672
688
|
<code>> __Positive Button|deux|Positive-ID__</code>
|
673
689
|
</div>
|