markdown_views 2.4.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +97 -91
  3. data/README.md +17 -11
  4. data/Rakefile +5 -5
  5. data/app/assets/stylesheets/rouge.base16.dark.css +43 -30
  6. data/app/assets/stylesheets/rouge.base16.light.css +42 -29
  7. data/app/assets/stylesheets/rouge.base16.monokai.dark.css +16 -3
  8. data/app/assets/stylesheets/rouge.base16.monokai.light.css +16 -3
  9. data/app/assets/stylesheets/rouge.base16.solarized.dark.css +16 -3
  10. data/app/assets/stylesheets/rouge.base16.solarized.light.css +16 -3
  11. data/app/assets/stylesheets/rouge.bw.css +70 -0
  12. data/app/assets/stylesheets/rouge.colorful.css +12 -4
  13. data/app/assets/stylesheets/rouge.github.dark.css +116 -0
  14. data/app/assets/stylesheets/rouge.github.light.css +116 -0
  15. data/app/assets/stylesheets/rouge.gruvbox.dark.css +16 -3
  16. data/app/assets/stylesheets/rouge.gruvbox.light.css +16 -3
  17. data/app/assets/stylesheets/rouge.igorpro.css +15 -2
  18. data/app/assets/stylesheets/rouge.molokai.css +8 -5
  19. data/app/assets/stylesheets/rouge.monokai.css +12 -5
  20. data/app/assets/stylesheets/rouge.monokai.sublime.css +23 -7
  21. data/app/assets/stylesheets/rouge.pastie.css +13 -5
  22. data/app/assets/stylesheets/rouge.thankful_eyes.css +13 -6
  23. data/app/assets/stylesheets/rouge.tulip.css +13 -6
  24. data/lib/markdown_views/config.rb +23 -7
  25. data/lib/markdown_views/handler.rb +0 -21
  26. data/lib/markdown_views/renderer.rb +24 -7
  27. data/lib/markdown_views/version.rb +1 -1
  28. data/lib/markdown_views.rb +2 -5
  29. data/markdown_views.gemspec +6 -3
  30. data/test/config_test.rb +70 -0
  31. data/test/render_test.rb +50 -0
  32. data/test/strip_comments_test.rb +0 -6
  33. data/test/test_helper.rb +16 -0
  34. metadata +34 -20
  35. data/app/assets/stylesheets/rouge.github.css +0 -209
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 856a7600f57c402af8e899bb6444dc4776380b66e260c6673b849277f8d7b480
4
- data.tar.gz: 953208eb9aee28ed0b542236ad41f33429417c458e452eb202a9d1d386e95655
3
+ metadata.gz: 4bfc0f4474969a1bca917f425c0679cafea811519da5a5eff4739b9b82d24e10
4
+ data.tar.gz: ffa60b28850283d6c9a81311c1b96fa429dc8ff23989124cbdd3a074688e7528
5
5
  SHA512:
6
- metadata.gz: 855af2f67b0817c791ea31b8450bbd80734019d71e79d00ebcdf1bf0b6b20d3fc048493af2153adf05907bf19f096c276e9a31415b227c93c4431836c7d31542
7
- data.tar.gz: 816bf8266bf026afdfa92017155d61b6ef0665a0d3e496522b432efb7d33e9d65e30b2358f585e2958d18764e35f541b45a7cbd01882c4505e1c87766fdb5189
6
+ metadata.gz: f81b58690564e04a796200bff60a320a5f33c4efeadfdd8b713a53a7072e33040829a3753b3048d86ddfcdb79ef4589ed9bfbe51d8f7dc581808b155b44af563
7
+ data.tar.gz: 59ceeed4dcec3f1a99c4ce512693385fda0a5deee6c4af82d5fdb5c4850d8a9a027ae648a8e41ead568a33fbbd4eba0d89a7e6e31a9ec6c2ddc47ff7cdbf6d36
data/Gemfile.lock CHANGED
@@ -1,74 +1,74 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_views (2.4.1)
5
- commonmarker (>= 0.18.2, < 0.24)
6
- rails (>= 5.0, < 8.1)
7
- rouge (>= 3.3, < 5.0)
4
+ markdown_views (3.1.0)
5
+ commonmarker (>= 1.1, < 3.0)
6
+ rails (>= 6.1, < 8.1)
7
+ rouge (~> 4)
8
+ securerandom
8
9
 
9
10
  GEM
10
11
  remote: https://rubygems.org/
11
12
  specs:
12
- actioncable (7.2.2)
13
- actionpack (= 7.2.2)
14
- activesupport (= 7.2.2)
13
+ actioncable (8.0.1)
14
+ actionpack (= 8.0.1)
15
+ activesupport (= 8.0.1)
15
16
  nio4r (~> 2.0)
16
17
  websocket-driver (>= 0.6.1)
17
18
  zeitwerk (~> 2.6)
18
- actionmailbox (7.2.2)
19
- actionpack (= 7.2.2)
20
- activejob (= 7.2.2)
21
- activerecord (= 7.2.2)
22
- activestorage (= 7.2.2)
23
- activesupport (= 7.2.2)
19
+ actionmailbox (8.0.1)
20
+ actionpack (= 8.0.1)
21
+ activejob (= 8.0.1)
22
+ activerecord (= 8.0.1)
23
+ activestorage (= 8.0.1)
24
+ activesupport (= 8.0.1)
24
25
  mail (>= 2.8.0)
25
- actionmailer (7.2.2)
26
- actionpack (= 7.2.2)
27
- actionview (= 7.2.2)
28
- activejob (= 7.2.2)
29
- activesupport (= 7.2.2)
26
+ actionmailer (8.0.1)
27
+ actionpack (= 8.0.1)
28
+ actionview (= 8.0.1)
29
+ activejob (= 8.0.1)
30
+ activesupport (= 8.0.1)
30
31
  mail (>= 2.8.0)
31
32
  rails-dom-testing (~> 2.2)
32
- actionpack (7.2.2)
33
- actionview (= 7.2.2)
34
- activesupport (= 7.2.2)
33
+ actionpack (8.0.1)
34
+ actionview (= 8.0.1)
35
+ activesupport (= 8.0.1)
35
36
  nokogiri (>= 1.8.5)
36
- racc
37
- rack (>= 2.2.4, < 3.2)
37
+ rack (>= 2.2.4)
38
38
  rack-session (>= 1.0.1)
39
39
  rack-test (>= 0.6.3)
40
40
  rails-dom-testing (~> 2.2)
41
41
  rails-html-sanitizer (~> 1.6)
42
42
  useragent (~> 0.16)
43
- actiontext (7.2.2)
44
- actionpack (= 7.2.2)
45
- activerecord (= 7.2.2)
46
- activestorage (= 7.2.2)
47
- activesupport (= 7.2.2)
43
+ actiontext (8.0.1)
44
+ actionpack (= 8.0.1)
45
+ activerecord (= 8.0.1)
46
+ activestorage (= 8.0.1)
47
+ activesupport (= 8.0.1)
48
48
  globalid (>= 0.6.0)
49
49
  nokogiri (>= 1.8.5)
50
- actionview (7.2.2)
51
- activesupport (= 7.2.2)
50
+ actionview (8.0.1)
51
+ activesupport (= 8.0.1)
52
52
  builder (~> 3.1)
53
53
  erubi (~> 1.11)
54
54
  rails-dom-testing (~> 2.2)
55
55
  rails-html-sanitizer (~> 1.6)
56
- activejob (7.2.2)
57
- activesupport (= 7.2.2)
56
+ activejob (8.0.1)
57
+ activesupport (= 8.0.1)
58
58
  globalid (>= 0.3.6)
59
- activemodel (7.2.2)
60
- activesupport (= 7.2.2)
61
- activerecord (7.2.2)
62
- activemodel (= 7.2.2)
63
- activesupport (= 7.2.2)
59
+ activemodel (8.0.1)
60
+ activesupport (= 8.0.1)
61
+ activerecord (8.0.1)
62
+ activemodel (= 8.0.1)
63
+ activesupport (= 8.0.1)
64
64
  timeout (>= 0.4.0)
65
- activestorage (7.2.2)
66
- actionpack (= 7.2.2)
67
- activejob (= 7.2.2)
68
- activerecord (= 7.2.2)
69
- activesupport (= 7.2.2)
65
+ activestorage (8.0.1)
66
+ actionpack (= 8.0.1)
67
+ activejob (= 8.0.1)
68
+ activerecord (= 8.0.1)
69
+ activesupport (= 8.0.1)
70
70
  marcel (~> 1.0)
71
- activesupport (7.2.2)
71
+ activesupport (8.0.1)
72
72
  base64
73
73
  benchmark (>= 0.3)
74
74
  bigdecimal
@@ -80,28 +80,30 @@ GEM
80
80
  minitest (>= 5.1)
81
81
  securerandom (>= 0.3)
82
82
  tzinfo (~> 2.0, >= 2.0.5)
83
+ uri (>= 0.13.1)
83
84
  ansi (1.5.0)
84
85
  base64 (0.2.0)
85
- benchmark (0.3.0)
86
- bigdecimal (3.1.8)
86
+ benchmark (0.4.0)
87
+ bigdecimal (3.1.9)
87
88
  builder (3.3.0)
88
- commonmarker (0.23.10)
89
- concurrent-ruby (1.3.4)
90
- connection_pool (2.4.1)
89
+ commonmarker (2.0.2.1)
90
+ rb_sys (~> 0.9)
91
+ concurrent-ruby (1.3.5)
92
+ connection_pool (2.5.0)
91
93
  crass (1.0.6)
92
- date (3.4.0)
94
+ date (3.4.1)
93
95
  drb (2.2.1)
94
- erubi (1.13.0)
96
+ erubi (1.13.1)
95
97
  globalid (1.2.1)
96
98
  activesupport (>= 6.1)
97
99
  i18n (1.14.6)
98
100
  concurrent-ruby (~> 1.0)
99
- io-console (0.7.2)
100
- irb (1.14.1)
101
+ io-console (0.8.0)
102
+ irb (1.14.3)
101
103
  rdoc (>= 4.0.0)
102
104
  reline (>= 0.4.2)
103
- logger (1.6.1)
104
- loofah (2.23.1)
105
+ logger (1.6.5)
106
+ loofah (2.24.0)
105
107
  crass (~> 1.0.2)
106
108
  nokogiri (>= 1.12.0)
107
109
  mail (2.8.1)
@@ -111,81 +113,85 @@ GEM
111
113
  net-smtp
112
114
  marcel (1.0.4)
113
115
  mini_mime (1.1.5)
114
- mini_portile2 (2.8.7)
115
- minitest (5.25.1)
116
+ mini_portile2 (2.8.8)
117
+ minitest (5.25.4)
116
118
  minitest-reporters (1.7.1)
117
119
  ansi
118
120
  builder
119
121
  minitest (>= 5.0)
120
122
  ruby-progressbar
121
- net-imap (0.5.0)
123
+ net-imap (0.5.5)
122
124
  date
123
125
  net-protocol
124
126
  net-pop (0.1.2)
127
+ net-protocol
125
128
  net-protocol (0.2.2)
126
129
  timeout
127
130
  net-smtp (0.5.0)
128
131
  net-protocol
129
132
  nio4r (2.7.4)
130
- nokogiri (1.16.7)
133
+ nokogiri (1.18.1)
131
134
  mini_portile2 (~> 2.8.2)
132
135
  racc (~> 1.4)
133
- psych (5.1.2)
136
+ psych (5.2.3)
137
+ date
134
138
  stringio
135
139
  racc (1.8.1)
136
140
  rack (3.1.8)
137
- rack-session (2.0.0)
141
+ rack-session (2.1.0)
142
+ base64 (>= 0.1.0)
138
143
  rack (>= 3.0.0)
139
- rack-test (2.1.0)
144
+ rack-test (2.2.0)
140
145
  rack (>= 1.3)
141
- rackup (2.1.0)
146
+ rackup (2.2.1)
142
147
  rack (>= 3)
143
- webrick (~> 1.8)
144
- rails (7.2.2)
145
- actioncable (= 7.2.2)
146
- actionmailbox (= 7.2.2)
147
- actionmailer (= 7.2.2)
148
- actionpack (= 7.2.2)
149
- actiontext (= 7.2.2)
150
- actionview (= 7.2.2)
151
- activejob (= 7.2.2)
152
- activemodel (= 7.2.2)
153
- activerecord (= 7.2.2)
154
- activestorage (= 7.2.2)
155
- activesupport (= 7.2.2)
148
+ rails (8.0.1)
149
+ actioncable (= 8.0.1)
150
+ actionmailbox (= 8.0.1)
151
+ actionmailer (= 8.0.1)
152
+ actionpack (= 8.0.1)
153
+ actiontext (= 8.0.1)
154
+ actionview (= 8.0.1)
155
+ activejob (= 8.0.1)
156
+ activemodel (= 8.0.1)
157
+ activerecord (= 8.0.1)
158
+ activestorage (= 8.0.1)
159
+ activesupport (= 8.0.1)
156
160
  bundler (>= 1.15.0)
157
- railties (= 7.2.2)
161
+ railties (= 8.0.1)
158
162
  rails-dom-testing (2.2.0)
159
163
  activesupport (>= 5.0.0)
160
164
  minitest
161
165
  nokogiri (>= 1.6)
162
- rails-html-sanitizer (1.6.0)
166
+ rails-html-sanitizer (1.6.2)
163
167
  loofah (~> 2.21)
164
- nokogiri (~> 1.14)
165
- railties (7.2.2)
166
- actionpack (= 7.2.2)
167
- activesupport (= 7.2.2)
168
+ 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)
169
+ railties (8.0.1)
170
+ actionpack (= 8.0.1)
171
+ activesupport (= 8.0.1)
168
172
  irb (~> 1.13)
169
173
  rackup (>= 1.0.0)
170
174
  rake (>= 12.2)
171
175
  thor (~> 1.0, >= 1.2.2)
172
176
  zeitwerk (~> 2.6)
173
177
  rake (13.2.1)
174
- rdoc (6.7.0)
178
+ rb_sys (0.9.108)
179
+ rdoc (6.11.0)
175
180
  psych (>= 4.0.0)
176
- reline (0.5.10)
181
+ reline (0.6.0)
177
182
  io-console (~> 0.5)
178
- rouge (4.4.0)
183
+ rouge (4.5.1)
179
184
  ruby-progressbar (1.13.0)
180
- securerandom (0.3.1)
181
- stringio (3.1.1)
185
+ securerandom (0.4.1)
186
+ stringio (3.1.2)
182
187
  thor (1.3.2)
183
- timeout (0.4.1)
188
+ timeout (0.4.3)
184
189
  tzinfo (2.0.6)
185
190
  concurrent-ruby (~> 1.0)
186
- useragent (0.16.10)
187
- webrick (1.9.0)
188
- websocket-driver (0.7.6)
191
+ uri (1.0.2)
192
+ useragent (0.16.11)
193
+ websocket-driver (0.7.7)
194
+ base64
189
195
  websocket-extensions (>= 0.1.0)
190
196
  websocket-extensions (0.1.5)
191
197
  zeitwerk (2.7.1)
@@ -199,4 +205,4 @@ DEPENDENCIES
199
205
  rake
200
206
 
201
207
  BUNDLED WITH
202
- 2.5.11
208
+ 2.5.22
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MarkdownViews
2
2
 
3
- MarkdownViews enables Rails 5-8+ to process .md templates as part of `app/views/`, with optional preprocessing of ERB, HAML, etc. A `markdown()` helper is also provided for when you need Markdown for only part of a view.
3
+ MarkdownViews enables Rails to process .md templates as part of `app/views/`, with optional preprocessing of ERB, HAML, etc. A `markdown()` helper is also provided for when you need Markdown for only part of a view.
4
4
 
5
5
  It uses CommonMarker for markdown processing and Rouge for syntax highlighting.
6
6
 
@@ -44,16 +44,16 @@ By default, all .md files are preprocessed with ERB (making them effectively .md
44
44
 
45
45
  CommonMarker's rendering can also be configured. See [CommonMarker's documentation](https://github.com/gjtorikian/commonmarker#options-and-plugins) for available options.
46
46
 
47
- MarkdownViews.parsing_opts -= %i(UNSAFE)
47
+ MarkdownViews.parsing_opts.merge! smart: false
48
48
 
49
- MarkdownViews.rendering_opts -= %i(UNSAFE TABLE_PREFER_STYLE_ATTRIBUTES)
49
+ MarkdownViews.rendering_opts.merge! unsafe: false
50
50
 
51
- MarkdownViews.extensions -= %i(autolink)
51
+ MarkdownViews.extensions.merge! tasklist: true
52
52
 
53
53
  Likewise, Rouge can be configured:
54
54
 
55
55
  # Use inline formatting:
56
- MarkdownViews.rouge_opts.merge! formatter: Rouge::Formatters::HTMLInline.new('pastie')
56
+ MarkdownViews.rouge_opts.merge! formatter: Rouge::Formatters::HTMLInline.new('monokai')
57
57
 
58
58
  # Enable line numbers:
59
59
  MarkdownViews.rouge_opts.merge!(
@@ -81,15 +81,16 @@ And then execute:
81
81
 
82
82
  ## Gem versions
83
83
 
84
- The 0.x series used RedCarpet and CodeRay.
85
- (There was no 1.x series.)
86
- The 2.x series uses CommonMarker and Rouge.
84
+ The 3.x series uses CommonMarker 1.x or 2.x and Rouge. It is compatible with Rails 6.1-8+.
85
+ The 2.x series uses CommonMarker 0.x and Rouge. It is compatible with Rails 5.0-8.0.
87
86
 
88
- #### Upgrading from 0.x to 2.x
87
+ #### Upgrading from 2.x to 3.x
89
88
 
90
- The configuration options have changed. The defaults are roughly the same as before. However, if you had customized them previously, then it will need to be revisited.
89
+ CommonMarker 1.x swapped out the underlying parser. While the rendered markdown output is very similar, the configuration flags were reworked. This gem's defaults are roughly the same as before. However, if your configuration was previously customized, it will need to be updated.
91
90
 
92
- Similarly, the provided stylesheets for syntax highlighting have been changed. If you were importing the 'coderay' stylesheet before, then a new stylesheet will need to be selected. Try 'rouge.colorful' or one of the others included in app/assets/stylesheets.
91
+ CommonMarker 1's new syntax highlighting is not used, with preference instead given to Rouge. This preserves rendering compatibility, including existing stylesheets.
92
+
93
+ The stylesheets were refreshed from Rouge 4.4 which corrects a few missing CSS selectors. The github stylesheet was also renamed from `rouge.github` to `rouge.github.light`.
93
94
 
94
95
 
95
96
  ## Contributing
@@ -99,3 +100,8 @@ Similarly, the provided stylesheets for syntax highlighting have been changed. I
99
100
  3. Commit your changes (`git commit -am 'Add some feature'`)
100
101
  4. Push to the branch (`git push origin my-new-feature`)
101
102
  5. Create new Pull Request
103
+
104
+
105
+ ## License
106
+
107
+ MIT
data/Rakefile CHANGED
@@ -1,11 +1,11 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
 
4
- task :generate_stylesheet do
5
- %w( base16.light base16.dark base16.solarized.light base16.solarized.dark
6
- base16.monokai.light base16.monokai.dark colorful github
7
- gruvbox.light gruvbox.dark igorpro molokai monokai monokai.sublime
8
- pastie thankful_eyes tulip
4
+ task :generate_stylesheets do
5
+ %w( base16.dark base16.light base16.monokai.dark base16.monokai.light
6
+ base16.solarized.dark base16.solarized.light bw colorful
7
+ github.dark github.light gruvbox.dark gruvbox.light igorpro molokai
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`
11
11
  end
@@ -1,78 +1,91 @@
1
1
  .rouge-highlight table td { padding: 5px; }
2
2
  .rouge-highlight table pre { margin: 0; }
3
3
  .rouge-highlight, .rouge-highlight .w {
4
- color: #d0d0d0;
5
- background-color: #151515;
4
+ color: #d8d8d8;
5
+ background-color: #181818;
6
6
  }
7
7
  .rouge-highlight .err {
8
- color: #151515;
9
- background-color: #ac4142;
8
+ color: #181818;
9
+ background-color: #ab4642;
10
10
  }
11
- .rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1, .rouge-highlight .cs {
12
- color: #505050;
11
+ .rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
12
+ color: #585858;
13
13
  }
14
14
  .rouge-highlight .cp {
15
- color: #f4bf75;
15
+ color: #f7ca88;
16
16
  }
17
17
  .rouge-highlight .nt {
18
- color: #f4bf75;
18
+ color: #f7ca88;
19
19
  }
20
20
  .rouge-highlight .o, .rouge-highlight .ow {
21
- color: #d0d0d0;
21
+ color: #d8d8d8;
22
22
  }
23
23
  .rouge-highlight .p, .rouge-highlight .pi {
24
- color: #d0d0d0;
24
+ color: #d8d8d8;
25
25
  }
26
26
  .rouge-highlight .gi {
27
- color: #90a959;
27
+ color: #a1b56c;
28
28
  }
29
29
  .rouge-highlight .gd {
30
- color: #ac4142;
30
+ color: #ab4642;
31
31
  }
32
32
  .rouge-highlight .gh {
33
- color: #6a9fb5;
34
- background-color: #151515;
33
+ color: #7cafc2;
34
+ background-color: #181818;
35
+ font-weight: bold;
36
+ }
37
+ .rouge-highlight .ge {
38
+ font-style: italic;
39
+ }
40
+ .rouge-highlight .ges {
41
+ font-weight: bold;
42
+ font-style: italic;
43
+ }
44
+ .rouge-highlight .gs {
35
45
  font-weight: bold;
36
46
  }
37
47
  .rouge-highlight .k, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kv {
38
- color: #aa759f;
48
+ color: #ba8baf;
39
49
  }
40
50
  .rouge-highlight .kc {
41
- color: #d28445;
51
+ color: #dc9656;
42
52
  }
43
53
  .rouge-highlight .kt {
44
- color: #d28445;
54
+ color: #dc9656;
45
55
  }
46
56
  .rouge-highlight .kd {
47
- color: #d28445;
57
+ color: #dc9656;
58
+ }
59
+ .rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
60
+ color: #a1b56c;
48
61
  }
49
- .rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
50
- color: #90a959;
62
+ .rouge-highlight .sa {
63
+ color: #ba8baf;
51
64
  }
52
65
  .rouge-highlight .sr {
53
- color: #75b5aa;
66
+ color: #86c1b9;
54
67
  }
55
68
  .rouge-highlight .si {
56
- color: #8f5536;
69
+ color: #a16946;
57
70
  }
58
71
  .rouge-highlight .se {
59
- color: #8f5536;
72
+ color: #a16946;
60
73
  }
61
74
  .rouge-highlight .nn {
62
- color: #f4bf75;
75
+ color: #f7ca88;
63
76
  }
64
77
  .rouge-highlight .nc {
65
- color: #f4bf75;
78
+ color: #f7ca88;
66
79
  }
67
80
  .rouge-highlight .no {
68
- color: #f4bf75;
81
+ color: #f7ca88;
69
82
  }
70
83
  .rouge-highlight .na {
71
- color: #6a9fb5;
84
+ color: #7cafc2;
72
85
  }
73
- .rouge-highlight .m, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mb, .rouge-highlight .mx {
74
- color: #90a959;
86
+ .rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
87
+ color: #a1b56c;
75
88
  }
76
89
  .rouge-highlight .ss {
77
- color: #90a959;
90
+ color: #a1b56c;
78
91
  }
@@ -1,77 +1,90 @@
1
1
  .rouge-highlight table td { padding: 5px; }
2
2
  .rouge-highlight table pre { margin: 0; }
3
3
  .rouge-highlight, .rouge-highlight .w {
4
- color: #303030;
4
+ color: #383838;
5
5
  }
6
6
  .rouge-highlight .err {
7
- color: #151515;
8
- background-color: #ac4142;
7
+ color: #181818;
8
+ background-color: #ab4642;
9
9
  }
10
- .rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1, .rouge-highlight .cs {
11
- color: #505050;
10
+ .rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
11
+ color: #585858;
12
12
  }
13
13
  .rouge-highlight .cp {
14
- color: #f4bf75;
14
+ color: #f7ca88;
15
15
  }
16
16
  .rouge-highlight .nt {
17
- color: #f4bf75;
17
+ color: #f7ca88;
18
18
  }
19
19
  .rouge-highlight .o, .rouge-highlight .ow {
20
- color: #d0d0d0;
20
+ color: #d8d8d8;
21
21
  }
22
22
  .rouge-highlight .p, .rouge-highlight .pi {
23
- color: #d0d0d0;
23
+ color: #d8d8d8;
24
24
  }
25
25
  .rouge-highlight .gi {
26
- color: #90a959;
26
+ color: #a1b56c;
27
27
  }
28
28
  .rouge-highlight .gd {
29
- color: #ac4142;
29
+ color: #ab4642;
30
30
  }
31
31
  .rouge-highlight .gh {
32
- color: #6a9fb5;
33
- background-color: #151515;
32
+ color: #7cafc2;
33
+ background-color: #181818;
34
+ font-weight: bold;
35
+ }
36
+ .rouge-highlight .ge {
37
+ font-style: italic;
38
+ }
39
+ .rouge-highlight .ges {
40
+ font-weight: bold;
41
+ font-style: italic;
42
+ }
43
+ .rouge-highlight .gs {
34
44
  font-weight: bold;
35
45
  }
36
46
  .rouge-highlight .k, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kv {
37
- color: #aa759f;
47
+ color: #ba8baf;
38
48
  }
39
49
  .rouge-highlight .kc {
40
- color: #d28445;
50
+ color: #dc9656;
41
51
  }
42
52
  .rouge-highlight .kt {
43
- color: #d28445;
53
+ color: #dc9656;
44
54
  }
45
55
  .rouge-highlight .kd {
46
- color: #d28445;
56
+ color: #dc9656;
57
+ }
58
+ .rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
59
+ color: #a1b56c;
47
60
  }
48
- .rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
49
- color: #90a959;
61
+ .rouge-highlight .sa {
62
+ color: #ba8baf;
50
63
  }
51
64
  .rouge-highlight .sr {
52
- color: #75b5aa;
65
+ color: #86c1b9;
53
66
  }
54
67
  .rouge-highlight .si {
55
- color: #8f5536;
68
+ color: #a16946;
56
69
  }
57
70
  .rouge-highlight .se {
58
- color: #8f5536;
71
+ color: #a16946;
59
72
  }
60
73
  .rouge-highlight .nn {
61
- color: #f4bf75;
74
+ color: #f7ca88;
62
75
  }
63
76
  .rouge-highlight .nc {
64
- color: #f4bf75;
77
+ color: #f7ca88;
65
78
  }
66
79
  .rouge-highlight .no {
67
- color: #f4bf75;
80
+ color: #f7ca88;
68
81
  }
69
82
  .rouge-highlight .na {
70
- color: #6a9fb5;
83
+ color: #7cafc2;
71
84
  }
72
- .rouge-highlight .m, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mb, .rouge-highlight .mx {
73
- color: #90a959;
85
+ .rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
86
+ color: #a1b56c;
74
87
  }
75
88
  .rouge-highlight .ss {
76
- color: #90a959;
89
+ color: #a1b56c;
77
90
  }
@@ -8,7 +8,7 @@
8
8
  color: #272822;
9
9
  background-color: #f92672;
10
10
  }
11
- .rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1, .rouge-highlight .cs {
11
+ .rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
12
12
  color: #75715e;
13
13
  }
14
14
  .rouge-highlight .cp {
@@ -34,6 +34,16 @@
34
34
  background-color: #272822;
35
35
  font-weight: bold;
36
36
  }
37
+ .rouge-highlight .ge {
38
+ font-style: italic;
39
+ }
40
+ .rouge-highlight .ges {
41
+ font-weight: bold;
42
+ font-style: italic;
43
+ }
44
+ .rouge-highlight .gs {
45
+ font-weight: bold;
46
+ }
37
47
  .rouge-highlight .k, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kv {
38
48
  color: #ae81ff;
39
49
  }
@@ -46,9 +56,12 @@
46
56
  .rouge-highlight .kd {
47
57
  color: #fd971f;
48
58
  }
49
- .rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
59
+ .rouge-highlight .s, .rouge-highlight .sb, .rouge-highlight .sc, .rouge-highlight .dl, .rouge-highlight .sd, .rouge-highlight .s2, .rouge-highlight .sh, .rouge-highlight .sx, .rouge-highlight .s1 {
50
60
  color: #a6e22e;
51
61
  }
62
+ .rouge-highlight .sa {
63
+ color: #ae81ff;
64
+ }
52
65
  .rouge-highlight .sr {
53
66
  color: #a1efe4;
54
67
  }
@@ -70,7 +83,7 @@
70
83
  .rouge-highlight .na {
71
84
  color: #66d9ef;
72
85
  }
73
- .rouge-highlight .m, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mb, .rouge-highlight .mx {
86
+ .rouge-highlight .m, .rouge-highlight .mb, .rouge-highlight .mf, .rouge-highlight .mh, .rouge-highlight .mi, .rouge-highlight .il, .rouge-highlight .mo, .rouge-highlight .mx {
74
87
  color: #a6e22e;
75
88
  }
76
89
  .rouge-highlight .ss {