html-pipeline-mrkdwn 0.1.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
+ SHA256:
3
+ metadata.gz: a6f8a11bf9d40b43c747109ca01c9f0c2b17b7718ed1595140690e9a5a96ba31
4
+ data.tar.gz: c9460d585926a5431f39937bf2fcedc952836786c6c7fb6ed0fa794abf694acc
5
+ SHA512:
6
+ metadata.gz: bcfb8cbfdd2960b89e11368e83b0012cfb010c468574dd67f1c535e0c6e4d074caf0a13c5a7ee9e4fbe39823c203dc4593cd4d0ba02c6b4b3084c0a119827b33
7
+ data.tar.gz: b084c17c07d5a914b460f6c4e5bb28d5d0cd4201fe68055523b4123a7c2bf7c5bdc7f4793c16e9a0a4296df994589e99a8aed581abfede18ee6ff145cd9c261f
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.7
3
+
4
+ Style/EmptyElse:
5
+ EnforcedStyle: empty
6
+
7
+ Style/StringLiterals:
8
+ Enabled: true
9
+ EnforcedStyle: double_quotes
10
+
11
+ Style/StringLiteralsInInterpolation:
12
+ Enabled: true
13
+ EnforcedStyle: double_quotes
14
+
15
+ Layout/LineLength:
16
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## [0.1.0] - 2022-12-24
2
+
3
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at jason.gorst@me.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in html-pipeline-mrkdwn.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rubocop", "~> 1.21"
data/Gemfile.lock ADDED
@@ -0,0 +1,79 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ html-pipeline-mrkdwn (0.1.0)
5
+ escape_utils (~> 1.3.0)
6
+ gemoji (~> 4.0.1)
7
+ html-pipeline (~> 2.14.3)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (7.0.4)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ ast (2.4.2)
18
+ concurrent-ruby (1.1.10)
19
+ diff-lcs (1.5.0)
20
+ escape_utils (1.3.0)
21
+ gemoji (4.0.1)
22
+ html-pipeline (2.14.3)
23
+ activesupport (>= 2)
24
+ nokogiri (>= 1.4)
25
+ i18n (1.12.0)
26
+ concurrent-ruby (~> 1.0)
27
+ json (2.6.3)
28
+ minitest (5.16.3)
29
+ nokogiri (1.13.10-arm64-darwin)
30
+ racc (~> 1.4)
31
+ parallel (1.22.1)
32
+ parser (3.1.3.0)
33
+ ast (~> 2.4.1)
34
+ racc (1.6.2)
35
+ rainbow (3.1.1)
36
+ rake (13.0.6)
37
+ regexp_parser (2.6.1)
38
+ rexml (3.2.5)
39
+ rspec (3.12.0)
40
+ rspec-core (~> 3.12.0)
41
+ rspec-expectations (~> 3.12.0)
42
+ rspec-mocks (~> 3.12.0)
43
+ rspec-core (3.12.0)
44
+ rspec-support (~> 3.12.0)
45
+ rspec-expectations (3.12.1)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.12.0)
48
+ rspec-mocks (3.12.1)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.12.0)
51
+ rspec-support (3.12.0)
52
+ rubocop (1.41.1)
53
+ json (~> 2.3)
54
+ parallel (~> 1.10)
55
+ parser (>= 3.1.2.1)
56
+ rainbow (>= 2.2.2, < 4.0)
57
+ regexp_parser (>= 1.8, < 3.0)
58
+ rexml (>= 3.2.5, < 4.0)
59
+ rubocop-ast (>= 1.23.0, < 2.0)
60
+ ruby-progressbar (~> 1.7)
61
+ unicode-display_width (>= 1.4.0, < 3.0)
62
+ rubocop-ast (1.24.0)
63
+ parser (>= 3.1.1.0)
64
+ ruby-progressbar (1.11.0)
65
+ tzinfo (2.0.5)
66
+ concurrent-ruby (~> 1.0)
67
+ unicode-display_width (2.3.0)
68
+
69
+ PLATFORMS
70
+ arm64-darwin-22
71
+
72
+ DEPENDENCIES
73
+ html-pipeline-mrkdwn!
74
+ rake (~> 13.0)
75
+ rspec (~> 3.12.0)
76
+ rubocop (~> 1.21)
77
+
78
+ BUNDLED WITH
79
+ 2.3.26
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Jason Gorst
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,52 @@
1
+ # Html::Pipeline::Mrkdwn
2
+
3
+ An [HTML::Pipeline](https://github.com/gjtorikian/html-pipeline) filter for Slack's
4
+ [mrkdwn](https://api.slack.com/reference/surfaces/formatting#basics) markup language.
5
+
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'html-pipeline-mrkdwn'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install html-pipeline-mrkdwn
22
+
23
+ ## Usage
24
+
25
+ Example:
26
+
27
+ ```ruby
28
+ require 'html/pipeline'
29
+ require 'html/pipeline/mrkdwn'
30
+
31
+ filters = [
32
+ HTML::Pipeline::PlainTextInputFilter,
33
+ HTML::Pipeline::Mrkdwn
34
+ ]
35
+
36
+ pipeline = HTML::Pipeline.new filters
37
+
38
+ input = "*bold* will produce bold text"
39
+
40
+ result = pipeline.call(input)
41
+
42
+ puts result[:output].to_html
43
+ # => "<div>\n<strong>bold</strong> will produce bold text</div>"
44
+ ```
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jasongorst/html-pipeline-mrkdwn.
49
+
50
+ ## License
51
+
52
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ require "rubocop/rake_task"
7
+
8
+ RuboCop::RakeTask.new
9
+
10
+ RSpec::Core::RakeTask.new(:spec)
11
+
12
+ task :default => :spec
@@ -0,0 +1,205 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "html/pipeline"
4
+ require "gemoji"
5
+
6
+ module HTML
7
+ class Pipeline
8
+ # HTML Filter for converting Slack's `mrkdwn` markup language.
9
+ #https://api.slack.com/reference/surfaces/formatting#basics
10
+ #
11
+ # Context options:
12
+ # :emoji_image_tag - a Proc that returns an `img` tag for custom Emoji
13
+ # :slack_channels - a hash of Slack channel ids and channel names
14
+ # :slack_users - a hash of Slack user or bot ids and display names
15
+ class Mrkdwn < Filter
16
+ MULTILINE_CODE_PATTERN = /```(.+?)```/m.freeze
17
+
18
+ BLOCKQUOTE_PATTERN = /(^&gt;[^\n]*\n?)+/.freeze
19
+
20
+ LINE_BREAK_PATTERN = /\n/.freeze
21
+
22
+ EMOJI_PATTERN = /:([\w+-]+):/.freeze
23
+
24
+ MENTION_PATTERN = /
25
+ &lt;
26
+ ([@#!][a-z0-9][a-z0-9-]*)
27
+ &gt;
28
+ /ix.freeze
29
+
30
+ LINK_PATTERN = /
31
+ &lt;
32
+ ((?:http|mailto)[^|]+)
33
+ (?:\|(.+?))?
34
+ &gt;
35
+ /x.freeze
36
+
37
+ STYLE_PATTERN = /
38
+ ([`*_~])
39
+ (?=\S)(.+?)(?<=\S)
40
+ \1
41
+ /x.freeze
42
+
43
+ IGNORE_PARENTS = %w[pre code].to_set
44
+
45
+ ELEMENTS = {
46
+ multiline_code: %w[```],
47
+ blockquote: %w[&gt;],
48
+ line_break: %W[\n \r\n],
49
+ emoji: %w[:],
50
+ mention: %w[@ # !],
51
+ link: %w[&lt;],
52
+ style: %w[` * _ ~]
53
+ }.freeze
54
+
55
+ def initialize(doc, context = nil, result = nil)
56
+ super(doc, context, result)
57
+
58
+ @emoji_image_tag = ->(emoji) { emoji }
59
+ @slack_channels = {}
60
+ @slack_users = {}
61
+
62
+ @emoji_image_tag = @context[:emoji_image_tag] if @context[:emoji_image_tag]
63
+ @slack_channels = @context[:slack_channels] if @context[:slack_channels]
64
+ @slack_users = @context[:slack_users] if @context[:slack_users]
65
+ end
66
+
67
+ def call
68
+ ELEMENTS.each do |element, includes|
69
+ process_text_nodes(includes) { |content| call_filter(element, content) }
70
+ end
71
+
72
+ doc
73
+ end
74
+
75
+ def validate
76
+ if context[:emoji_image_tag] && !context[:emoji_image_tag].is_a?(Proc)
77
+ raise ArgumentError,
78
+ "context[:emoji_image_tag] should return a Proc that takes an Emoji object as in the 'gemoji' gem."
79
+ end
80
+
81
+ if context[:slack_channels] && !context[:slack_channels].is_a?(Hash)
82
+ raise ArgumentError,
83
+ "context[:slack_channels] should return a Hash whose keys are Slack channel ids and values are their names."
84
+ end
85
+
86
+ if context[:slack_users] && !context[:slack_users].is_a?(Hash)
87
+ raise ArgumentError,
88
+ "context[:slack_users] should return a Hash whose keys are Slack user or bot ids and values are their display names."
89
+ end
90
+ end
91
+
92
+ private
93
+
94
+ def process_text_nodes(includes)
95
+ doc.search(".//text()").each do |node|
96
+ content = node.to_html
97
+ next unless includes.any? { |str| content.include?(str) }
98
+ next if has_ancestor?(node, IGNORE_PARENTS)
99
+
100
+ html = yield content
101
+ next if html == content
102
+
103
+ node.replace(html)
104
+ end
105
+ end
106
+
107
+ def call_filter(sym, content)
108
+ method = "#{sym}_filter".to_sym
109
+ send method, content
110
+ end
111
+
112
+ def multiline_code_filter(content)
113
+ content.gsub MULTILINE_CODE_PATTERN do
114
+ text = Regexp.last_match[1].chomp
115
+
116
+ "<pre>#{text}</pre>"
117
+ end
118
+ end
119
+
120
+ def blockquote_filter(content)
121
+ content.gsub BLOCKQUOTE_PATTERN do
122
+ text = Regexp.last_match[0].chomp
123
+ text.gsub!(/^&gt;\s*/, "")
124
+
125
+ "<blockquote>#{blockquote_filter(text)}</blockquote>"
126
+ end
127
+ end
128
+
129
+ def line_break_filter(content)
130
+ content.gsub(LINE_BREAK_PATTERN, "<br>")
131
+ end
132
+
133
+ def emoji_filter(content)
134
+ content.gsub(EMOJI_PATTERN) do |match|
135
+ emoji = Emoji.find_by_alias(Regexp.last_match[1])
136
+
137
+ if emoji
138
+ emoji.raw || context.dig(:emoji_image_tag)&.call(emoji) || match
139
+ else
140
+ match
141
+ end
142
+ end
143
+ end
144
+
145
+ def mention_filter(content)
146
+ content.gsub MENTION_PATTERN do |match|
147
+ mention = Regexp.last_match[1]
148
+
149
+ (text, klass, prefix) =
150
+ case mention
151
+ when /\A#(C.+)\Z/ # slack channel
152
+ [context.dig(:slack_channels, Regexp.last_match[1]) || Regexp.last_match[1], "channel", "#"]
153
+
154
+ when /\A@([UB].+)\Z/ # slack user or bot
155
+ [context.dig(:slack_users, Regexp.last_match[1]) || Regexp.last_match[1], "user", "@"]
156
+
157
+ when /\A!(here|channel|everyone)\Z/ # special mention
158
+ [Regexp.last_match[1], "mention", "@"]
159
+ else
160
+ nil
161
+ end
162
+
163
+ if text
164
+ "<span class=\"#{klass}\">#{prefix}#{text}</span>"
165
+ else
166
+ match
167
+ end
168
+ end
169
+ end
170
+
171
+ def link_filter(content)
172
+ content.gsub LINK_PATTERN do
173
+ link = Regexp.last_match[1]
174
+ text = Regexp.last_match[2] || link
175
+
176
+ "<a class=\"link\" href=\"#{link}\">#{text}</a>"
177
+ end
178
+ end
179
+
180
+ def style_filter(content)
181
+ content.gsub STYLE_PATTERN do |match|
182
+ style = Regexp.last_match[1]
183
+ text = Regexp.last_match[2]
184
+
185
+ if text&.match(/\A[#{style}]+\Z/) # ignore runs of repeated style characters
186
+ match
187
+ else
188
+ case style
189
+ when "`"
190
+ "<code>#{text}</code>"
191
+ when "*"
192
+ "<strong>#{style_filter(text)}</strong>"
193
+ when "_"
194
+ "<em>#{style_filter(text)}</em>"
195
+ when "~"
196
+ "<del>#{style_filter(text)}</del>"
197
+ else
198
+ nil
199
+ end
200
+ end
201
+ end
202
+ end
203
+ end
204
+ end
205
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module HTML
4
+ class Pipeline
5
+ class Mrkdwn < Filter
6
+ VERSION = "0.1.0"
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "mrkdwn/mrkdwn_filter"
4
+ require_relative "mrkdwn/version"
data/pipeline.rb ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ # A default pipeline for Slack messages using mrkdwn.
4
+
5
+ require "bundler/setup"
6
+ require "html/pipeline/mrkdwn"
7
+
8
+ PIPELINE = HTML::Pipeline.new [
9
+ HTML::Pipeline::PlainTextInputFilter,
10
+ HTML::Pipeline::Mrkdwn
11
+ ]
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: html-pipeline-mrkdwn
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jason Gorst
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-12-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: escape_utils
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.3.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.3.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: gemoji
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 4.0.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 4.0.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: html-pipeline
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.14.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.14.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.12.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.12.0
69
+ description: An HTML::Pipeline filter for Slack's mrkdwn markup language.
70
+ email: jason.gorst@me.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files: []
74
+ files:
75
+ - ".rspec"
76
+ - ".rubocop.yml"
77
+ - CHANGELOG.md
78
+ - CODE_OF_CONDUCT.md
79
+ - Gemfile
80
+ - Gemfile.lock
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - lib/html/pipeline/mrkdwn.rb
85
+ - lib/html/pipeline/mrkdwn/mrkdwn_filter.rb
86
+ - lib/html/pipeline/mrkdwn/version.rb
87
+ - pipeline.rb
88
+ homepage: https://github.com/jasongorst/html-pipeline-mrkdwn
89
+ licenses:
90
+ - MIT
91
+ metadata:
92
+ homepage_uri: https://github.com/jasongorst/html-pipeline-mrkdwn
93
+ source_code_uri: https://github.com/jasongorst/html-pipeline-mrkdwn.git
94
+ changelog_uri: https://github.com/jasongorst/html-pipeline-mrkdwn/blob/main/CHANGELOG.md
95
+ post_install_message:
96
+ rdoc_options: []
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 2.7.0
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubygems_version: 3.3.26
111
+ signing_key:
112
+ specification_version: 4
113
+ summary: An HTML::Pipeline filter for Slack's mrkdwn markup language.
114
+ test_files: []