markdown_views 3.2.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +104 -97
- data/LICENSE.txt +1 -1
- data/Rakefile +1 -2
- data/app/assets/stylesheets/rouge.magritte.css +175 -0
- data/lib/markdown_views/config.rb +1 -0
- data/lib/markdown_views/version.rb +1 -1
- data/markdown_views.gemspec +1 -1
- data/test/config_test.rb +12 -1
- metadata +10 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '06487fe4e723f10bed4f034f24a63f12c273498f05a41fa0003622b66dce284c'
|
|
4
|
+
data.tar.gz: 1f0ad5c2a6d30cd968a21b635ae27a80999d2d03d53f393bccba9441e315c6df
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83a114cad038fa5e4a88597ac8fbffb391f0d874cd2296c41c9edf290e11416d38b55a5ae35c3e62c9a3cd8df641f77ce3e63682416def3f4de26e31d02cbc17
|
|
7
|
+
data.tar.gz: 688786a5764b6d16fdfd1a6d66d38d8a600ae41a8ce8c1fdf6c137d27f9f4eda29ea849527f107da928a28e79b9d168f74952d4ba30f6e94a92b168bc3a9609b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
markdown_views (3.
|
|
4
|
+
markdown_views (3.4.0)
|
|
5
5
|
commonmarker (>= 1.1, < 3.0)
|
|
6
6
|
rails (>= 6.1)
|
|
7
|
-
rouge (
|
|
7
|
+
rouge (>= 4, < 6)
|
|
8
8
|
securerandom
|
|
9
9
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
action_text-trix (2.1.
|
|
13
|
+
action_text-trix (2.1.19)
|
|
14
14
|
railties
|
|
15
|
-
actioncable (8.1.
|
|
16
|
-
actionpack (= 8.1.
|
|
17
|
-
activesupport (= 8.1.
|
|
15
|
+
actioncable (8.1.3)
|
|
16
|
+
actionpack (= 8.1.3)
|
|
17
|
+
activesupport (= 8.1.3)
|
|
18
18
|
nio4r (~> 2.0)
|
|
19
19
|
websocket-driver (>= 0.6.1)
|
|
20
20
|
zeitwerk (~> 2.6)
|
|
21
|
-
actionmailbox (8.1.
|
|
22
|
-
actionpack (= 8.1.
|
|
23
|
-
activejob (= 8.1.
|
|
24
|
-
activerecord (= 8.1.
|
|
25
|
-
activestorage (= 8.1.
|
|
26
|
-
activesupport (= 8.1.
|
|
21
|
+
actionmailbox (8.1.3)
|
|
22
|
+
actionpack (= 8.1.3)
|
|
23
|
+
activejob (= 8.1.3)
|
|
24
|
+
activerecord (= 8.1.3)
|
|
25
|
+
activestorage (= 8.1.3)
|
|
26
|
+
activesupport (= 8.1.3)
|
|
27
27
|
mail (>= 2.8.0)
|
|
28
|
-
actionmailer (8.1.
|
|
29
|
-
actionpack (= 8.1.
|
|
30
|
-
actionview (= 8.1.
|
|
31
|
-
activejob (= 8.1.
|
|
32
|
-
activesupport (= 8.1.
|
|
28
|
+
actionmailer (8.1.3)
|
|
29
|
+
actionpack (= 8.1.3)
|
|
30
|
+
actionview (= 8.1.3)
|
|
31
|
+
activejob (= 8.1.3)
|
|
32
|
+
activesupport (= 8.1.3)
|
|
33
33
|
mail (>= 2.8.0)
|
|
34
34
|
rails-dom-testing (~> 2.2)
|
|
35
|
-
actionpack (8.1.
|
|
36
|
-
actionview (= 8.1.
|
|
37
|
-
activesupport (= 8.1.
|
|
35
|
+
actionpack (8.1.3)
|
|
36
|
+
actionview (= 8.1.3)
|
|
37
|
+
activesupport (= 8.1.3)
|
|
38
38
|
nokogiri (>= 1.8.5)
|
|
39
39
|
rack (>= 2.2.4)
|
|
40
40
|
rack-session (>= 1.0.1)
|
|
@@ -42,36 +42,36 @@ GEM
|
|
|
42
42
|
rails-dom-testing (~> 2.2)
|
|
43
43
|
rails-html-sanitizer (~> 1.6)
|
|
44
44
|
useragent (~> 0.16)
|
|
45
|
-
actiontext (8.1.
|
|
45
|
+
actiontext (8.1.3)
|
|
46
46
|
action_text-trix (~> 2.1.15)
|
|
47
|
-
actionpack (= 8.1.
|
|
48
|
-
activerecord (= 8.1.
|
|
49
|
-
activestorage (= 8.1.
|
|
50
|
-
activesupport (= 8.1.
|
|
47
|
+
actionpack (= 8.1.3)
|
|
48
|
+
activerecord (= 8.1.3)
|
|
49
|
+
activestorage (= 8.1.3)
|
|
50
|
+
activesupport (= 8.1.3)
|
|
51
51
|
globalid (>= 0.6.0)
|
|
52
52
|
nokogiri (>= 1.8.5)
|
|
53
|
-
actionview (8.1.
|
|
54
|
-
activesupport (= 8.1.
|
|
53
|
+
actionview (8.1.3)
|
|
54
|
+
activesupport (= 8.1.3)
|
|
55
55
|
builder (~> 3.1)
|
|
56
56
|
erubi (~> 1.11)
|
|
57
57
|
rails-dom-testing (~> 2.2)
|
|
58
58
|
rails-html-sanitizer (~> 1.6)
|
|
59
|
-
activejob (8.1.
|
|
60
|
-
activesupport (= 8.1.
|
|
59
|
+
activejob (8.1.3)
|
|
60
|
+
activesupport (= 8.1.3)
|
|
61
61
|
globalid (>= 0.3.6)
|
|
62
|
-
activemodel (8.1.
|
|
63
|
-
activesupport (= 8.1.
|
|
64
|
-
activerecord (8.1.
|
|
65
|
-
activemodel (= 8.1.
|
|
66
|
-
activesupport (= 8.1.
|
|
62
|
+
activemodel (8.1.3)
|
|
63
|
+
activesupport (= 8.1.3)
|
|
64
|
+
activerecord (8.1.3)
|
|
65
|
+
activemodel (= 8.1.3)
|
|
66
|
+
activesupport (= 8.1.3)
|
|
67
67
|
timeout (>= 0.4.0)
|
|
68
|
-
activestorage (8.1.
|
|
69
|
-
actionpack (= 8.1.
|
|
70
|
-
activejob (= 8.1.
|
|
71
|
-
activerecord (= 8.1.
|
|
72
|
-
activesupport (= 8.1.
|
|
68
|
+
activestorage (8.1.3)
|
|
69
|
+
actionpack (= 8.1.3)
|
|
70
|
+
activejob (= 8.1.3)
|
|
71
|
+
activerecord (= 8.1.3)
|
|
72
|
+
activesupport (= 8.1.3)
|
|
73
73
|
marcel (~> 1.0)
|
|
74
|
-
activesupport (8.1.
|
|
74
|
+
activesupport (8.1.3)
|
|
75
75
|
base64
|
|
76
76
|
bigdecimal
|
|
77
77
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -84,50 +84,53 @@ GEM
|
|
|
84
84
|
securerandom (>= 0.3)
|
|
85
85
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
86
86
|
uri (>= 0.13.1)
|
|
87
|
-
ansi (1.
|
|
87
|
+
ansi (1.6.0)
|
|
88
88
|
base64 (0.3.0)
|
|
89
|
-
bigdecimal (4.
|
|
89
|
+
bigdecimal (4.1.2)
|
|
90
90
|
builder (3.3.0)
|
|
91
|
-
commonmarker (2.
|
|
92
|
-
commonmarker (2.
|
|
93
|
-
commonmarker (2.
|
|
94
|
-
commonmarker (2.
|
|
95
|
-
concurrent-ruby (1.3.
|
|
91
|
+
commonmarker (2.9.0-aarch64-linux)
|
|
92
|
+
commonmarker (2.9.0-arm64-darwin)
|
|
93
|
+
commonmarker (2.9.0-x86_64-darwin)
|
|
94
|
+
commonmarker (2.9.0-x86_64-linux)
|
|
95
|
+
concurrent-ruby (1.3.7)
|
|
96
96
|
connection_pool (3.0.2)
|
|
97
|
-
crass (1.0.
|
|
97
|
+
crass (1.0.7)
|
|
98
98
|
date (3.5.1)
|
|
99
99
|
drb (2.2.3)
|
|
100
|
-
erb (6.0.
|
|
100
|
+
erb (6.0.4)
|
|
101
101
|
erubi (1.13.1)
|
|
102
|
-
globalid (1.
|
|
102
|
+
globalid (1.4.0)
|
|
103
103
|
activesupport (>= 6.1)
|
|
104
|
-
i18n (1.
|
|
104
|
+
i18n (1.15.2)
|
|
105
105
|
concurrent-ruby (~> 1.0)
|
|
106
106
|
io-console (0.8.2)
|
|
107
|
-
irb (1.
|
|
107
|
+
irb (1.18.0)
|
|
108
108
|
pp (>= 0.6.0)
|
|
109
|
+
prism (>= 1.3.0)
|
|
109
110
|
rdoc (>= 4.0.0)
|
|
110
111
|
reline (>= 0.4.2)
|
|
111
|
-
json (2.
|
|
112
|
+
json (2.21.1)
|
|
112
113
|
logger (1.7.0)
|
|
113
|
-
loofah (2.25.
|
|
114
|
+
loofah (2.25.1)
|
|
114
115
|
crass (~> 1.0.2)
|
|
115
116
|
nokogiri (>= 1.12.0)
|
|
116
|
-
mail (2.9.
|
|
117
|
+
mail (2.9.1)
|
|
117
118
|
logger
|
|
118
119
|
mini_mime (>= 0.1.1)
|
|
119
120
|
net-imap
|
|
120
121
|
net-pop
|
|
121
122
|
net-smtp
|
|
122
|
-
marcel (1.1
|
|
123
|
+
marcel (1.2.1)
|
|
123
124
|
mini_mime (1.1.5)
|
|
124
|
-
minitest (
|
|
125
|
-
|
|
125
|
+
minitest (6.0.6)
|
|
126
|
+
drb (~> 2.0)
|
|
127
|
+
prism (~> 1.5)
|
|
128
|
+
minitest-reporters (1.8.0)
|
|
126
129
|
ansi
|
|
127
130
|
builder
|
|
128
|
-
minitest (>= 5.0)
|
|
131
|
+
minitest (>= 5.0, < 7)
|
|
129
132
|
ruby-progressbar
|
|
130
|
-
net-imap (0.6.
|
|
133
|
+
net-imap (0.6.4.1)
|
|
131
134
|
date
|
|
132
135
|
net-protocol
|
|
133
136
|
net-pop (0.1.2)
|
|
@@ -137,82 +140,86 @@ GEM
|
|
|
137
140
|
net-smtp (0.5.1)
|
|
138
141
|
net-protocol
|
|
139
142
|
nio4r (2.7.5)
|
|
140
|
-
nokogiri (1.19.
|
|
143
|
+
nokogiri (1.19.4-aarch64-linux-gnu)
|
|
141
144
|
racc (~> 1.4)
|
|
142
|
-
nokogiri (1.19.
|
|
145
|
+
nokogiri (1.19.4-arm64-darwin)
|
|
143
146
|
racc (~> 1.4)
|
|
144
|
-
nokogiri (1.19.
|
|
147
|
+
nokogiri (1.19.4-x86_64-darwin)
|
|
145
148
|
racc (~> 1.4)
|
|
146
|
-
nokogiri (1.19.
|
|
149
|
+
nokogiri (1.19.4-x86_64-linux-gnu)
|
|
147
150
|
racc (~> 1.4)
|
|
148
|
-
pp (0.6.
|
|
151
|
+
pp (0.6.4)
|
|
149
152
|
prettyprint
|
|
150
153
|
prettyprint (0.2.0)
|
|
151
|
-
|
|
152
|
-
date
|
|
153
|
-
stringio
|
|
154
|
+
prism (1.9.0)
|
|
154
155
|
racc (1.8.1)
|
|
155
|
-
rack (3.2.
|
|
156
|
-
rack-session (2.1.
|
|
156
|
+
rack (3.2.6)
|
|
157
|
+
rack-session (2.1.2)
|
|
157
158
|
base64 (>= 0.1.0)
|
|
158
159
|
rack (>= 3.0.0)
|
|
159
160
|
rack-test (2.2.0)
|
|
160
161
|
rack (>= 1.3)
|
|
161
162
|
rackup (2.3.1)
|
|
162
163
|
rack (>= 3)
|
|
163
|
-
rails (8.1.
|
|
164
|
-
actioncable (= 8.1.
|
|
165
|
-
actionmailbox (= 8.1.
|
|
166
|
-
actionmailer (= 8.1.
|
|
167
|
-
actionpack (= 8.1.
|
|
168
|
-
actiontext (= 8.1.
|
|
169
|
-
actionview (= 8.1.
|
|
170
|
-
activejob (= 8.1.
|
|
171
|
-
activemodel (= 8.1.
|
|
172
|
-
activerecord (= 8.1.
|
|
173
|
-
activestorage (= 8.1.
|
|
174
|
-
activesupport (= 8.1.
|
|
164
|
+
rails (8.1.3)
|
|
165
|
+
actioncable (= 8.1.3)
|
|
166
|
+
actionmailbox (= 8.1.3)
|
|
167
|
+
actionmailer (= 8.1.3)
|
|
168
|
+
actionpack (= 8.1.3)
|
|
169
|
+
actiontext (= 8.1.3)
|
|
170
|
+
actionview (= 8.1.3)
|
|
171
|
+
activejob (= 8.1.3)
|
|
172
|
+
activemodel (= 8.1.3)
|
|
173
|
+
activerecord (= 8.1.3)
|
|
174
|
+
activestorage (= 8.1.3)
|
|
175
|
+
activesupport (= 8.1.3)
|
|
175
176
|
bundler (>= 1.15.0)
|
|
176
|
-
railties (= 8.1.
|
|
177
|
+
railties (= 8.1.3)
|
|
177
178
|
rails-dom-testing (2.3.0)
|
|
178
179
|
activesupport (>= 5.0.0)
|
|
179
180
|
minitest
|
|
180
181
|
nokogiri (>= 1.6)
|
|
181
|
-
rails-html-sanitizer (1.
|
|
182
|
-
loofah (~> 2.
|
|
182
|
+
rails-html-sanitizer (1.7.0)
|
|
183
|
+
loofah (~> 2.25)
|
|
183
184
|
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
184
|
-
railties (8.1.
|
|
185
|
-
actionpack (= 8.1.
|
|
186
|
-
activesupport (= 8.1.
|
|
185
|
+
railties (8.1.3)
|
|
186
|
+
actionpack (= 8.1.3)
|
|
187
|
+
activesupport (= 8.1.3)
|
|
187
188
|
irb (~> 1.13)
|
|
188
189
|
rackup (>= 1.0.0)
|
|
189
190
|
rake (>= 12.2)
|
|
190
191
|
thor (~> 1.0, >= 1.2.2)
|
|
191
192
|
tsort (>= 0.2)
|
|
192
193
|
zeitwerk (~> 2.6)
|
|
193
|
-
rake (13.
|
|
194
|
-
|
|
194
|
+
rake (13.4.2)
|
|
195
|
+
rbs (4.0.3)
|
|
196
|
+
logger
|
|
197
|
+
prism (>= 1.6.0)
|
|
198
|
+
tsort
|
|
199
|
+
rdoc (8.0.0)
|
|
195
200
|
erb
|
|
196
|
-
|
|
201
|
+
prism (>= 1.6.0)
|
|
202
|
+
rbs (>= 4.0.0)
|
|
197
203
|
tsort
|
|
198
204
|
reline (0.6.3)
|
|
199
205
|
io-console (~> 0.5)
|
|
200
|
-
rouge (
|
|
206
|
+
rouge (5.0.0)
|
|
207
|
+
strscan (~> 3.1)
|
|
201
208
|
ruby-progressbar (1.13.0)
|
|
202
209
|
securerandom (0.4.1)
|
|
203
|
-
|
|
210
|
+
strscan (3.1.8)
|
|
204
211
|
thor (1.5.0)
|
|
205
|
-
timeout (0.6.
|
|
212
|
+
timeout (0.6.1)
|
|
206
213
|
tsort (0.2.0)
|
|
207
214
|
tzinfo (2.0.6)
|
|
208
215
|
concurrent-ruby (~> 1.0)
|
|
209
216
|
uri (1.1.1)
|
|
210
217
|
useragent (0.16.11)
|
|
211
|
-
websocket-driver (0.8.
|
|
218
|
+
websocket-driver (0.8.2)
|
|
212
219
|
base64
|
|
213
220
|
websocket-extensions (>= 0.1.0)
|
|
214
221
|
websocket-extensions (0.1.5)
|
|
215
|
-
zeitwerk (2.
|
|
222
|
+
zeitwerk (2.8.2)
|
|
216
223
|
|
|
217
224
|
PLATFORMS
|
|
218
225
|
aarch64-linux
|
|
@@ -222,7 +229,7 @@ PLATFORMS
|
|
|
222
229
|
|
|
223
230
|
DEPENDENCIES
|
|
224
231
|
markdown_views!
|
|
225
|
-
minitest (~>
|
|
232
|
+
minitest (~> 6)
|
|
226
233
|
minitest-reporters
|
|
227
234
|
rake
|
|
228
235
|
|
data/LICENSE.txt
CHANGED
data/Rakefile
CHANGED
|
@@ -4,7 +4,7 @@ require "rake/testtask"
|
|
|
4
4
|
task :generate_stylesheets do
|
|
5
5
|
%w( base16.dark base16.light base16.monokai.dark base16.monokai.light
|
|
6
6
|
base16.solarized.dark base16.solarized.light bw colorful
|
|
7
|
-
github.dark github.light gruvbox.dark gruvbox.light igorpro molokai
|
|
7
|
+
github.dark github.light gruvbox.dark gruvbox.light igorpro magritte molokai
|
|
8
8
|
monokai monokai.sublime pastie thankful_eyes tulip
|
|
9
9
|
).each do |theme|
|
|
10
10
|
`rougify style #{theme} --scope .rouge-highlight > app/assets/stylesheets/rouge.#{theme}.css`
|
|
@@ -16,7 +16,6 @@ Rake::TestTask.new(:test) do |t|
|
|
|
16
16
|
t.libs << "test"
|
|
17
17
|
t.libs << "lib"
|
|
18
18
|
t.test_files = FileList["test/**/*_test.rb"]
|
|
19
|
-
t.warning = false # rouge is very noisy
|
|
20
19
|
end
|
|
21
20
|
|
|
22
21
|
task :default => :test
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
.rouge-highlight table td { padding: 5px; }
|
|
2
|
+
.rouge-highlight table pre { margin: 0; }
|
|
3
|
+
.rouge-highlight {
|
|
4
|
+
color: #000707;
|
|
5
|
+
background-color: #f3ffff;
|
|
6
|
+
}
|
|
7
|
+
.rouge-highlight .gl {
|
|
8
|
+
color: #f3ffff;
|
|
9
|
+
background-color: #000707;
|
|
10
|
+
}
|
|
11
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
|
|
12
|
+
color: #006c6c;
|
|
13
|
+
font-style: italic;
|
|
14
|
+
}
|
|
15
|
+
.rouge-highlight .cp {
|
|
16
|
+
color: #920241;
|
|
17
|
+
font-weight: bold;
|
|
18
|
+
}
|
|
19
|
+
.rouge-highlight .err {
|
|
20
|
+
color: #f3ffff;
|
|
21
|
+
background-color: #f22700;
|
|
22
|
+
}
|
|
23
|
+
.rouge-highlight .gr {
|
|
24
|
+
color: #f22700;
|
|
25
|
+
font-weight: bold;
|
|
26
|
+
font-style: italic;
|
|
27
|
+
}
|
|
28
|
+
.rouge-highlight .k, .rouge-highlight .kd, .rouge-highlight .kv {
|
|
29
|
+
color: #19003a;
|
|
30
|
+
font-weight: bold;
|
|
31
|
+
}
|
|
32
|
+
.rouge-highlight .o, .rouge-highlight .ow {
|
|
33
|
+
color: #4c48fe;
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
}
|
|
36
|
+
.rouge-highlight .p, .rouge-highlight .pi {
|
|
37
|
+
color: #4c48fe;
|
|
38
|
+
}
|
|
39
|
+
.rouge-highlight .gd {
|
|
40
|
+
color: #f22700;
|
|
41
|
+
}
|
|
42
|
+
.rouge-highlight .gi {
|
|
43
|
+
color: #007500;
|
|
44
|
+
}
|
|
45
|
+
.rouge-highlight .ge {
|
|
46
|
+
font-style: italic;
|
|
47
|
+
}
|
|
48
|
+
.rouge-highlight .ges {
|
|
49
|
+
font-weight: bold;
|
|
50
|
+
font-style: italic;
|
|
51
|
+
}
|
|
52
|
+
.rouge-highlight .gs {
|
|
53
|
+
font-weight: bold;
|
|
54
|
+
}
|
|
55
|
+
.rouge-highlight .gt {
|
|
56
|
+
color: #000000;
|
|
57
|
+
background-color: #d8d9ff;
|
|
58
|
+
}
|
|
59
|
+
.rouge-highlight .kc {
|
|
60
|
+
color: #007500;
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
}
|
|
63
|
+
.rouge-highlight .kn {
|
|
64
|
+
color: #007500;
|
|
65
|
+
font-weight: bold;
|
|
66
|
+
}
|
|
67
|
+
.rouge-highlight .kp {
|
|
68
|
+
color: #007500;
|
|
69
|
+
font-weight: bold;
|
|
70
|
+
}
|
|
71
|
+
.rouge-highlight .kr {
|
|
72
|
+
color: #007500;
|
|
73
|
+
font-weight: bold;
|
|
74
|
+
}
|
|
75
|
+
.rouge-highlight .gh {
|
|
76
|
+
color: #007500;
|
|
77
|
+
font-weight: bold;
|
|
78
|
+
}
|
|
79
|
+
.rouge-highlight .gu {
|
|
80
|
+
color: #007500;
|
|
81
|
+
font-weight: bold;
|
|
82
|
+
}
|
|
83
|
+
.rouge-highlight .kt {
|
|
84
|
+
color: #920241;
|
|
85
|
+
font-weight: bold;
|
|
86
|
+
}
|
|
87
|
+
.rouge-highlight .no {
|
|
88
|
+
color: #920241;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
}
|
|
91
|
+
.rouge-highlight .nc {
|
|
92
|
+
color: #920241;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
.rouge-highlight .nd {
|
|
96
|
+
color: #920241;
|
|
97
|
+
font-weight: bold;
|
|
98
|
+
}
|
|
99
|
+
.rouge-highlight .nn {
|
|
100
|
+
color: #920241;
|
|
101
|
+
font-weight: bold;
|
|
102
|
+
}
|
|
103
|
+
.rouge-highlight .bp {
|
|
104
|
+
color: #920241;
|
|
105
|
+
font-weight: bold;
|
|
106
|
+
}
|
|
107
|
+
.rouge-highlight .ne {
|
|
108
|
+
color: #920241;
|
|
109
|
+
font-weight: bold;
|
|
110
|
+
}
|
|
111
|
+
.rouge-highlight .nl {
|
|
112
|
+
color: #840084;
|
|
113
|
+
font-weight: bold;
|
|
114
|
+
}
|
|
115
|
+
.rouge-highlight .nt {
|
|
116
|
+
color: #840084;
|
|
117
|
+
font-weight: bold;
|
|
118
|
+
}
|
|
119
|
+
.rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
|
|
120
|
+
color: #007500;
|
|
121
|
+
font-weight: bold;
|
|
122
|
+
}
|
|
123
|
+
.rouge-highlight .ld {
|
|
124
|
+
color: #007500;
|
|
125
|
+
font-weight: bold;
|
|
126
|
+
}
|
|
127
|
+
.rouge-highlight .ss {
|
|
128
|
+
color: #007500;
|
|
129
|
+
}
|
|
130
|
+
.rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .sr, .rouge-highlight .s1 {
|
|
131
|
+
color: #7c0000;
|
|
132
|
+
font-weight: bold;
|
|
133
|
+
}
|
|
134
|
+
.rouge-highlight .sa {
|
|
135
|
+
color: #19003a;
|
|
136
|
+
font-weight: bold;
|
|
137
|
+
}
|
|
138
|
+
.rouge-highlight .se {
|
|
139
|
+
color: #840084;
|
|
140
|
+
font-weight: bold;
|
|
141
|
+
}
|
|
142
|
+
.rouge-highlight .sc {
|
|
143
|
+
color: #840084;
|
|
144
|
+
font-weight: bold;
|
|
145
|
+
}
|
|
146
|
+
.rouge-highlight .si {
|
|
147
|
+
color: #840084;
|
|
148
|
+
font-weight: bold;
|
|
149
|
+
}
|
|
150
|
+
.rouge-highlight .nb {
|
|
151
|
+
font-weight: bold;
|
|
152
|
+
}
|
|
153
|
+
.rouge-highlight .ni {
|
|
154
|
+
color: #999999;
|
|
155
|
+
font-weight: bold;
|
|
156
|
+
}
|
|
157
|
+
.rouge-highlight .w {
|
|
158
|
+
color: #BBBBBB;
|
|
159
|
+
}
|
|
160
|
+
.rouge-highlight .go {
|
|
161
|
+
color: #19003a;
|
|
162
|
+
}
|
|
163
|
+
.rouge-highlight .nf, .rouge-highlight .fm {
|
|
164
|
+
color: #ff0089;
|
|
165
|
+
}
|
|
166
|
+
.rouge-highlight .py {
|
|
167
|
+
color: #ff0089;
|
|
168
|
+
}
|
|
169
|
+
.rouge-highlight .na {
|
|
170
|
+
color: #ff0089;
|
|
171
|
+
}
|
|
172
|
+
.rouge-highlight .nv, .rouge-highlight .vc, .rouge-highlight .vg, .rouge-highlight .vi, .rouge-highlight .vm {
|
|
173
|
+
color: #ff0089;
|
|
174
|
+
font-weight: bold;
|
|
175
|
+
}
|
data/markdown_views.gemspec
CHANGED
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
|
|
23
23
|
spec.add_dependency 'commonmarker', '>= 1.1', '< 3.0'
|
|
24
24
|
spec.add_dependency 'rails', '>= 6.1'
|
|
25
|
-
spec.add_dependency 'rouge', '
|
|
25
|
+
spec.add_dependency 'rouge', '>= 4', '< 6'
|
|
26
26
|
spec.add_dependency 'securerandom'
|
|
27
27
|
|
|
28
28
|
spec.add_development_dependency "minitest-reporters"
|
data/test/config_test.rb
CHANGED
|
@@ -12,6 +12,7 @@ class ConfigTest < Minitest::Test
|
|
|
12
12
|
tasklist: false,
|
|
13
13
|
superscript: false,
|
|
14
14
|
# header_ids: '',
|
|
15
|
+
header_id_prefix_in_href: false,
|
|
15
16
|
footnotes: false,
|
|
16
17
|
inline_footnotes: false,
|
|
17
18
|
description_lists: false,
|
|
@@ -19,6 +20,7 @@ class ConfigTest < Minitest::Test
|
|
|
19
20
|
multiline_block_quotes: false,
|
|
20
21
|
math_dollars: false,
|
|
21
22
|
math_code: false,
|
|
23
|
+
math_latex: false,
|
|
22
24
|
shortcodes: false,
|
|
23
25
|
wikilinks_title_before_pipe: false,
|
|
24
26
|
wikilinks_title_after_pipe: false,
|
|
@@ -30,7 +32,11 @@ class ConfigTest < Minitest::Test
|
|
|
30
32
|
alerts: false,
|
|
31
33
|
cjk_friendly_emphasis: true,
|
|
32
34
|
highlight: false,
|
|
35
|
+
insert: false,
|
|
36
|
+
block_directive: false,
|
|
33
37
|
}
|
|
38
|
+
expected.except! :math_latex if Commonmarker::VERSION < '2.9'
|
|
39
|
+
expected.except! :header_id_prefix_in_href, :block_directive if Commonmarker::VERSION < '2.8'
|
|
34
40
|
assert_equal expected, processed
|
|
35
41
|
end
|
|
36
42
|
|
|
@@ -42,7 +48,10 @@ class ConfigTest < Minitest::Test
|
|
|
42
48
|
relaxed_tasklist_matching: false,
|
|
43
49
|
relaxed_autolinks: false,
|
|
44
50
|
leave_footnote_definitions: false,
|
|
51
|
+
ignore_setext: false,
|
|
52
|
+
sourcepos_chars: false,
|
|
45
53
|
}
|
|
54
|
+
expected.except! :sourcepos_chars if Commonmarker::VERSION < '2.8'
|
|
46
55
|
assert_equal expected, processed
|
|
47
56
|
end
|
|
48
57
|
|
|
@@ -65,12 +74,14 @@ class ConfigTest < Minitest::Test
|
|
|
65
74
|
escape: false,
|
|
66
75
|
sourcepos: false,
|
|
67
76
|
escaped_char_spans: false,
|
|
68
|
-
ignore_setext: false,
|
|
69
77
|
ignore_empty_links: false,
|
|
70
78
|
gfm_quirks: false,
|
|
71
79
|
prefer_fenced: false,
|
|
72
80
|
tasklist_classes: false,
|
|
81
|
+
compact_html: false,
|
|
82
|
+
alert_style: "specific",
|
|
73
83
|
}
|
|
84
|
+
expected.except! :alert_style if Commonmarker::VERSION < '2.9'
|
|
74
85
|
assert_equal expected, processed
|
|
75
86
|
end
|
|
76
87
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: markdown_views
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thomas morgan
|
|
@@ -47,16 +47,22 @@ dependencies:
|
|
|
47
47
|
name: rouge
|
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
|
49
49
|
requirements:
|
|
50
|
-
- - "
|
|
50
|
+
- - ">="
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: '4'
|
|
53
|
+
- - "<"
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '6'
|
|
53
56
|
type: :runtime
|
|
54
57
|
prerelease: false
|
|
55
58
|
version_requirements: !ruby/object:Gem::Requirement
|
|
56
59
|
requirements:
|
|
57
|
-
- - "
|
|
60
|
+
- - ">="
|
|
58
61
|
- !ruby/object:Gem::Version
|
|
59
62
|
version: '4'
|
|
63
|
+
- - "<"
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '6'
|
|
60
66
|
- !ruby/object:Gem::Dependency
|
|
61
67
|
name: securerandom
|
|
62
68
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -126,6 +132,7 @@ files:
|
|
|
126
132
|
- app/assets/stylesheets/rouge.gruvbox.dark.css
|
|
127
133
|
- app/assets/stylesheets/rouge.gruvbox.light.css
|
|
128
134
|
- app/assets/stylesheets/rouge.igorpro.css
|
|
135
|
+
- app/assets/stylesheets/rouge.magritte.css
|
|
129
136
|
- app/assets/stylesheets/rouge.molokai.css
|
|
130
137
|
- app/assets/stylesheets/rouge.monokai.css
|
|
131
138
|
- app/assets/stylesheets/rouge.monokai.sublime.css
|