markdown_views 2.4.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -8
- 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 +69 -0
- data/test/render_test.rb +50 -0
- data/test/strip_comments_test.rb +0 -6
- data/test/test_helper.rb +16 -0
- metadata +33 -25
- 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: 82d69e29bd99ca8edec88eddfb8703b06caf81a348fe9b971a021eba28011f40
|
4
|
+
data.tar.gz: 6f641457f1476765f1b44d0b426aba749dbd7f8f5905f96016cd3793bc48d372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '030611799d4e21aa2a2b74b7db00071c45d731c492d492cdd3b6a648a1ad625b7eb12d396cee82f38b30e5ab4631bc809ff7f86b99868d610dda82aa9fa063d5'
|
7
|
+
data.tar.gz: 2a6df42fd00278c2e92b2e049f7f4e03fd4089050fce90f36bded628b7e1b051ec51e668ee1873c59d90a0b2e29fac5d987bcfb025ebadd55282f88061895f82
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
markdown_views (
|
5
|
-
commonmarker (
|
6
|
-
rails (>=
|
7
|
-
rouge (
|
4
|
+
markdown_views (3.0.0)
|
5
|
+
commonmarker (~> 1.1)
|
6
|
+
rails (>= 6.1, < 8.1)
|
7
|
+
rouge (~> 4)
|
8
|
+
securerandom
|
8
9
|
|
9
10
|
GEM
|
10
11
|
remote: https://rubygems.org/
|
@@ -85,7 +86,8 @@ GEM
|
|
85
86
|
benchmark (0.3.0)
|
86
87
|
bigdecimal (3.1.8)
|
87
88
|
builder (3.3.0)
|
88
|
-
commonmarker (
|
89
|
+
commonmarker (1.1.5)
|
90
|
+
rb_sys (~> 0.9)
|
89
91
|
concurrent-ruby (1.3.4)
|
90
92
|
connection_pool (2.4.1)
|
91
93
|
crass (1.0.6)
|
@@ -138,9 +140,8 @@ GEM
|
|
138
140
|
rack (>= 3.0.0)
|
139
141
|
rack-test (2.1.0)
|
140
142
|
rack (>= 1.3)
|
141
|
-
rackup (2.
|
143
|
+
rackup (2.2.0)
|
142
144
|
rack (>= 3)
|
143
|
-
webrick (~> 1.8)
|
144
145
|
rails (7.2.2)
|
145
146
|
actioncable (= 7.2.2)
|
146
147
|
actionmailbox (= 7.2.2)
|
@@ -171,6 +172,7 @@ GEM
|
|
171
172
|
thor (~> 1.0, >= 1.2.2)
|
172
173
|
zeitwerk (~> 2.6)
|
173
174
|
rake (13.2.1)
|
175
|
+
rb_sys (0.9.102)
|
174
176
|
rdoc (6.7.0)
|
175
177
|
psych (>= 4.0.0)
|
176
178
|
reline (0.5.10)
|
@@ -184,7 +186,6 @@ GEM
|
|
184
186
|
tzinfo (2.0.6)
|
185
187
|
concurrent-ruby (~> 1.0)
|
186
188
|
useragent (0.16.10)
|
187
|
-
webrick (1.9.0)
|
188
189
|
websocket-driver (0.7.6)
|
189
190
|
websocket-extensions (>= 0.1.0)
|
190
191
|
websocket-extensions (0.1.5)
|
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 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 {
|
@@ -7,7 +7,7 @@
|
|
7
7
|
color: #272822;
|
8
8
|
background-color: #f92672;
|
9
9
|
}
|
10
|
-
.rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1, .rouge-highlight .cs {
|
10
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
|
11
11
|
color: #75715e;
|
12
12
|
}
|
13
13
|
.rouge-highlight .cp {
|
@@ -33,6 +33,16 @@
|
|
33
33
|
background-color: #272822;
|
34
34
|
font-weight: bold;
|
35
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 {
|
44
|
+
font-weight: bold;
|
45
|
+
}
|
36
46
|
.rouge-highlight .k, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kv {
|
37
47
|
color: #ae81ff;
|
38
48
|
}
|
@@ -45,9 +55,12 @@
|
|
45
55
|
.rouge-highlight .kd {
|
46
56
|
color: #fd971f;
|
47
57
|
}
|
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 {
|
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 {
|
49
59
|
color: #a6e22e;
|
50
60
|
}
|
61
|
+
.rouge-highlight .sa {
|
62
|
+
color: #ae81ff;
|
63
|
+
}
|
51
64
|
.rouge-highlight .sr {
|
52
65
|
color: #a1efe4;
|
53
66
|
}
|
@@ -69,7 +82,7 @@
|
|
69
82
|
.rouge-highlight .na {
|
70
83
|
color: #66d9ef;
|
71
84
|
}
|
72
|
-
.rouge-highlight .m, .rouge-highlight .
|
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 {
|
73
86
|
color: #a6e22e;
|
74
87
|
}
|
75
88
|
.rouge-highlight .ss {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
color: #002b36;
|
9
9
|
background-color: #dc322f;
|
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: #657b83;
|
13
13
|
}
|
14
14
|
.rouge-highlight .cp {
|
@@ -34,6 +34,16 @@
|
|
34
34
|
background-color: #002b36;
|
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: #6c71c4;
|
39
49
|
}
|
@@ -46,9 +56,12 @@
|
|
46
56
|
.rouge-highlight .kd {
|
47
57
|
color: #cb4b16;
|
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: #859900;
|
51
61
|
}
|
62
|
+
.rouge-highlight .sa {
|
63
|
+
color: #6c71c4;
|
64
|
+
}
|
52
65
|
.rouge-highlight .sr {
|
53
66
|
color: #2aa198;
|
54
67
|
}
|
@@ -70,7 +83,7 @@
|
|
70
83
|
.rouge-highlight .na {
|
71
84
|
color: #268bd2;
|
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: #859900;
|
75
88
|
}
|
76
89
|
.rouge-highlight .ss {
|
@@ -7,7 +7,7 @@
|
|
7
7
|
color: #002b36;
|
8
8
|
background-color: #dc322f;
|
9
9
|
}
|
10
|
-
.rouge-highlight .c, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .c1, .rouge-highlight .cs {
|
10
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
|
11
11
|
color: #657b83;
|
12
12
|
}
|
13
13
|
.rouge-highlight .cp {
|
@@ -33,6 +33,16 @@
|
|
33
33
|
background-color: #002b36;
|
34
34
|
font-weight: bold;
|
35
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 {
|
44
|
+
font-weight: bold;
|
45
|
+
}
|
36
46
|
.rouge-highlight .k, .rouge-highlight .kn, .rouge-highlight .kp, .rouge-highlight .kr, .rouge-highlight .kv {
|
37
47
|
color: #6c71c4;
|
38
48
|
}
|
@@ -45,9 +55,12 @@
|
|
45
55
|
.rouge-highlight .kd {
|
46
56
|
color: #cb4b16;
|
47
57
|
}
|
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 {
|
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 {
|
49
59
|
color: #859900;
|
50
60
|
}
|
61
|
+
.rouge-highlight .sa {
|
62
|
+
color: #6c71c4;
|
63
|
+
}
|
51
64
|
.rouge-highlight .sr {
|
52
65
|
color: #2aa198;
|
53
66
|
}
|
@@ -69,7 +82,7 @@
|
|
69
82
|
.rouge-highlight .na {
|
70
83
|
color: #268bd2;
|
71
84
|
}
|
72
|
-
.rouge-highlight .m, .rouge-highlight .
|
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 {
|
73
86
|
color: #859900;
|
74
87
|
}
|
75
88
|
.rouge-highlight .ss {
|
@@ -0,0 +1,70 @@
|
|
1
|
+
.rouge-highlight table td { padding: 5px; }
|
2
|
+
.rouge-highlight table pre { margin: 0; }
|
3
|
+
.rouge-highlight, .rouge-highlight .w {
|
4
|
+
color: #000000;
|
5
|
+
background-color: #ffffff;
|
6
|
+
}
|
7
|
+
.rouge-highlight .c, .rouge-highlight .ch, .rouge-highlight .cd, .rouge-highlight .cm, .rouge-highlight .cpf, .rouge-highlight .c1, .rouge-highlight .cs {
|
8
|
+
font-style: italic;
|
9
|
+
}
|
10
|
+
.rouge-highlight .cp {
|
11
|
+
}
|
12
|
+
.rouge-highlight .k, .rouge-highlight .kc, .rouge-highlight .kd, .rouge-highlight .kn, .rouge-highlight .kr, .rouge-highlight .kv {
|
13
|
+
font-weight: bold;
|
14
|
+
}
|
15
|
+
.rouge-highlight .kp {
|
16
|
+
}
|
17
|
+
.rouge-highlight .kt {
|
18
|
+
}
|
19
|
+
.rouge-highlight .o, .rouge-highlight .ow {
|
20
|
+
font-weight: bold;
|
21
|
+
}
|
22
|
+
.rouge-highlight .nc {
|
23
|
+
font-weight: bold;
|
24
|
+
}
|
25
|
+
.rouge-highlight .nn {
|
26
|
+
font-weight: bold;
|
27
|
+
}
|
28
|
+
.rouge-highlight .ne {
|
29
|
+
font-weight: bold;
|
30
|
+
}
|
31
|
+
.rouge-highlight .ni {
|
32
|
+
font-weight: bold;
|
33
|
+
}
|
34
|
+
.rouge-highlight .nt {
|
35
|
+
font-weight: bold;
|
36
|
+
}
|
37
|
+
.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 .sr, .rouge-highlight .s1, .rouge-highlight .ss {
|
38
|
+
font-style: italic;
|
39
|
+
}
|
40
|
+
.rouge-highlight .sa {
|
41
|
+
font-weight: bold;
|
42
|
+
}
|
43
|
+
.rouge-highlight .si {
|
44
|
+
font-weight: bold;
|
45
|
+
}
|
46
|
+
.rouge-highlight .se {
|
47
|
+
font-weight: bold;
|
48
|
+
}
|
49
|
+
.rouge-highlight .gh {
|
50
|
+
font-weight: bold;
|
51
|
+
}
|
52
|
+
.rouge-highlight .gu {
|
53
|
+
font-weight: bold;
|
54
|
+
}
|
55
|
+
.rouge-highlight .ge {
|
56
|
+
font-style: italic;
|
57
|
+
}
|
58
|
+
.rouge-highlight .ges {
|
59
|
+
font-weight: bold;
|
60
|
+
font-style: italic;
|
61
|
+
}
|
62
|
+
.rouge-highlight .gs {
|
63
|
+
font-weight: bold;
|
64
|
+
}
|
65
|
+
.rouge-highlight .gp {
|
66
|
+
font-weight: bold;
|
67
|
+
}
|
68
|
+
.rouge-highlight .err {
|
69
|
+
color: #FF0000;
|
70
|
+
}
|