thredded-markdown_katex 0.4.2 → 1.0.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9c57df28a8f7c67c86947f47ea8454e289e96a0f6d1530cd708b591ffdd534d
|
4
|
+
data.tar.gz: 34d28287bbe6d7a867ec0105eef5c1f861b65c96130219642df1e092fbd3187c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2db77b36cd305acf6e83866536803a8d3bf72426a12b4aa29b4d4d0cd4dae64929abfaf5d9cdd852f4304c42f48d0ea24bea7cd1d2e25842f548da0d2938c76
|
7
|
+
data.tar.gz: b334cd3ca2e9cde5f9a37b7277d66d613044ce952d58e6b7c99dbf89d8e98508c51507f08079ed17515756a8a0f05dc5bd942daef580c64d802b41b224224456
|
@@ -7,21 +7,17 @@ module Thredded
|
|
7
7
|
desc 'Installs Thredded Katex plugin.'
|
8
8
|
public_task :install
|
9
9
|
|
10
|
-
def install
|
10
|
+
def install
|
11
11
|
%w[application.scss _deps.scss].each do |scss_file|
|
12
12
|
scss_path = File.join('app', 'assets', 'stylesheets', scss_file)
|
13
13
|
next unless File.exist? scss_path
|
14
14
|
|
15
|
-
append_to_file scss_path, "\n
|
15
|
+
append_to_file scss_path, "\n@import \"_katex\";\n"
|
16
16
|
end
|
17
17
|
sass_path = 'app/assets/stylesheets/application.sass'
|
18
|
-
if File.exist? sass_path
|
19
|
-
append_to_file sass_path, "\n" + '@import "_katex"' + "\n"
|
20
|
-
end
|
18
|
+
append_to_file sass_path, "\n@import \"_katex\"\n" if File.exist? sass_path
|
21
19
|
css_path = 'app/assets/stylesheets/application.css'
|
22
|
-
if File.exist? css_path
|
23
|
-
append_to_file css_path, "\n" + '//= require katex' + "\n"
|
24
|
-
end
|
20
|
+
append_to_file css_path, "\n//= require katex\n" if File.exist? css_path
|
25
21
|
end
|
26
22
|
end
|
27
23
|
end
|
@@ -7,7 +7,7 @@ module Thredded
|
|
7
7
|
module Kramdown
|
8
8
|
# The KaTeX converter engine for Kramdown.
|
9
9
|
module KatexConverter
|
10
|
-
# rubocop:disable Metrics/
|
10
|
+
# rubocop:disable Metrics/MethodLength, Naming/MethodParameterName
|
11
11
|
|
12
12
|
def self.call(converter, el, opts)
|
13
13
|
display_mode = el.options[:category] == :block
|
@@ -25,7 +25,7 @@ module Thredded
|
|
25
25
|
result = "#{' ' * opts[:indent]}#{result}\n" if display_mode
|
26
26
|
result
|
27
27
|
end
|
28
|
-
# rubocop:enable Metrics/
|
28
|
+
# rubocop:enable Metrics/MethodLength, Naming/MethodParameterName
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thredded-markdown_katex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Mazovetskiy
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katex
|
@@ -84,16 +84,44 @@ dependencies:
|
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 1.22.1
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 1.22.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.6.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.6.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.5.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.5.0
|
97
125
|
- !ruby/object:Gem::Dependency
|
98
126
|
name: simplecov
|
99
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,23 +172,23 @@ homepage: https://github.com/thredded/thredded-markdown_katex
|
|
144
172
|
licenses:
|
145
173
|
- MIT
|
146
174
|
metadata: {}
|
147
|
-
post_install_message:
|
175
|
+
post_install_message:
|
148
176
|
rdoc_options: []
|
149
177
|
require_paths:
|
150
178
|
- lib
|
151
179
|
required_ruby_version: !ruby/object:Gem::Requirement
|
152
180
|
requirements:
|
153
|
-
- - "
|
181
|
+
- - ">="
|
154
182
|
- !ruby/object:Gem::Version
|
155
|
-
version: '2.
|
183
|
+
version: '2.5'
|
156
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
185
|
requirements:
|
158
186
|
- - ">="
|
159
187
|
- !ruby/object:Gem::Version
|
160
188
|
version: '0'
|
161
189
|
requirements: []
|
162
|
-
rubygems_version: 3.
|
163
|
-
signing_key:
|
190
|
+
rubygems_version: 3.2.32
|
191
|
+
signing_key:
|
164
192
|
specification_version: 4
|
165
193
|
summary: Adds TeX math support to Thredded markup via KaTeX.
|
166
194
|
test_files: []
|