markdown_views 3.3.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6942fee7095af6d2ca65e12a2ae0800bed73bbe0734fc1078f042df6484af12e
4
- data.tar.gz: b1958b068bba6947ed0ec03ac977b50c843b5eca4ab3d521d8fe68f5b03b1335
3
+ metadata.gz: '06487fe4e723f10bed4f034f24a63f12c273498f05a41fa0003622b66dce284c'
4
+ data.tar.gz: 1f0ad5c2a6d30cd968a21b635ae27a80999d2d03d53f393bccba9441e315c6df
5
5
  SHA512:
6
- metadata.gz: c200fb78f978e914f614088b3ccaeb35fe8d8b6f4c730978ce030ca8e52fa7dea6c35ff78a8ccd0f1af486805b2c97f3aac794fcad419f14e525814fa9687cbf
7
- data.tar.gz: f84e59dd16fb70a3bdebd17c35927af0d27d8e783b9518ba6741b2327d97409621d87dfd49ab403be12db1b213fee6706ad48ef8e78c778154acc9921f9e5bbe
6
+ metadata.gz: 83a114cad038fa5e4a88597ac8fbffb391f0d874cd2296c41c9edf290e11416d38b55a5ae35c3e62c9a3cd8df641f77ce3e63682416def3f4de26e31d02cbc17
7
+ data.tar.gz: 688786a5764b6d16fdfd1a6d66d38d8a600ae41a8ce8c1fdf6c137d27f9f4eda29ea849527f107da928a28e79b9d168f74952d4ba30f6e94a92b168bc3a9609b
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_views (3.3.0)
4
+ markdown_views (3.4.0)
5
5
  commonmarker (>= 1.1, < 3.0)
6
6
  rails (>= 6.1)
7
- rouge (~> 4)
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.18)
13
+ action_text-trix (2.1.19)
14
14
  railties
15
15
  actioncable (8.1.3)
16
16
  actionpack (= 8.1.3)
@@ -88,20 +88,20 @@ GEM
88
88
  base64 (0.3.0)
89
89
  bigdecimal (4.1.2)
90
90
  builder (3.3.0)
91
- commonmarker (2.8.1-aarch64-linux)
92
- commonmarker (2.8.1-arm64-darwin)
93
- commonmarker (2.8.1-x86_64-darwin)
94
- commonmarker (2.8.1-x86_64-linux)
95
- concurrent-ruby (1.3.6)
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.6)
97
+ crass (1.0.7)
98
98
  date (3.5.1)
99
99
  drb (2.2.3)
100
100
  erb (6.0.4)
101
101
  erubi (1.13.1)
102
- globalid (1.3.0)
102
+ globalid (1.4.0)
103
103
  activesupport (>= 6.1)
104
- i18n (1.14.8)
104
+ i18n (1.15.2)
105
105
  concurrent-ruby (~> 1.0)
106
106
  io-console (0.8.2)
107
107
  irb (1.18.0)
@@ -109,18 +109,18 @@ GEM
109
109
  prism (>= 1.3.0)
110
110
  rdoc (>= 4.0.0)
111
111
  reline (>= 0.4.2)
112
- json (2.19.4)
112
+ json (2.21.1)
113
113
  logger (1.7.0)
114
114
  loofah (2.25.1)
115
115
  crass (~> 1.0.2)
116
116
  nokogiri (>= 1.12.0)
117
- mail (2.9.0)
117
+ mail (2.9.1)
118
118
  logger
119
119
  mini_mime (>= 0.1.1)
120
120
  net-imap
121
121
  net-pop
122
122
  net-smtp
123
- marcel (1.1.0)
123
+ marcel (1.2.1)
124
124
  mini_mime (1.1.5)
125
125
  minitest (6.0.6)
126
126
  drb (~> 2.0)
@@ -130,7 +130,7 @@ GEM
130
130
  builder
131
131
  minitest (>= 5.0, < 7)
132
132
  ruby-progressbar
133
- net-imap (0.6.4)
133
+ net-imap (0.6.4.1)
134
134
  date
135
135
  net-protocol
136
136
  net-pop (0.1.2)
@@ -140,21 +140,18 @@ GEM
140
140
  net-smtp (0.5.1)
141
141
  net-protocol
142
142
  nio4r (2.7.5)
143
- nokogiri (1.19.3-aarch64-linux-gnu)
143
+ nokogiri (1.19.4-aarch64-linux-gnu)
144
144
  racc (~> 1.4)
145
- nokogiri (1.19.3-arm64-darwin)
145
+ nokogiri (1.19.4-arm64-darwin)
146
146
  racc (~> 1.4)
147
- nokogiri (1.19.3-x86_64-darwin)
147
+ nokogiri (1.19.4-x86_64-darwin)
148
148
  racc (~> 1.4)
149
- nokogiri (1.19.3-x86_64-linux-gnu)
149
+ nokogiri (1.19.4-x86_64-linux-gnu)
150
150
  racc (~> 1.4)
151
- pp (0.6.3)
151
+ pp (0.6.4)
152
152
  prettyprint
153
153
  prettyprint (0.2.0)
154
154
  prism (1.9.0)
155
- psych (5.3.1)
156
- date
157
- stringio
158
155
  racc (1.8.1)
159
156
  rack (3.2.6)
160
157
  rack-session (2.1.2)
@@ -195,16 +192,22 @@ GEM
195
192
  tsort (>= 0.2)
196
193
  zeitwerk (~> 2.6)
197
194
  rake (13.4.2)
198
- rdoc (7.2.0)
195
+ rbs (4.0.3)
196
+ logger
197
+ prism (>= 1.6.0)
198
+ tsort
199
+ rdoc (8.0.0)
199
200
  erb
200
- psych (>= 4.0.0)
201
+ prism (>= 1.6.0)
202
+ rbs (>= 4.0.0)
201
203
  tsort
202
204
  reline (0.6.3)
203
205
  io-console (~> 0.5)
204
- rouge (4.7.0)
206
+ rouge (5.0.0)
207
+ strscan (~> 3.1)
205
208
  ruby-progressbar (1.13.0)
206
209
  securerandom (0.4.1)
207
- stringio (3.2.0)
210
+ strscan (3.1.8)
208
211
  thor (1.5.0)
209
212
  timeout (0.6.1)
210
213
  tsort (0.2.0)
@@ -212,11 +215,11 @@ GEM
212
215
  concurrent-ruby (~> 1.0)
213
216
  uri (1.1.1)
214
217
  useragent (0.16.11)
215
- websocket-driver (0.8.0)
218
+ websocket-driver (0.8.2)
216
219
  base64
217
220
  websocket-extensions (>= 0.1.0)
218
221
  websocket-extensions (0.1.5)
219
- zeitwerk (2.7.5)
222
+ zeitwerk (2.8.2)
220
223
 
221
224
  PLATFORMS
222
225
  aarch64-linux
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
+ }
@@ -1,3 +1,3 @@
1
1
  module MarkdownViews
2
- VERSION = '3.3.0'
2
+ VERSION = '3.4.0'
3
3
  end
@@ -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', '~> 4'
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
@@ -20,6 +20,7 @@ class ConfigTest < Minitest::Test
20
20
  multiline_block_quotes: false,
21
21
  math_dollars: false,
22
22
  math_code: false,
23
+ math_latex: false,
23
24
  shortcodes: false,
24
25
  wikilinks_title_before_pipe: false,
25
26
  wikilinks_title_after_pipe: false,
@@ -34,8 +35,8 @@ class ConfigTest < Minitest::Test
34
35
  insert: false,
35
36
  block_directive: false,
36
37
  }
38
+ expected.except! :math_latex if Commonmarker::VERSION < '2.9'
37
39
  expected.except! :header_id_prefix_in_href, :block_directive if Commonmarker::VERSION < '2.8'
38
- expected.except! :insert if Commonmarker::VERSION < '2.7'
39
40
  assert_equal expected, processed
40
41
  end
41
42
 
@@ -78,8 +79,9 @@ class ConfigTest < Minitest::Test
78
79
  prefer_fenced: false,
79
80
  tasklist_classes: false,
80
81
  compact_html: false,
82
+ alert_style: "specific",
81
83
  }
82
- expected.except! :compact_html if Commonmarker::VERSION < '2.7'
84
+ expected.except! :alert_style if Commonmarker::VERSION < '2.9'
83
85
  assert_equal expected, processed
84
86
  end
85
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.3.0
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