rapipdf 2.1.1 → 3.0.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.
Files changed (173) hide show
  1. package/README.md +66 -14
  2. package/dist/chunks/generate-BQLGaRvK.js +386 -0
  3. package/dist/chunks/generate-BQLGaRvK.js.LICENSE.txt +224 -0
  4. package/dist/chunks/localize-CRvDVkIz.js +8 -0
  5. package/dist/node.js +13096 -0
  6. package/dist/node.js.LICENSE.txt +195 -0
  7. package/dist/rapipdf-min.js +352 -90
  8. package/dist/rapipdf-min.js.LICENSE.txt +224 -0
  9. package/dist/rapipdf.js +69 -0
  10. package/package.json +58 -52
  11. package/src/node.d.ts +82 -0
  12. package/src/rapipdf.d.ts +50 -0
  13. package/.babelrc +0 -11
  14. package/.eslintrc +0 -28
  15. package/dist/index.html +0 -48
  16. package/dist/index.html.gz +0 -0
  17. package/dist/rapipdf-min.js.gz +0 -0
  18. package/dist/rapipdf-min.js.map +0 -1
  19. package/dist/rapipdf-min.js.map.gz +0 -0
  20. package/dist/report.html +0 -67
  21. package/docs/examples/example1.html +0 -68
  22. package/docs/examples/list.html +0 -27
  23. package/docs/examples/rapidoc-regular.woff2 +0 -0
  24. package/docs/examples/rapidoc-semi-bold.woff2 +0 -0
  25. package/docs/examples/roboto-mono-bold.woff2 +0 -0
  26. package/docs/examples/roboto-mono-regular.woff2 +0 -0
  27. package/docs/highlight/CHANGES.md +0 -1803
  28. package/docs/highlight/LICENSE +0 -24
  29. package/docs/highlight/README.md +0 -188
  30. package/docs/highlight/README.ru.md +0 -142
  31. package/docs/highlight/highlight.pack.js +0 -2
  32. package/docs/highlight/styles/a11y-dark.css +0 -99
  33. package/docs/highlight/styles/a11y-light.css +0 -99
  34. package/docs/highlight/styles/agate.css +0 -108
  35. package/docs/highlight/styles/an-old-hope.css +0 -89
  36. package/docs/highlight/styles/androidstudio.css +0 -66
  37. package/docs/highlight/styles/arduino-light.css +0 -88
  38. package/docs/highlight/styles/arta.css +0 -73
  39. package/docs/highlight/styles/ascetic.css +0 -45
  40. package/docs/highlight/styles/atelier-cave-dark.css +0 -83
  41. package/docs/highlight/styles/atelier-cave-light.css +0 -85
  42. package/docs/highlight/styles/atelier-dune-dark.css +0 -69
  43. package/docs/highlight/styles/atelier-dune-light.css +0 -69
  44. package/docs/highlight/styles/atelier-estuary-dark.css +0 -84
  45. package/docs/highlight/styles/atelier-estuary-light.css +0 -84
  46. package/docs/highlight/styles/atelier-forest-dark.css +0 -69
  47. package/docs/highlight/styles/atelier-forest-light.css +0 -69
  48. package/docs/highlight/styles/atelier-heath-dark.css +0 -69
  49. package/docs/highlight/styles/atelier-heath-light.css +0 -69
  50. package/docs/highlight/styles/atelier-lakeside-dark.css +0 -69
  51. package/docs/highlight/styles/atelier-lakeside-light.css +0 -69
  52. package/docs/highlight/styles/atelier-plateau-dark.css +0 -84
  53. package/docs/highlight/styles/atelier-plateau-light.css +0 -84
  54. package/docs/highlight/styles/atelier-savanna-dark.css +0 -84
  55. package/docs/highlight/styles/atelier-savanna-light.css +0 -84
  56. package/docs/highlight/styles/atelier-seaside-dark.css +0 -69
  57. package/docs/highlight/styles/atelier-seaside-light.css +0 -69
  58. package/docs/highlight/styles/atelier-sulphurpool-dark.css +0 -69
  59. package/docs/highlight/styles/atelier-sulphurpool-light.css +0 -69
  60. package/docs/highlight/styles/atom-one-dark-reasonable.css +0 -77
  61. package/docs/highlight/styles/atom-one-dark.css +0 -96
  62. package/docs/highlight/styles/atom-one-light.css +0 -96
  63. package/docs/highlight/styles/brown-paper.css +0 -64
  64. package/docs/highlight/styles/brown-papersq.png +0 -0
  65. package/docs/highlight/styles/codepen-embed.css +0 -60
  66. package/docs/highlight/styles/color-brewer.css +0 -71
  67. package/docs/highlight/styles/darcula.css +0 -77
  68. package/docs/highlight/styles/dark.css +0 -63
  69. package/docs/highlight/styles/darkula.css +0 -6
  70. package/docs/highlight/styles/default.css +0 -99
  71. package/docs/highlight/styles/docco.css +0 -97
  72. package/docs/highlight/styles/dracula.css +0 -76
  73. package/docs/highlight/styles/far.css +0 -71
  74. package/docs/highlight/styles/foundation.css +0 -88
  75. package/docs/highlight/styles/github-gist.css +0 -71
  76. package/docs/highlight/styles/github.css +0 -99
  77. package/docs/highlight/styles/gml.css +0 -78
  78. package/docs/highlight/styles/googlecode.css +0 -89
  79. package/docs/highlight/styles/grayscale.css +0 -101
  80. package/docs/highlight/styles/gruvbox-dark.css +0 -108
  81. package/docs/highlight/styles/gruvbox-light.css +0 -108
  82. package/docs/highlight/styles/hopscotch.css +0 -83
  83. package/docs/highlight/styles/hybrid.css +0 -102
  84. package/docs/highlight/styles/idea.css +0 -97
  85. package/docs/highlight/styles/ir-black.css +0 -73
  86. package/docs/highlight/styles/isbl-editor-dark.css +0 -112
  87. package/docs/highlight/styles/isbl-editor-light.css +0 -112
  88. package/docs/highlight/styles/kimbie.dark.css +0 -74
  89. package/docs/highlight/styles/kimbie.light.css +0 -74
  90. package/docs/highlight/styles/lightfair.css +0 -87
  91. package/docs/highlight/styles/magula.css +0 -70
  92. package/docs/highlight/styles/mono-blue.css +0 -59
  93. package/docs/highlight/styles/monokai-sublime.css +0 -83
  94. package/docs/highlight/styles/monokai.css +0 -70
  95. package/docs/highlight/styles/nord.css +0 -309
  96. package/docs/highlight/styles/obsidian.css +0 -88
  97. package/docs/highlight/styles/ocean.css +0 -74
  98. package/docs/highlight/styles/paraiso-dark.css +0 -72
  99. package/docs/highlight/styles/paraiso-light.css +0 -72
  100. package/docs/highlight/styles/pojoaque.css +0 -83
  101. package/docs/highlight/styles/pojoaque.jpg +0 -0
  102. package/docs/highlight/styles/purebasic.css +0 -96
  103. package/docs/highlight/styles/qtcreator_dark.css +0 -83
  104. package/docs/highlight/styles/qtcreator_light.css +0 -83
  105. package/docs/highlight/styles/railscasts.css +0 -106
  106. package/docs/highlight/styles/rainbow.css +0 -85
  107. package/docs/highlight/styles/routeros.css +0 -108
  108. package/docs/highlight/styles/school-book.css +0 -72
  109. package/docs/highlight/styles/school-book.png +0 -0
  110. package/docs/highlight/styles/shades-of-purple.css +0 -97
  111. package/docs/highlight/styles/solarized-dark.css +0 -84
  112. package/docs/highlight/styles/solarized-light.css +0 -84
  113. package/docs/highlight/styles/sunburst.css +0 -102
  114. package/docs/highlight/styles/tomorrow-night-blue.css +0 -75
  115. package/docs/highlight/styles/tomorrow-night-bright.css +0 -74
  116. package/docs/highlight/styles/tomorrow-night-eighties.css +0 -74
  117. package/docs/highlight/styles/tomorrow-night.css +0 -75
  118. package/docs/highlight/styles/tomorrow.css +0 -72
  119. package/docs/highlight/styles/vs.css +0 -68
  120. package/docs/highlight/styles/vs2015.css +0 -115
  121. package/docs/highlight/styles/xcode.css +0 -104
  122. package/docs/highlight/styles/xt256.css +0 -92
  123. package/docs/highlight/styles/zenburn.css +0 -80
  124. package/docs/images/console.svg +0 -12
  125. package/docs/images/dark_ss.png +0 -0
  126. package/docs/images/easy.svg +0 -14
  127. package/docs/images/fast.svg +0 -8
  128. package/docs/images/gears.svg +0 -11
  129. package/docs/images/light_ss.png +0 -0
  130. package/docs/images/logo.png +0 -0
  131. package/docs/images/love.svg +0 -8
  132. package/docs/images/mask.svg +0 -16
  133. package/docs/images/mouse.svg +0 -7
  134. package/docs/images/pdf_sample1.png +0 -0
  135. package/docs/images/pdf_sample2.png +0 -0
  136. package/docs/images/webcomponent.svg +0 -13
  137. package/docs/index.css +0 -254
  138. package/docs/index.html +0 -376
  139. package/docs/rapipdf-min.js +0 -95
  140. package/docs/specs/allof-primitives.json +0 -80
  141. package/docs/specs/allof.json +0 -73
  142. package/docs/specs/anyof.json +0 -84
  143. package/docs/specs/basic.json +0 -75
  144. package/docs/specs/bitbucket.json +0 -12916
  145. package/docs/specs/data-types.yaml +0 -168
  146. package/docs/specs/gcloud.json +0 -1347
  147. package/docs/specs/no-server.json +0 -1
  148. package/docs/specs/oneof.json +0 -64
  149. package/docs/specs/petstore.json +0 -1042
  150. package/docs/specs/petstore_extended.yaml +0 -889
  151. package/docs/specs/temp.json +0 -53
  152. package/docs/specs/test-specs/large-models.json +0 -5998
  153. package/docs/specs/test-specs/long-descriptions.json +0 -5443
  154. package/docs/specs/test-specs/long-paths.json +0 -9562
  155. package/docs/specs/test-specs/oneof-allof-nested.yaml +0 -105
  156. package/docs/specs/test-specs/partial-spec-main.json +0 -29
  157. package/docs/specs/test-specs/partial.json +0 -17
  158. package/docs/specs/test-specs/petstore_complex_request.yaml +0 -335
  159. package/docs/specs/test-specs/petstore_experimental.yaml +0 -167
  160. package/docs/specs/test-specs/xxx-of-with-primitives-and-recursive-model.yaml +0 -952
  161. package/docs/welcome.html +0 -369
  162. package/index.html +0 -48
  163. package/logo.png +0 -0
  164. package/src/index.js +0 -3
  165. package/src/markdown.js +0 -120
  166. package/src/object-tree-gen.js +0 -370
  167. package/src/pdf-gen.js +0 -113
  168. package/src/pdf-parts-gen.js +0 -488
  169. package/src/rapipdf.js +0 -246
  170. package/src/spec-parser.js +0 -162
  171. package/src/table-layouts.js +0 -35
  172. package/src/vfs_fonts.js +0 -7
  173. package/webpack.config.js +0 -118
@@ -1,24 +0,0 @@
1
- Copyright (c) 2006, Ivan Sagalaev
2
- All rights reserved.
3
- Redistribution and use in source and binary forms, with or without
4
- modification, are permitted provided that the following conditions are met:
5
-
6
- * Redistributions of source code must retain the above copyright
7
- notice, this list of conditions and the following disclaimer.
8
- * Redistributions in binary form must reproduce the above copyright
9
- notice, this list of conditions and the following disclaimer in the
10
- documentation and/or other materials provided with the distribution.
11
- * Neither the name of highlight.js nor the names of its contributors
12
- may be used to endorse or promote products derived from this software
13
- without specific prior written permission.
14
-
15
- THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
16
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
- DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
19
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,188 +0,0 @@
1
- # Highlight.js
2
-
3
- [![Build Status](https://travis-ci.org/highlightjs/highlight.js.svg?branch=master)](https://travis-ci.org/highlightjs/highlight.js) [![Greenkeeper badge](https://badges.greenkeeper.io/highlightjs/highlight.js.svg)](https://greenkeeper.io/)
4
-
5
- Highlight.js is a syntax highlighter written in JavaScript. It works in
6
- the browser as well as on the server. It works with pretty much any
7
- markup, doesn’t depend on any framework, and has automatic language
8
- detection.
9
-
10
- ## Getting Started
11
-
12
- The bare minimum for using highlight.js on a web page is linking to the
13
- library along with one of the styles and calling
14
- [`initHighlightingOnLoad`][1]:
15
-
16
- ```html
17
- <link rel="stylesheet" href="/path/to/styles/default.css">
18
- <script src="/path/to/highlight.pack.js"></script>
19
- <script>hljs.initHighlightingOnLoad();</script>
20
- ```
21
-
22
- This will find and highlight code inside of `<pre><code>` tags; it tries
23
- to detect the language automatically. If automatic detection doesn’t
24
- work for you, you can specify the language in the `class` attribute:
25
-
26
- ```html
27
- <pre><code class="html">...</code></pre>
28
- ```
29
-
30
- The list of supported language classes is available in the [class
31
- reference][2]. Classes can also be prefixed with either `language-` or
32
- `lang-`.
33
-
34
- To make arbitrary text look like code, but without highlighting, use the
35
- `plaintext` class:
36
-
37
- ```html
38
- <pre><code class="plaintext">...</code></pre>
39
- ```
40
-
41
- To disable highlighting altogether use the `nohighlight` class:
42
-
43
- ```html
44
- <pre><code class="nohighlight">...</code></pre>
45
- ```
46
-
47
- ## Custom Initialization
48
-
49
- When you need a bit more control over the initialization of
50
- highlight.js, you can use the [`highlightBlock`][3] and [`configure`][4]
51
- functions. This allows you to control *what* to highlight and *when*.
52
-
53
- Here’s an equivalent way to calling [`initHighlightingOnLoad`][1] using
54
- vanilla JS:
55
-
56
- ```js
57
- document.addEventListener('DOMContentLoaded', (event) => {
58
- document.querySelectorAll('pre code').forEach((block) => {
59
- hljs.highlightBlock(block);
60
- });
61
- });
62
- ```
63
-
64
- You can use any tags instead of `<pre><code>` to mark up your code. If
65
- you don't use a container that preserves line breaks you will need to
66
- configure highlight.js to use the `<br>` tag:
67
-
68
- ```js
69
- hljs.configure({useBR: true});
70
-
71
- document.querySelectorAll('div.code').forEach((block) => {
72
- hljs.highlightBlock(block);
73
- });
74
- ```
75
-
76
- For other options refer to the documentation for [`configure`][4].
77
-
78
-
79
- ## Web Workers
80
-
81
- You can run highlighting inside a web worker to avoid freezing the browser
82
- window while dealing with very big chunks of code.
83
-
84
- In your main script:
85
-
86
- ```js
87
- addEventListener('load', () => {
88
- const code = document.querySelector('#code');
89
- const worker = new Worker('worker.js');
90
- worker.onmessage = (event) => { code.innerHTML = event.data; }
91
- worker.postMessage(code.textContent);
92
- });
93
- ```
94
-
95
- In worker.js:
96
-
97
- ```js
98
- onmessage = (event) => {
99
- importScripts('<path>/highlight.pack.js');
100
- const result = self.hljs.highlightAuto(event.data);
101
- postMessage(result.value);
102
- };
103
- ```
104
-
105
-
106
- ## Getting the Library
107
-
108
- You can get highlight.js as a hosted, or custom-build, browser script or
109
- as a server module. Right out of the box the browser script supports
110
- both AMD and CommonJS, so if you wish you can use RequireJS or
111
- Browserify without having to build from source. The server module also
112
- works perfectly fine with Browserify, but there is the option to use a
113
- build specific to browsers rather than something meant for a server.
114
- Head over to the [download page][5] for all the options.
115
-
116
- **Don't link to GitHub directly.** The library is not supposed to work straight
117
- from the source, it requires building. If none of the pre-packaged options
118
- work for you refer to the [building documentation][6].
119
-
120
- **The CDN-hosted package doesn't have all the languages.** Otherwise it'd be
121
- too big. If you don't see the language you need in the ["Common" section][5],
122
- it can be added manually:
123
-
124
- ```html
125
- <script
126
- charset="UTF-8"
127
- src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js"></script>
128
- ```
129
-
130
- **On Almond.** You need to use the optimizer to give the module a name. For
131
- example:
132
-
133
- ```bash
134
- r.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js
135
- ```
136
-
137
-
138
- ### CommonJS
139
-
140
- You can import Highlight.js as a CommonJS-module:
141
-
142
- ```bash
143
- npm install highlight.js --save
144
- ```
145
-
146
- In your application:
147
-
148
- ```js
149
- import hljs from 'highlight.js';
150
- ```
151
-
152
- The default import imports all languages! Therefore it is likely to be more efficient to import only the library and the languages you need:
153
-
154
- ```js
155
- import hljs from 'highlight.js/lib/highlight';
156
- import javascript from 'highlight.js/lib/languages/javascript';
157
- hljs.registerLanguage('javascript', javascript);
158
- ```
159
-
160
- To set the syntax highlighting style, if your build tool processes CSS from your JavaScript entry point, you can import the stylesheet directly into your CommonJS-module:
161
-
162
- ```js
163
- import hljs from 'highlight.js/lib/highlight';
164
- import 'highlight.js/styles/github.css';
165
- ```
166
-
167
- ## License
168
-
169
- Highlight.js is released under the BSD License. See [LICENSE][7] file
170
- for details.
171
-
172
- ## Links
173
-
174
- The official site for the library is at <https://highlightjs.org/>.
175
-
176
- Further in-depth documentation for the API and other topics is at
177
- <http://highlightjs.readthedocs.io/>.
178
-
179
- Authors and contributors are listed in the [AUTHORS.en.txt][8] file.
180
-
181
- [1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload
182
- [2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html
183
- [3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block
184
- [4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options
185
- [5]: https://highlightjs.org/download/
186
- [6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html
187
- [7]: https://github.com/highlightjs/highlight.js/blob/master/LICENSE
188
- [8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.en.txt
@@ -1,142 +0,0 @@
1
- # Highlight.js
2
-
3
- Highlight.js — это инструмент для подсветки синтаксиса, написанный на JavaScript. Он работает
4
- и в браузере, и на сервере. Он работает с практически любой HTML разметкой, не
5
- зависит от каких-либо фреймворков и умеет автоматически определять язык.
6
-
7
-
8
- ## Начало работы
9
-
10
- Минимум, что нужно сделать для использования highlight.js на веб-странице — это
11
- подключить библиотеку, CSS-стили и вызывать [`initHighlightingOnLoad`][1]:
12
-
13
- ```html
14
- <link rel="stylesheet" href="/path/to/styles/default.css">
15
- <script src="/path/to/highlight.pack.js"></script>
16
- <script>hljs.initHighlightingOnLoad();</script>
17
- ```
18
-
19
- Библиотека найдёт и раскрасит код внутри тегов `<pre><code>`, попытавшись
20
- автоматически определить язык. Когда автоопределение не срабатывает, можно явно
21
- указать язык в атрибуте class:
22
-
23
- ```html
24
- <pre><code class="html">...</code></pre>
25
- ```
26
-
27
- Список поддерживаемых классов языков доступен в [справочнике по классам][2].
28
- Класс также можно предварить префиксами `language-` или `lang-`.
29
-
30
- Чтобы отключить подсветку для какого-то блока, используйте класс `nohighlight`:
31
-
32
- ```html
33
- <pre><code class="nohighlight">...</code></pre>
34
- ```
35
-
36
- ## Инициализация вручную
37
-
38
- Чтобы иметь чуть больше контроля за инициализацией подсветки, вы можете
39
- использовать функции [`highlightBlock`][3] и [`configure`][4]. Таким образом
40
- можно управлять тем, *что* и *когда* подсвечивать.
41
-
42
- Вот пример инициализации, эквивалентной вызову [`initHighlightingOnLoad`][1], но
43
- с использованием `document.addEventListener`:
44
-
45
- ```js
46
- document.addEventListener('DOMContentLoaded', (event) => {
47
- document.querySelectorAll('pre code').forEach((block) => {
48
- hljs.highlightBlock(block);
49
- });
50
- });
51
- ```
52
-
53
- Вы можете использовать любые теги разметки вместо `<pre><code>`. Если
54
- используете контейнер, не сохраняющий переводы строк, вам нужно сказать
55
- highlight.js использовать для них тег `<br>`:
56
-
57
- ```js
58
- hljs.configure({useBR: true});
59
-
60
- document.querySelectorAll('div.code').forEach((block) => {
61
- hljs.highlightBlock(block);
62
- });
63
- ```
64
-
65
- Другие опции можно найти в документации функции [`configure`][4].
66
-
67
-
68
- ## Web Workers
69
-
70
- Подсветку можно запустить внутри web worker'а, чтобы окно
71
- браузера не подтормаживало при работе с большими кусками кода.
72
-
73
- В основном скрипте:
74
-
75
- ```js
76
- addEventListener('load', () => {
77
- const code = document.querySelector('#code');
78
- const worker = new Worker('worker.js');
79
- worker.onmessage = (event) => { code.innerHTML = event.data; }
80
- worker.postMessage(code.textContent);
81
- });
82
- ```
83
-
84
- В worker.js:
85
-
86
- ```js
87
- onmessage = (event) => {
88
- importScripts('<path>/highlight.pack.js');
89
- const result = self.hljs.highlightAuto(event.data);
90
- postMessage(result.value);
91
- };
92
- ```
93
-
94
-
95
- ## Установка библиотеки
96
-
97
- Highlight.js можно использовать в браузере прямо с CDN хостинга или скачать
98
- индивидуальную сборку, а также установив модуль на сервере. На
99
- [странице загрузки][5] подробно описаны все варианты.
100
-
101
- **Не подключайте GitHub напрямую.** Библиотека не предназначена для
102
- использования в виде исходного кода, а требует отдельной сборки. Если вам не
103
- подходит ни один из готовых вариантов, читайте [документацию по сборке][6].
104
-
105
- **Файл на CDN содержит не все языки.** Иначе он будет слишком большого размера.
106
- Если нужного вам языка нет в [категории "Common"][5], можно дообавить его
107
- вручную:
108
-
109
- ```html
110
- <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/languages/go.min.js"></script>
111
- ```
112
-
113
- **Про Almond.** Нужно задать имя модуля в оптимизаторе, например:
114
-
115
- ```
116
- r.js -o name=hljs paths.hljs=/path/to/highlight out=highlight.js
117
- ```
118
-
119
-
120
- ## Лицензия
121
-
122
- Highlight.js распространяется под лицензией BSD. Подробнее читайте файл
123
- [LICENSE][7].
124
-
125
-
126
- ## Ссылки
127
-
128
- Официальный сайт билиотеки расположен по адресу <https://highlightjs.org/>.
129
-
130
- Более подробная документация по API и другим темам расположена на
131
- <http://highlightjs.readthedocs.io/>.
132
-
133
- Авторы и контрибьюторы перечислены в файле [AUTHORS.ru.txt][8] file.
134
-
135
- [1]: http://highlightjs.readthedocs.io/en/latest/api.html#inithighlightingonload
136
- [2]: http://highlightjs.readthedocs.io/en/latest/css-classes-reference.html
137
- [3]: http://highlightjs.readthedocs.io/en/latest/api.html#highlightblock-block
138
- [4]: http://highlightjs.readthedocs.io/en/latest/api.html#configure-options
139
- [5]: https://highlightjs.org/download/
140
- [6]: http://highlightjs.readthedocs.io/en/latest/building-testing.html
141
- [7]: https://github.com/highlightjs/highlight.js/blob/master/LICENSE
142
- [8]: https://github.com/highlightjs/highlight.js/blob/master/AUTHORS.ru.txt
@@ -1,2 +0,0 @@
1
- /*! highlight.js v9.14.2 | BSD3 License | git.io/hljslicense */
2
- !function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):n&&(n.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return n.hljs}))}(function(e){function n(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0===t.index}function a(e){return k.test(e)}function i(e){var n,t,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",t=M.exec(o))return w(t[1])?t[1]:"no-highlight";for(o=o.split(/\s+/),n=0,r=o.length;r>n;n++)if(i=o[n],a(i)||w(i))return i}function o(e){var n,t={},r=Array.prototype.slice.call(arguments,1);for(n in e)t[n]=e[n];return r.forEach(function(e){for(n in e)t[n]=e[n]}),t}function c(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3===i.nodeType?a+=i.nodeValue.length:1===i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function u(e,r,a){function i(){return e.length&&r.length?e[0].offset!==r[0].offset?e[0].offset<r[0].offset?e:r:"start"===r[0].event?e:r:e.length?e:r}function o(e){function r(e){return" "+e.nodeName+'="'+n(e.value).replace('"',"&quot;")+'"'}l+="<"+t(e)+E.map.call(e.attributes,r).join("")+">"}function c(e){l+="</"+t(e)+">"}function u(e){("start"===e.event?o:c)(e.node)}for(var s=0,l="",f=[];e.length||r.length;){var g=i();if(l+=n(a.substring(s,g[0].offset)),s=g[0].offset,g===e){f.reverse().forEach(c);do u(g.splice(0,1)[0]),g=i();while(g===e&&g.length&&g[0].offset===s);f.reverse().forEach(o)}else"start"===g[0].event?f.push(g[0].node):f.pop(),u(g.splice(0,1)[0])}return l+n(a.substr(s))}function s(e){return e.v&&!e.cached_variants&&(e.cached_variants=e.v.map(function(n){return o(e,{v:null},n)})),e.cached_variants||e.eW&&[o(e)]||[e]}function l(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,i){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var o={},c=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");o[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?c("keyword",a.k):B(a.k).forEach(function(e){c(e,a.k[e])}),a.k=o}a.lR=t(a.l||/\w+/,!0),i&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.endSameAsBegin&&(a.e=a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&i.tE&&(a.tE+=(a.e?"|":"")+i.tE)),a.i&&(a.iR=t(a.i)),null==a.r&&(a.r=1),a.c||(a.c=[]),a.c=Array.prototype.concat.apply([],a.c.map(function(e){return s("self"===e?a:e)})),a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,i);var u=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=u.length?t(u.join("|"),!0):{exec:function(){return null}}}}r(e)}function f(e,t,a,i){function o(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function c(e,n){var t,a;for(t=0,a=n.c.length;a>t;t++)if(r(n.c[t].bR,e))return n.c[t].endSameAsBegin&&(n.c[t].eR=o(n.c[t].bR.exec(e)[0])),n.c[t]}function u(e,n){if(r(e.eR,n)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?u(e.parent,n):void 0}function s(e,n){return!a&&r(n.iR,e)}function p(e,n){var t=R.cI?n[0].toLowerCase():n[0];return e.k.hasOwnProperty(t)&&e.k[t]}function d(e,n,t,r){var a=r?"":j.classPrefix,i='<span class="'+a,o=t?"":I;return i+=e+'">',i+n+o}function h(){var e,t,r,a;if(!E.k)return n(k);for(a="",t=0,E.lR.lastIndex=0,r=E.lR.exec(k);r;)a+=n(k.substring(t,r.index)),e=p(E,r),e?(M+=e[1],a+=d(e[0],n(r[0]))):a+=n(r[0]),t=E.lR.lastIndex,r=E.lR.exec(k);return a+n(k.substr(t))}function b(){var e="string"==typeof E.sL;if(e&&!L[E.sL])return n(k);var t=e?f(E.sL,k,!0,B[E.sL]):g(k,E.sL.length?E.sL:void 0);return E.r>0&&(M+=t.r),e&&(B[E.sL]=t.top),d(t.language,t.value,!1,!0)}function v(){y+=null!=E.sL?b():h(),k=""}function m(e){y+=e.cN?d(e.cN,"",!0):"",E=Object.create(e,{parent:{value:E}})}function N(e,n){if(k+=e,null==n)return v(),0;var t=c(n,E);if(t)return t.skip?k+=n:(t.eB&&(k+=n),v(),t.rB||t.eB||(k=n)),m(t,n),t.rB?0:n.length;var r=u(E,n);if(r){var a=E;a.skip?k+=n:(a.rE||a.eE||(k+=n),v(),a.eE&&(k=n));do E.cN&&(y+=I),E.skip||E.sL||(M+=E.r),E=E.parent;while(E!==r.parent);return r.starts&&(r.endSameAsBegin&&(r.starts.eR=r.eR),m(r.starts,"")),a.rE?0:n.length}if(s(n,E))throw new Error('Illegal lexeme "'+n+'" for mode "'+(E.cN||"<unnamed>")+'"');return k+=n,n.length||1}var R=w(e);if(!R)throw new Error('Unknown language: "'+e+'"');l(R);var x,E=i||R,B={},y="";for(x=E;x!==R;x=x.parent)x.cN&&(y=d(x.cN,"",!0)+y);var k="",M=0;try{for(var C,A,S=0;;){if(E.t.lastIndex=S,C=E.t.exec(t),!C)break;A=N(t.substring(S,C.index),C[0]),S=C.index+A}for(N(t.substr(S)),x=E;x.parent;x=x.parent)x.cN&&(y+=I);return{r:M,value:y,language:e,top:E}}catch(O){if(O.message&&-1!==O.message.indexOf("Illegal"))return{r:0,value:n(t)};throw O}}function g(e,t){t=t||j.languages||B(L);var r={r:0,value:n(e)},a=r;return t.filter(w).filter(x).forEach(function(n){var t=f(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}),a.language&&(r.second_best=a),r}function p(e){return j.tabReplace||j.useBR?e.replace(C,function(e,n){return j.useBR&&"\n"===e?"<br>":j.tabReplace?n.replace(/\t/g,j.tabReplace):""}):e}function d(e,n,t){var r=n?y[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function h(e){var n,t,r,o,s,l=i(e);a(l)||(j.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):n=e,s=n.textContent,r=l?f(l,s,!0):g(s),t=c(n),t.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=r.value,r.value=u(t,c(o),s)),r.value=p(r.value),e.innerHTML=r.value,e.className=d(e.className,l,r.language),e.result={language:r.language,re:r.r},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.r}))}function b(e){j=o(j,e)}function v(){if(!v.called){v.called=!0;var e=document.querySelectorAll("pre code");E.forEach.call(e,h)}}function m(){addEventListener("DOMContentLoaded",v,!1),addEventListener("load",v,!1)}function N(n,t){var r=L[n]=t(e);r.aliases&&r.aliases.forEach(function(e){y[e]=n})}function R(){return B(L)}function w(e){return e=(e||"").toLowerCase(),L[e]||L[y[e]]}function x(e){var n=w(e);return n&&!n.disableAutodetect}var E=[],B=Object.keys,L={},y={},k=/^(no-?highlight|plain|text)$/i,M=/\blang(?:uage)?-([\w-]+)\b/i,C=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,I="</span>",j={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};return e.highlight=f,e.highlightAuto=g,e.fixMarkup=p,e.highlightBlock=h,e.configure=b,e.initHighlighting=v,e.initHighlightingOnLoad=m,e.registerLanguage=N,e.listLanguages=R,e.getLanguage=w,e.autoDetection=x,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e});hljs.registerLanguage("json",function(e){var i={literal:"true false null"},n=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:n,k:i},t={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(r,{b:/:/})],i:"\\S"},c={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return n.splice(n.length,0,t,c),{c:n,k:i,i:"\\S"}});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:c,r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}});hljs.registerLanguage("xml",function(s){var e="[A-Za-z0-9\\._:-]+",t={eW:!0,i:/</,r:0,c:[{cN:"attr",b:e,r:0},{b:/=\s*/,r:0,c:[{cN:"string",endsParent:!0,v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},s.C("<!--","-->",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"meta",b:/<\?xml/,e:/\?>/,r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0},{b:'b"',e:'"',skip:!0},{b:"b'",e:"'",skip:!0},s.inherit(s.ASM,{i:null,cN:null,c:null,skip:!0}),s.inherit(s.QSM,{i:null,cN:null,c:null,skip:!0})]},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{name:"style"},c:[t],starts:{e:"</style>",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{name:"script"},c:[t],starts:{e:"</script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}});hljs.registerLanguage("javascript",function(e){var r="[A-Za-z$_][0-9A-Za-z$_]*",t={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},a={cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},n={cN:"subst",b:"\\$\\{",e:"\\}",k:t,c:[]},c={cN:"string",b:"`",e:"`",c:[e.BE,n]};n.c=[e.ASM,e.QSM,c,a,e.RM];var s=n.c.concat([e.CBCM,e.CLCM]);return{aliases:["js","jsx"],k:t,c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,c,e.CLCM,e.CBCM,a,{b:/[{,]\s*/,r:0,c:[{b:r+"\\s*:",rB:!0,r:0,c:[{cN:"attr",b:r,r:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+r+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:r},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,c:s}]}]},{b:/</,e:/(\/\w+|\w+\/)>/,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:[{b:/<\w+\s*\/>/,skip:!0},"self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:r}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:s}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor get set",e:/\{/,eE:!0}],i:/#(?!!)/}});
@@ -1,99 +0,0 @@
1
- /* a11y-dark theme */
2
- /* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */
3
- /* @author: ericwbailey */
4
-
5
- /* Comment */
6
- .hljs-comment,
7
- .hljs-quote {
8
- color: #d4d0ab;
9
- }
10
-
11
- /* Red */
12
- .hljs-variable,
13
- .hljs-template-variable,
14
- .hljs-tag,
15
- .hljs-name,
16
- .hljs-selector-id,
17
- .hljs-selector-class,
18
- .hljs-regexp,
19
- .hljs-deletion {
20
- color: #ffa07a;
21
- }
22
-
23
- /* Orange */
24
- .hljs-number,
25
- .hljs-built_in,
26
- .hljs-builtin-name,
27
- .hljs-literal,
28
- .hljs-type,
29
- .hljs-params,
30
- .hljs-meta,
31
- .hljs-link {
32
- color: #f5ab35;
33
- }
34
-
35
- /* Yellow */
36
- .hljs-attribute {
37
- color: #ffd700;
38
- }
39
-
40
- /* Green */
41
- .hljs-string,
42
- .hljs-symbol,
43
- .hljs-bullet,
44
- .hljs-addition {
45
- color: #abe338;
46
- }
47
-
48
- /* Blue */
49
- .hljs-title,
50
- .hljs-section {
51
- color: #00e0e0;
52
- }
53
-
54
- /* Purple */
55
- .hljs-keyword,
56
- .hljs-selector-tag {
57
- color: #dcc6e0;
58
- }
59
-
60
- .hljs {
61
- display: block;
62
- overflow-x: auto;
63
- background: #2b2b2b;
64
- color: #f8f8f2;
65
- padding: 0.5em;
66
- }
67
-
68
- .hljs-emphasis {
69
- font-style: italic;
70
- }
71
-
72
- .hljs-strong {
73
- font-weight: bold;
74
- }
75
-
76
- @media screen and (-ms-high-contrast: active) {
77
- .hljs-addition,
78
- .hljs-attribute,
79
- .hljs-built_in,
80
- .hljs-builtin-name,
81
- .hljs-bullet,
82
- .hljs-comment,
83
- .hljs-link,
84
- .hljs-literal,
85
- .hljs-meta,
86
- .hljs-number,
87
- .hljs-params,
88
- .hljs-string,
89
- .hljs-symbol,
90
- .hljs-type,
91
- .hljs-quote {
92
- color: highlight;
93
- }
94
-
95
- .hljs-keyword,
96
- .hljs-selector-tag {
97
- font-weight: bold;
98
- }
99
- }
@@ -1,99 +0,0 @@
1
- /* a11y-light theme */
2
- /* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */
3
- /* @author: ericwbailey */
4
-
5
- /* Comment */
6
- .hljs-comment,
7
- .hljs-quote {
8
- color: #696969;
9
- }
10
-
11
- /* Red */
12
- .hljs-variable,
13
- .hljs-template-variable,
14
- .hljs-tag,
15
- .hljs-name,
16
- .hljs-selector-id,
17
- .hljs-selector-class,
18
- .hljs-regexp,
19
- .hljs-deletion {
20
- color: #d91e18;
21
- }
22
-
23
- /* Orange */
24
- .hljs-number,
25
- .hljs-built_in,
26
- .hljs-builtin-name,
27
- .hljs-literal,
28
- .hljs-type,
29
- .hljs-params,
30
- .hljs-meta,
31
- .hljs-link {
32
- color: #aa5d00;
33
- }
34
-
35
- /* Yellow */
36
- .hljs-attribute {
37
- color: #aa5d00;
38
- }
39
-
40
- /* Green */
41
- .hljs-string,
42
- .hljs-symbol,
43
- .hljs-bullet,
44
- .hljs-addition {
45
- color: #008000;
46
- }
47
-
48
- /* Blue */
49
- .hljs-title,
50
- .hljs-section {
51
- color: #007faa;
52
- }
53
-
54
- /* Purple */
55
- .hljs-keyword,
56
- .hljs-selector-tag {
57
- color: #7928a1;
58
- }
59
-
60
- .hljs {
61
- display: block;
62
- overflow-x: auto;
63
- background: #fefefe;
64
- color: #545454;
65
- padding: 0.5em;
66
- }
67
-
68
- .hljs-emphasis {
69
- font-style: italic;
70
- }
71
-
72
- .hljs-strong {
73
- font-weight: bold;
74
- }
75
-
76
- @media screen and (-ms-high-contrast: active) {
77
- .hljs-addition,
78
- .hljs-attribute,
79
- .hljs-built_in,
80
- .hljs-builtin-name,
81
- .hljs-bullet,
82
- .hljs-comment,
83
- .hljs-link,
84
- .hljs-literal,
85
- .hljs-meta,
86
- .hljs-number,
87
- .hljs-params,
88
- .hljs-string,
89
- .hljs-symbol,
90
- .hljs-type,
91
- .hljs-quote {
92
- color: highlight;
93
- }
94
-
95
- .hljs-keyword,
96
- .hljs-selector-tag {
97
- font-weight: bold;
98
- }
99
- }
@@ -1,108 +0,0 @@
1
- /*!
2
- * Agate by Taufik Nurrohman <https://github.com/tovic>
3
- * ----------------------------------------------------
4
- *
5
- * #ade5fc
6
- * #a2fca2
7
- * #c6b4f0
8
- * #d36363
9
- * #fcc28c
10
- * #fc9b9b
11
- * #ffa
12
- * #fff
13
- * #333
14
- * #62c8f3
15
- * #888
16
- *
17
- */
18
-
19
- .hljs {
20
- display: block;
21
- overflow-x: auto;
22
- padding: 0.5em;
23
- background: #333;
24
- color: white;
25
- }
26
-
27
- .hljs-name,
28
- .hljs-strong {
29
- font-weight: bold;
30
- }
31
-
32
- .hljs-code,
33
- .hljs-emphasis {
34
- font-style: italic;
35
- }
36
-
37
- .hljs-tag {
38
- color: #62c8f3;
39
- }
40
-
41
- .hljs-variable,
42
- .hljs-template-variable,
43
- .hljs-selector-id,
44
- .hljs-selector-class {
45
- color: #ade5fc;
46
- }
47
-
48
- .hljs-string,
49
- .hljs-bullet {
50
- color: #a2fca2;
51
- }
52
-
53
- .hljs-type,
54
- .hljs-title,
55
- .hljs-section,
56
- .hljs-attribute,
57
- .hljs-quote,
58
- .hljs-built_in,
59
- .hljs-builtin-name {
60
- color: #ffa;
61
- }
62
-
63
- .hljs-number,
64
- .hljs-symbol,
65
- .hljs-bullet {
66
- color: #d36363;
67
- }
68
-
69
- .hljs-keyword,
70
- .hljs-selector-tag,
71
- .hljs-literal {
72
- color: #fcc28c;
73
- }
74
-
75
- .hljs-comment,
76
- .hljs-deletion,
77
- .hljs-code {
78
- color: #888;
79
- }
80
-
81
- .hljs-regexp,
82
- .hljs-link {
83
- color: #c6b4f0;
84
- }
85
-
86
- .hljs-meta {
87
- color: #fc9b9b;
88
- }
89
-
90
- .hljs-deletion {
91
- background-color: #fc9b9b;
92
- color: #333;
93
- }
94
-
95
- .hljs-addition {
96
- background-color: #a2fca2;
97
- color: #333;
98
- }
99
-
100
- .hljs a {
101
- color: inherit;
102
- }
103
-
104
- .hljs a:focus,
105
- .hljs a:hover {
106
- color: inherit;
107
- text-decoration: underline;
108
- }