daimon_markdown 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7dc6824cc4df9719aba51eed6b8fe849b3885d07
4
+ data.tar.gz: 8f4b326bf02fefc3d026c11f5a92a5b21c93c3f1
5
+ SHA512:
6
+ metadata.gz: dfe1d12e0cac4f1c3ac054acb020665e7508d439475a4f81d37f9cb8ccffac3a6dc24186b7a6f9873b657effd55021ab314bac89381733e4ed501b87cf10aa5a
7
+ data.tar.gz: 082116ac11b8cf37ded52adaee2c5f9532c7d3625f32cfc7971f48c2767823df826c63e0fd0f026e634c8fc8ef859fc81491ab74820112433bad61d4cd1ec805
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rubocop.yml ADDED
@@ -0,0 +1,3 @@
1
+ inherit_gem:
2
+ daimon-deka: config/rubocop.yml
3
+
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ sudo: false
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.3.1
6
+ notifications:
7
+ slack:
8
+ secure: JcaUwy2K2x3nLZeU5sjMy+LPWd6SUey5FExLJf70QTSaioyYJgyvKgexZ7sR5kUEwkps+Ql9smUBUho/H/FeEEjnTidv/kq1+Fvo0Hr17VMrEuWA4m1XyMGP3TChfW1aPm2z+aL3AhX/voORD9CIevoC3GlZmDTq3aaB6T5EQGxpEqRkutJ4B9c94uEoZWaY+7w5r3c+CxQxr3lt5jiDkNzTySPDcs3s+zf/8AMoz3gwisoL0RkL5dv/80c8k/mzkYtu9V97tMK2V9sA35cU9Xnc0K8CEtJiWwx9JPvqrFQ2QQion3g9cMLzdBvmJYOazlCPaK19AJ2PfIO0JJKeJIWsSxBW3lTEUKRRXJvC+xY/HlLCNzXyRUn2TYr8Px0bQEIG1wGZdJvqBYG9xeuzgXjHRBPfCGVkXvU6xaGCIfRMoWodj7gknJCv7uimOJYLg5c57Q4sWnbp+kxtiHYSqn41j1aPkopsUL7wHCzwSscS4PbWTVyoHsXfy+P9c77pt/uLwf0he99+j4kgHsCaxPAUJ7aeTmpR8/n02rii9Vf4eWyIOKXq73FVT/Hatn/tuB72z1OmpuaGPXoWmJoo52XQRPBRwlX9fBMFklcwyAts9PG7VvB5s6l+dnSht1v44qjTGsT78nqQbUgp0lNcU3G67ld0OIvG3MkGCAZ+AL4=
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Kenji Okimoto
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,91 @@
1
+ # DaimonMarkdown
2
+
3
+ DaimonMarkdown is a Markdown processor that has plugin functionality.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ **NOTICE** `daimon_markdown` has been renamed from `daimon-markdown` since v0.6.0.
10
+
11
+ ```ruby
12
+ gem 'daimon_markdown'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install daimon_markdown
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ```ruby
28
+ processor = DaimonMarkdown::Processor.new
29
+ result = processor.call(input)
30
+ puts result[:output].to_s
31
+ ```
32
+
33
+ ## How to write plugin
34
+
35
+ TODO
36
+
37
+ ### Bundled plugins
38
+
39
+ #### toc
40
+
41
+ Display table of contents.
42
+
43
+ ```
44
+ {{toc}}
45
+ ```
46
+
47
+ #### figure
48
+
49
+ Display image using figure tag and figcaption tag.
50
+
51
+ ```
52
+ {{figure("image.png", "alt text", "caption text")}}
53
+ ```
54
+
55
+ #### math
56
+
57
+ Display mathematical expression using [MathJax](https://www.mathjax.org/).
58
+ Use 2 backslashes if you want to use commands start with backslash.
59
+
60
+ Currently support LaTeX and AsciiMath.
61
+
62
+ ```text
63
+ # Inline style
64
+
65
+ This is a expression {{math("$1 + 1 = 2$")}}. And {{math("$2^{10} = 1024$")}} .
66
+
67
+ # Block style
68
+
69
+ {{math("$$
70
+ \begin{aligned}
71
+ \dot{x} & = \sigma(y-x) \\
72
+ \dot{y} & = \rho x - y - xz \\
73
+ \dot{z} & = -\beta z + xy
74
+ \end{aligned}
75
+ $$")}}
76
+ ```
77
+
78
+
79
+ ## Development
80
+
81
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
82
+
83
+ ## Contributing
84
+
85
+ Bug reports and pull requests are welcome on GitHub at https://github.com/bm-sms/daimon_markdown.
86
+
87
+
88
+ ## License
89
+
90
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
91
+
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ task :default => :test
5
+
6
+ desc "Run test"
7
+ Rake::TestTask.new(:test) do |t|
8
+ t.libs << "test"
9
+ t.test_files = (Dir["test/test_*.rb"] + Dir["test/plugin/test_*.rb"]).sort
10
+ t.verbose = false
11
+ t.warning = false
12
+ end
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'daimon_markdown/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "daimon_markdown"
8
+ spec.version = DaimonMarkdown::VERSION
9
+ spec.authors = ["daimon developers"]
10
+ spec.email = [""]
11
+
12
+ spec.summary = %q{Markdown renderer for Daimon}
13
+ spec.description = %q{Markdown renderer for Daimon}
14
+ spec.homepage = "https://github.com/bm-sms/daimon_markdown"
15
+ spec.license = "MIT"
16
+
17
+ spec.required_ruby_version = ">= 2.3.0"
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.bindir = "bin"
21
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_runtime_dependency "html-pipeline"
25
+ spec.add_runtime_dependency "redcarpet"
26
+ spec.add_runtime_dependency "rouge"
27
+
28
+ spec.add_development_dependency "bundler", ">= 1.12"
29
+ spec.add_development_dependency "rake", "~> 11.0"
30
+ spec.add_development_dependency "test-unit", "> 3"
31
+ spec.add_development_dependency "test-unit-notify"
32
+ spec.add_development_dependency "rubocop"
33
+ spec.add_development_dependency "daimon-deka"
34
+ end
@@ -0,0 +1,43 @@
1
+ require "daimon_markdown/parser"
2
+
3
+ module DaimonMarkdown
4
+ module Filter
5
+ class Plugin < ::HTML::Pipeline::Filter
6
+ def call
7
+ doc.search(".//text()").each do |node|
8
+ next if node.parent.name == "code" # skip code block
9
+ result[:plugins] = []
10
+ node.to_s.scan(/{{(.+?)}}/m) do |str|
11
+ begin
12
+ parser = DaimonMarkdown::Parser.new(str[0])
13
+ parser.parse
14
+ plugin_class = DaimonMarkdown::Plugin.lookup(parser.name)
15
+ plugin = plugin_class.new(doc, node, result, context)
16
+ plugin.call(*parser.args)
17
+ rescue DaimonMarkdown::Parser::Error => ex
18
+ message = "#{node} (#{ex.class}: #{ex.message})"
19
+ node.replace(message)
20
+ rescue DaimonMarkdown::Plugin::UnknownPluginError => ex
21
+ node.replace(ex.message)
22
+ end
23
+ end
24
+ unless result[:plugins].empty?
25
+ scanner = StringScanner.new(node.to_s)
26
+ new_node = ""
27
+ loop do
28
+ if scanner.match?(/{{.+?}}/)
29
+ new_node << result[:plugins].shift
30
+ scanner.pos += scanner.matched_size
31
+ else
32
+ new_node << scanner.getch
33
+ end
34
+ break if scanner.eos?
35
+ end
36
+ node.replace(new_node)
37
+ end
38
+ end
39
+ doc
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,23 @@
1
+ require "nokogiri"
2
+ require "redcarpet"
3
+
4
+ require "daimon_markdown/redcarpet/html_renderer"
5
+
6
+ module DaimonMarkdown
7
+ module Filter
8
+ class Redcarpet < HTML::Pipeline::TextFilter
9
+ def call
10
+ Nokogiri::HTML.fragment(markdown.render(@text))
11
+ end
12
+
13
+ private
14
+
15
+ def markdown
16
+ @markdown ||= ::Redcarpet::Markdown.new(
17
+ DaimonMarkdown::Redcarpet::HTMLRenderer.new(hard_wrap: true),
18
+ fenced_code_blocks: true,
19
+ tables: true)
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,7 @@
1
+ module DaimonMarkdown
2
+ module Filter
3
+ end
4
+ end
5
+
6
+ require "daimon_markdown/filter/redcarpet"
7
+ require "daimon_markdown/filter/plugin"
@@ -0,0 +1,99 @@
1
+ require "ripper"
2
+
3
+ module DaimonMarkdown
4
+ class Parser < Ripper
5
+
6
+ class Error < StandardError
7
+ end
8
+
9
+ KEYWORDS = {
10
+ "nil" => nil,
11
+ "true" => true,
12
+ "false" => false
13
+ }
14
+
15
+ attr_reader :name, :args
16
+
17
+ def initialize(src)
18
+ super
19
+ @name = nil
20
+ @args = []
21
+ @level = 0
22
+ @array = []
23
+ @arrays = {}
24
+ end
25
+
26
+ def on_vcall(name)
27
+ @name = name
28
+ end
29
+
30
+ def on_command(name, *args)
31
+ @name = name
32
+ end
33
+
34
+ def on_fcall(name)
35
+ @name = name
36
+ end
37
+
38
+ def on_tstring_content(content)
39
+ if @level == 0
40
+ @args << content
41
+ else
42
+ @arrays[@level] << content
43
+ end
44
+ end
45
+
46
+ def on_int(value)
47
+ if @level == 0
48
+ @args << value.to_i
49
+ else
50
+ @arrays[@level] << value.to_i
51
+ end
52
+ end
53
+
54
+ def on_float(value)
55
+ if @level == 0
56
+ @args << value.to_f
57
+ else
58
+ @arrays[@level] << value.to_f
59
+ end
60
+ end
61
+
62
+ def on_const(name)
63
+ @args << Object.const_get(name)
64
+ end
65
+
66
+ def on_kw(keyword)
67
+ @args << KEYWORDS[keyword]
68
+ end
69
+
70
+ def on_array(args)
71
+ if @level == 0
72
+ @args << @arrays[0].first
73
+ end
74
+ end
75
+
76
+ def on_lbracket(*args)
77
+ if @level == 0
78
+ @arrays[0] = []
79
+ end
80
+ @level += 1
81
+ @arrays[@level] = []
82
+ end
83
+
84
+ def on_rbracket(*args)
85
+ @arrays[@level - 1] << @arrays[@level]
86
+ @level -= 1
87
+ end
88
+
89
+ def on_parse_error(message)
90
+ compile_error(message)
91
+ end
92
+
93
+ private
94
+
95
+ def compile_error(message)
96
+ raise Error, message
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,22 @@
1
+ require "cgi/util"
2
+
3
+ module DaimonMarkdown
4
+ class Plugin
5
+ class Base
6
+ include CGI::Util
7
+
8
+ attr_reader :doc, :node, :result, :context
9
+
10
+ def initialize(doc, node, result, context)
11
+ @doc = doc
12
+ @node = node
13
+ @result = result
14
+ @context = context
15
+ end
16
+
17
+ def call(*args)
18
+ raise "Implement this method in subclass"
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,19 @@
1
+ module DaimonMarkdown
2
+ class Plugin
3
+ class Chat < Base
4
+ Plugin.register("chat", self)
5
+
6
+ def call(*args)
7
+ speaches = []
8
+ args.each_slice(2) do |url, text|
9
+ speaches << <<~SPEACH.chomp
10
+ <img src="#{url}" />
11
+ <p>#{text}</p>
12
+ SPEACH
13
+ end
14
+ html = %Q(<div class="chat">\n#{speaches.join("\n")}\n</div>)
15
+ node.parent.replace(html)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ module DaimonMarkdown
2
+ class Plugin
3
+ class Figure < Base
4
+ Plugin.register("figure", self)
5
+
6
+ def call(src, alt, caption)
7
+ figure = <<~HTML
8
+ <figure>
9
+ <img src="#{src}" alt="#{alt}">
10
+ <figcaption>#{caption}</figcaption>
11
+ </figure>
12
+ HTML
13
+ node.parent.replace(figure)
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,36 @@
1
+ module DaimonMarkdown
2
+ class Plugin
3
+ class Math < Base
4
+ Plugin.register("math", self)
5
+
6
+ def self.script_tag
7
+ tag = <<~TAG
8
+ <script type="text/x-mathjax-config">
9
+ MathJax.Hub.Config({
10
+ tex2jax: {inlineMath: [['$','$']]},
11
+ asciimath2jax: {delimiters: [['`', '`']]},
12
+ TeX: {extensions: ["mhchem.js"]}
13
+ });
14
+ </script>
15
+ <script type="text/javascript"
16
+ async
17
+ src="https://cdn.mathjax.org/mathjax/2.6-latest/MathJax.js?config=TeX-MML-AM_CHTML">
18
+ </script>
19
+ TAG
20
+ if tag.respond_to?(:html_safe)
21
+ tag.html_safe
22
+ else
23
+ tag
24
+ end
25
+ end
26
+
27
+ def call(expression)
28
+ if expression.start_with?("$$")
29
+ node.parent.replace(%Q(<div class="math">#{expression}</div>))
30
+ else
31
+ result[:plugins] << expression
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,60 @@
1
+ module DaimonMarkdown
2
+ class Plugin
3
+ class TableOfContents < Base
4
+ Plugin.register("toc", self)
5
+
6
+ def call(limit = nil)
7
+ toc_html = ""
8
+ items = []
9
+
10
+ headers = Hash.new(0)
11
+ previous_level = 1
12
+ doc.css("h1, h2, h3, h4, h5, h6").each do |header_node|
13
+ level = header_node.name.tr("h", "").to_i
14
+ next if limit && limit < level
15
+ text = header_node.text
16
+ id = text.downcase
17
+ id.gsub!(/ /, "-")
18
+ id.gsub!(/\s/, "")
19
+
20
+ if headers[id] > 0
21
+ unique_id = "#{id}-#{headers[id]}"
22
+ else
23
+ unique_id = id
24
+ end
25
+ headers[id] += 1
26
+ header_content = header_node.children.first
27
+ # TODO: Arrange indent level
28
+ if header_content
29
+ diff = level - previous_level
30
+ case
31
+ when diff > 0
32
+ items.concat(["<ul>"] * diff)
33
+ when diff < 0
34
+ items.concat(["</ul>"] * diff.abs)
35
+ end
36
+ items << list_item(link_to(unique_id, text))
37
+ header_node["id"] = unique_id
38
+ end
39
+ previous_level = level
40
+ end
41
+ toc_class = context[:toc_class] || "section-nav"
42
+ toc_header = context[:toc_header] || ""
43
+ unless items.empty?
44
+ toc_html = %Q(#{toc_header}<ul class="#{toc_class}">\n#{items.join("\n")}\n</ul>)
45
+ end
46
+ node.parent.replace(toc_html)
47
+ end
48
+
49
+ private
50
+
51
+ def link_to(href, text)
52
+ %Q(<a href="##{href}">#{text}</a>)
53
+ end
54
+
55
+ def list_item(content)
56
+ %Q(<li>#{content}</li>)
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,26 @@
1
+ module DaimonMarkdown
2
+ class Plugin
3
+
4
+ PLUGIN_REGISTRY = {}
5
+
6
+ class UnknownPluginError < StandardError
7
+ end
8
+
9
+ class << self
10
+ def lookup(name)
11
+ PLUGIN_REGISTRY.fetch(name)
12
+ rescue KeyError
13
+ raise UnknownPluginError, "Unknown plugin: #{name}"
14
+ end
15
+
16
+ def register(name, klass)
17
+ PLUGIN_REGISTRY[name] = klass
18
+ end
19
+ end
20
+ end
21
+ end
22
+
23
+ require "daimon_markdown/plugin/base"
24
+ Dir.glob("#{__dir__}/plugin/*.rb") do |entry|
25
+ require entry
26
+ end
@@ -0,0 +1,28 @@
1
+ require "html/pipeline"
2
+
3
+ require "daimon_markdown/filter"
4
+ require "daimon_markdown/plugin"
5
+
6
+ module DaimonMarkdown
7
+ class Processor
8
+
9
+ DEFAULT_FILTERS = [
10
+ DaimonMarkdown::Filter::Redcarpet,
11
+ DaimonMarkdown::Filter::Plugin
12
+ ]
13
+
14
+ attr_reader :context
15
+
16
+ def initialize(context = {})
17
+ @context = context
18
+ end
19
+
20
+ def call(input, context = {})
21
+ HTML::Pipeline.new(filters, @context).call(input, context)
22
+ end
23
+
24
+ def filters
25
+ @filters ||= DEFAULT_FILTERS.clone
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,45 @@
1
+ require "rouge"
2
+ require "rouge/plugins/redcarpet"
3
+
4
+ module DaimonMarkdown
5
+ module Redcarpet
6
+ class HTMLRenderer < ::Redcarpet::Render::HTML
7
+ include Rouge::Plugins::Redcarpet
8
+
9
+ def initialize(extensions = {})
10
+ super
11
+ @plugins = []
12
+ end
13
+
14
+ def preprocess(full_document)
15
+ scanner = StringScanner.new(full_document)
16
+ loop do
17
+ break if scanner.eos?
18
+ if scanner.match?(/{{.+?}}/m)
19
+ @plugins << scanner.matched
20
+ scanner.pos += scanner.matched_size
21
+ else
22
+ scanner.getch
23
+ end
24
+ end
25
+ full_document
26
+ end
27
+
28
+ def postprocess(full_document)
29
+ return full_document if @plugins.empty?
30
+ document = ""
31
+ scanner = StringScanner.new(full_document)
32
+ loop do
33
+ break if scanner.eos?
34
+ if scanner.match?(/{{.+?}}/m)
35
+ document << @plugins.shift
36
+ scanner.pos += scanner.matched_size
37
+ else
38
+ document << scanner.getch
39
+ end
40
+ end
41
+ document
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,3 @@
1
+ module DaimonMarkdown
2
+ VERSION = "0.6.0"
3
+ end
@@ -0,0 +1,9 @@
1
+ require "daimon_markdown/version"
2
+
3
+ module DaimonMarkdown
4
+ end
5
+
6
+ require "daimon_markdown/processor"
7
+ require "daimon_markdown/filter"
8
+ require "daimon_markdown/parser"
9
+ require "daimon_markdown/plugin"
metadata ADDED
@@ -0,0 +1,192 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: daimon_markdown
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.0
5
+ platform: ruby
6
+ authors:
7
+ - daimon developers
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: html-pipeline
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: redcarpet
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rouge
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '1.12'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '1.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '11.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '11.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: test-unit
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">"
88
+ - !ruby/object:Gem::Version
89
+ version: '3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">"
95
+ - !ruby/object:Gem::Version
96
+ version: '3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: test-unit-notify
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: daimon-deka
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Markdown renderer for Daimon
140
+ email:
141
+ - ''
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - ".gitignore"
147
+ - ".rubocop.yml"
148
+ - ".travis.yml"
149
+ - Gemfile
150
+ - LICENSE.txt
151
+ - README.md
152
+ - Rakefile
153
+ - daimon_markdown.gemspec
154
+ - lib/daimon_markdown.rb
155
+ - lib/daimon_markdown/filter.rb
156
+ - lib/daimon_markdown/filter/plugin.rb
157
+ - lib/daimon_markdown/filter/redcarpet.rb
158
+ - lib/daimon_markdown/parser.rb
159
+ - lib/daimon_markdown/plugin.rb
160
+ - lib/daimon_markdown/plugin/base.rb
161
+ - lib/daimon_markdown/plugin/chat.rb
162
+ - lib/daimon_markdown/plugin/figure.rb
163
+ - lib/daimon_markdown/plugin/math.rb
164
+ - lib/daimon_markdown/plugin/toc.rb
165
+ - lib/daimon_markdown/processor.rb
166
+ - lib/daimon_markdown/redcarpet/html_renderer.rb
167
+ - lib/daimon_markdown/version.rb
168
+ homepage: https://github.com/bm-sms/daimon_markdown
169
+ licenses:
170
+ - MIT
171
+ metadata: {}
172
+ post_install_message:
173
+ rdoc_options: []
174
+ require_paths:
175
+ - lib
176
+ required_ruby_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 2.3.0
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ requirements: []
187
+ rubyforge_project:
188
+ rubygems_version: 2.6.4
189
+ signing_key:
190
+ specification_version: 4
191
+ summary: Markdown renderer for Daimon
192
+ test_files: []