markdown_views 2.4.1 → 3.1.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.lock +97 -91
- data/README.md +17 -11
- data/Rakefile +5 -5
- data/app/assets/stylesheets/rouge.base16.dark.css +43 -30
- data/app/assets/stylesheets/rouge.base16.light.css +42 -29
- data/app/assets/stylesheets/rouge.base16.monokai.dark.css +16 -3
- data/app/assets/stylesheets/rouge.base16.monokai.light.css +16 -3
- data/app/assets/stylesheets/rouge.base16.solarized.dark.css +16 -3
- data/app/assets/stylesheets/rouge.base16.solarized.light.css +16 -3
- data/app/assets/stylesheets/rouge.bw.css +70 -0
- data/app/assets/stylesheets/rouge.colorful.css +12 -4
- data/app/assets/stylesheets/rouge.github.dark.css +116 -0
- data/app/assets/stylesheets/rouge.github.light.css +116 -0
- data/app/assets/stylesheets/rouge.gruvbox.dark.css +16 -3
- data/app/assets/stylesheets/rouge.gruvbox.light.css +16 -3
- data/app/assets/stylesheets/rouge.igorpro.css +15 -2
- data/app/assets/stylesheets/rouge.molokai.css +8 -5
- data/app/assets/stylesheets/rouge.monokai.css +12 -5
- data/app/assets/stylesheets/rouge.monokai.sublime.css +23 -7
- data/app/assets/stylesheets/rouge.pastie.css +13 -5
- data/app/assets/stylesheets/rouge.thankful_eyes.css +13 -6
- data/app/assets/stylesheets/rouge.tulip.css +13 -6
- data/lib/markdown_views/config.rb +23 -7
- data/lib/markdown_views/handler.rb +0 -21
- data/lib/markdown_views/renderer.rb +24 -7
- data/lib/markdown_views/version.rb +1 -1
- data/lib/markdown_views.rb +2 -5
- data/markdown_views.gemspec +6 -3
- data/test/config_test.rb +70 -0
- data/test/render_test.rb +50 -0
- data/test/strip_comments_test.rb +0 -6
- data/test/test_helper.rb +16 -0
- metadata +34 -20
- data/app/assets/stylesheets/rouge.github.css +0 -209
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bfc0f4474969a1bca917f425c0679cafea811519da5a5eff4739b9b82d24e10
|
4
|
+
data.tar.gz: ffa60b28850283d6c9a81311c1b96fa429dc8ff23989124cbdd3a074688e7528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 (
|
5
|
-
commonmarker (>=
|
6
|
-
rails (>=
|
7
|
-
rouge (
|
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 (
|
13
|
-
actionpack (=
|
14
|
-
activesupport (=
|
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 (
|
19
|
-
actionpack (=
|
20
|
-
activejob (=
|
21
|
-
activerecord (=
|
22
|
-
activestorage (=
|
23
|
-
activesupport (=
|
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 (
|
26
|
-
actionpack (=
|
27
|
-
actionview (=
|
28
|
-
activejob (=
|
29
|
-
activesupport (=
|
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 (
|
33
|
-
actionview (=
|
34
|
-
activesupport (=
|
33
|
+
actionpack (8.0.1)
|
34
|
+
actionview (= 8.0.1)
|
35
|
+
activesupport (= 8.0.1)
|
35
36
|
nokogiri (>= 1.8.5)
|
36
|
-
|
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 (
|
44
|
-
actionpack (=
|
45
|
-
activerecord (=
|
46
|
-
activestorage (=
|
47
|
-
activesupport (=
|
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 (
|
51
|
-
activesupport (=
|
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 (
|
57
|
-
activesupport (=
|
56
|
+
activejob (8.0.1)
|
57
|
+
activesupport (= 8.0.1)
|
58
58
|
globalid (>= 0.3.6)
|
59
|
-
activemodel (
|
60
|
-
activesupport (=
|
61
|
-
activerecord (
|
62
|
-
activemodel (=
|
63
|
-
activesupport (=
|
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 (
|
66
|
-
actionpack (=
|
67
|
-
activejob (=
|
68
|
-
activerecord (=
|
69
|
-
activesupport (=
|
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 (
|
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.
|
86
|
-
bigdecimal (3.1.
|
86
|
+
benchmark (0.4.0)
|
87
|
+
bigdecimal (3.1.9)
|
87
88
|
builder (3.3.0)
|
88
|
-
commonmarker (0.
|
89
|
-
|
90
|
-
|
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.
|
94
|
+
date (3.4.1)
|
93
95
|
drb (2.2.1)
|
94
|
-
erubi (1.13.
|
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.
|
100
|
-
irb (1.14.
|
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.
|
104
|
-
loofah (2.
|
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.
|
115
|
-
minitest (5.25.
|
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.
|
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.
|
133
|
+
nokogiri (1.18.1)
|
131
134
|
mini_portile2 (~> 2.8.2)
|
132
135
|
racc (~> 1.4)
|
133
|
-
psych (5.
|
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.
|
141
|
+
rack-session (2.1.0)
|
142
|
+
base64 (>= 0.1.0)
|
138
143
|
rack (>= 3.0.0)
|
139
|
-
rack-test (2.
|
144
|
+
rack-test (2.2.0)
|
140
145
|
rack (>= 1.3)
|
141
|
-
rackup (2.1
|
146
|
+
rackup (2.2.1)
|
142
147
|
rack (>= 3)
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
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 (=
|
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.
|
166
|
+
rails-html-sanitizer (1.6.2)
|
163
167
|
loofah (~> 2.21)
|
164
|
-
nokogiri (
|
165
|
-
railties (
|
166
|
-
actionpack (=
|
167
|
-
activesupport (=
|
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
|
-
|
178
|
+
rb_sys (0.9.108)
|
179
|
+
rdoc (6.11.0)
|
175
180
|
psych (>= 4.0.0)
|
176
|
-
reline (0.
|
181
|
+
reline (0.6.0)
|
177
182
|
io-console (~> 0.5)
|
178
|
-
rouge (4.
|
183
|
+
rouge (4.5.1)
|
179
184
|
ruby-progressbar (1.13.0)
|
180
|
-
securerandom (0.
|
181
|
-
stringio (3.1.
|
185
|
+
securerandom (0.4.1)
|
186
|
+
stringio (3.1.2)
|
182
187
|
thor (1.3.2)
|
183
|
-
timeout (0.4.
|
188
|
+
timeout (0.4.3)
|
184
189
|
tzinfo (2.0.6)
|
185
190
|
concurrent-ruby (~> 1.0)
|
186
|
-
|
187
|
-
|
188
|
-
websocket-driver (0.7.
|
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.
|
208
|
+
2.5.22
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# MarkdownViews
|
2
2
|
|
3
|
-
MarkdownViews enables Rails
|
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
|
47
|
+
MarkdownViews.parsing_opts.merge! smart: false
|
48
48
|
|
49
|
-
MarkdownViews.rendering_opts
|
49
|
+
MarkdownViews.rendering_opts.merge! unsafe: false
|
50
50
|
|
51
|
-
MarkdownViews.extensions
|
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('
|
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
|
85
|
-
|
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
|
87
|
+
#### Upgrading from 2.x to 3.x
|
89
88
|
|
90
|
-
|
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
|
-
|
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 :
|
5
|
-
%w( base16.
|
6
|
-
base16.
|
7
|
-
|
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: #
|
5
|
-
background-color: #
|
4
|
+
color: #d8d8d8;
|
5
|
+
background-color: #181818;
|
6
6
|
}
|
7
7
|
.rouge-highlight .err {
|
8
|
-
color: #
|
9
|
-
background-color: #
|
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: #
|
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: #
|
15
|
+
color: #f7ca88;
|
16
16
|
}
|
17
17
|
.rouge-highlight .nt {
|
18
|
-
color: #
|
18
|
+
color: #f7ca88;
|
19
19
|
}
|
20
20
|
.rouge-highlight .o, .rouge-highlight .ow {
|
21
|
-
color: #
|
21
|
+
color: #d8d8d8;
|
22
22
|
}
|
23
23
|
.rouge-highlight .p, .rouge-highlight .pi {
|
24
|
-
color: #
|
24
|
+
color: #d8d8d8;
|
25
25
|
}
|
26
26
|
.rouge-highlight .gi {
|
27
|
-
color: #
|
27
|
+
color: #a1b56c;
|
28
28
|
}
|
29
29
|
.rouge-highlight .gd {
|
30
|
-
color: #
|
30
|
+
color: #ab4642;
|
31
31
|
}
|
32
32
|
.rouge-highlight .gh {
|
33
|
-
color: #
|
34
|
-
background-color: #
|
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: #
|
48
|
+
color: #ba8baf;
|
39
49
|
}
|
40
50
|
.rouge-highlight .kc {
|
41
|
-
color: #
|
51
|
+
color: #dc9656;
|
42
52
|
}
|
43
53
|
.rouge-highlight .kt {
|
44
|
-
color: #
|
54
|
+
color: #dc9656;
|
45
55
|
}
|
46
56
|
.rouge-highlight .kd {
|
47
|
-
color: #
|
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 .
|
50
|
-
color: #
|
62
|
+
.rouge-highlight .sa {
|
63
|
+
color: #ba8baf;
|
51
64
|
}
|
52
65
|
.rouge-highlight .sr {
|
53
|
-
color: #
|
66
|
+
color: #86c1b9;
|
54
67
|
}
|
55
68
|
.rouge-highlight .si {
|
56
|
-
color: #
|
69
|
+
color: #a16946;
|
57
70
|
}
|
58
71
|
.rouge-highlight .se {
|
59
|
-
color: #
|
72
|
+
color: #a16946;
|
60
73
|
}
|
61
74
|
.rouge-highlight .nn {
|
62
|
-
color: #
|
75
|
+
color: #f7ca88;
|
63
76
|
}
|
64
77
|
.rouge-highlight .nc {
|
65
|
-
color: #
|
78
|
+
color: #f7ca88;
|
66
79
|
}
|
67
80
|
.rouge-highlight .no {
|
68
|
-
color: #
|
81
|
+
color: #f7ca88;
|
69
82
|
}
|
70
83
|
.rouge-highlight .na {
|
71
|
-
color: #
|
84
|
+
color: #7cafc2;
|
72
85
|
}
|
73
|
-
.rouge-highlight .m, .rouge-highlight .
|
74
|
-
color: #
|
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: #
|
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: #
|
4
|
+
color: #383838;
|
5
5
|
}
|
6
6
|
.rouge-highlight .err {
|
7
|
-
color: #
|
8
|
-
background-color: #
|
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: #
|
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: #
|
14
|
+
color: #f7ca88;
|
15
15
|
}
|
16
16
|
.rouge-highlight .nt {
|
17
|
-
color: #
|
17
|
+
color: #f7ca88;
|
18
18
|
}
|
19
19
|
.rouge-highlight .o, .rouge-highlight .ow {
|
20
|
-
color: #
|
20
|
+
color: #d8d8d8;
|
21
21
|
}
|
22
22
|
.rouge-highlight .p, .rouge-highlight .pi {
|
23
|
-
color: #
|
23
|
+
color: #d8d8d8;
|
24
24
|
}
|
25
25
|
.rouge-highlight .gi {
|
26
|
-
color: #
|
26
|
+
color: #a1b56c;
|
27
27
|
}
|
28
28
|
.rouge-highlight .gd {
|
29
|
-
color: #
|
29
|
+
color: #ab4642;
|
30
30
|
}
|
31
31
|
.rouge-highlight .gh {
|
32
|
-
color: #
|
33
|
-
background-color: #
|
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: #
|
47
|
+
color: #ba8baf;
|
38
48
|
}
|
39
49
|
.rouge-highlight .kc {
|
40
|
-
color: #
|
50
|
+
color: #dc9656;
|
41
51
|
}
|
42
52
|
.rouge-highlight .kt {
|
43
|
-
color: #
|
53
|
+
color: #dc9656;
|
44
54
|
}
|
45
55
|
.rouge-highlight .kd {
|
46
|
-
color: #
|
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 .
|
49
|
-
color: #
|
61
|
+
.rouge-highlight .sa {
|
62
|
+
color: #ba8baf;
|
50
63
|
}
|
51
64
|
.rouge-highlight .sr {
|
52
|
-
color: #
|
65
|
+
color: #86c1b9;
|
53
66
|
}
|
54
67
|
.rouge-highlight .si {
|
55
|
-
color: #
|
68
|
+
color: #a16946;
|
56
69
|
}
|
57
70
|
.rouge-highlight .se {
|
58
|
-
color: #
|
71
|
+
color: #a16946;
|
59
72
|
}
|
60
73
|
.rouge-highlight .nn {
|
61
|
-
color: #
|
74
|
+
color: #f7ca88;
|
62
75
|
}
|
63
76
|
.rouge-highlight .nc {
|
64
|
-
color: #
|
77
|
+
color: #f7ca88;
|
65
78
|
}
|
66
79
|
.rouge-highlight .no {
|
67
|
-
color: #
|
80
|
+
color: #f7ca88;
|
68
81
|
}
|
69
82
|
.rouge-highlight .na {
|
70
|
-
color: #
|
83
|
+
color: #7cafc2;
|
71
84
|
}
|
72
|
-
.rouge-highlight .m, .rouge-highlight .
|
73
|
-
color: #
|
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: #
|
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 .
|
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 {
|