vditor 3.8.7

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 (419) hide show
  1. package/CHANGELOG.md +1072 -0
  2. package/LICENSE +21 -0
  3. package/README.md +649 -0
  4. package/dist/css/content-theme/ant-design.css +210 -0
  5. package/dist/css/content-theme/dark.css +123 -0
  6. package/dist/css/content-theme/light.css +101 -0
  7. package/dist/css/content-theme/wechat.css +94 -0
  8. package/dist/images/.DS_Store +0 -0
  9. package/dist/images/emoji/b3log.png +0 -0
  10. package/dist/images/emoji/chainbook.png +0 -0
  11. package/dist/images/emoji/doge.png +0 -0
  12. package/dist/images/emoji/hacpai.png +0 -0
  13. package/dist/images/emoji/huaji.gif +0 -0
  14. package/dist/images/emoji/latke.png +0 -0
  15. package/dist/images/emoji/lute.png +0 -0
  16. package/dist/images/emoji/octocat.png +0 -0
  17. package/dist/images/emoji/pipe.png +0 -0
  18. package/dist/images/emoji/solo.png +0 -0
  19. package/dist/images/emoji/sym.png +0 -0
  20. package/dist/images/emoji/trollface.png +0 -0
  21. package/dist/images/emoji/vditor.png +0 -0
  22. package/dist/images/emoji/wide.png +0 -0
  23. package/dist/images/emoji/wulian.png +0 -0
  24. package/dist/images/img-loading.svg +1 -0
  25. package/dist/images/logo.png +0 -0
  26. package/dist/index.css +28 -0
  27. package/dist/index.d.ts +75 -0
  28. package/dist/index.min.js +15353 -0
  29. package/dist/js/.DS_Store +0 -0
  30. package/dist/js/abcjs/abcjs_basic.min.js +3 -0
  31. package/dist/js/echarts/echarts.min.js +23 -0
  32. package/dist/js/flowchart.js/flowchart.min.js +9 -0
  33. package/dist/js/graphviz/full.render.js +90 -0
  34. package/dist/js/graphviz/viz.js +333 -0
  35. package/dist/js/highlight.js/highlight.pack.js +1617 -0
  36. package/dist/js/highlight.js/styles/abap.css +155 -0
  37. package/dist/js/highlight.js/styles/algol.css +142 -0
  38. package/dist/js/highlight.js/styles/algol_nu.css +90 -0
  39. package/dist/js/highlight.js/styles/ant-design.css +469 -0
  40. package/dist/js/highlight.js/styles/arduino.css +155 -0
  41. package/dist/js/highlight.js/styles/autumn.css +136 -0
  42. package/dist/js/highlight.js/styles/borland.css +146 -0
  43. package/dist/js/highlight.js/styles/bw.css +149 -0
  44. package/dist/js/highlight.js/styles/colorful.css +156 -0
  45. package/dist/js/highlight.js/styles/dracula.css +139 -0
  46. package/dist/js/highlight.js/styles/emacs.css +166 -0
  47. package/dist/js/highlight.js/styles/friendly.css +182 -0
  48. package/dist/js/highlight.js/styles/fruity.css +121 -0
  49. package/dist/js/highlight.js/styles/github.css +173 -0
  50. package/dist/js/highlight.js/styles/igor.css +122 -0
  51. package/dist/js/highlight.js/styles/lovelace.css +145 -0
  52. package/dist/js/highlight.js/styles/manni.css +138 -0
  53. package/dist/js/highlight.js/styles/monokai.css +131 -0
  54. package/dist/js/highlight.js/styles/monokailight.css +179 -0
  55. package/dist/js/highlight.js/styles/murphy.css +144 -0
  56. package/dist/js/highlight.js/styles/native.css +163 -0
  57. package/dist/js/highlight.js/styles/paraiso-dark.css +136 -0
  58. package/dist/js/highlight.js/styles/paraiso-light.css +135 -0
  59. package/dist/js/highlight.js/styles/pastie.css +180 -0
  60. package/dist/js/highlight.js/styles/perldoc.css +140 -0
  61. package/dist/js/highlight.js/styles/pygments.css +158 -0
  62. package/dist/js/highlight.js/styles/rainbow_dash.css +163 -0
  63. package/dist/js/highlight.js/styles/rrt.css +158 -0
  64. package/dist/js/highlight.js/styles/solarized-dark.css +145 -0
  65. package/dist/js/highlight.js/styles/solarized-dark256.css +145 -0
  66. package/dist/js/highlight.js/styles/solarized-light.css +162 -0
  67. package/dist/js/highlight.js/styles/swapoff.css +144 -0
  68. package/dist/js/highlight.js/styles/tango.css +183 -0
  69. package/dist/js/highlight.js/styles/trac.css +166 -0
  70. package/dist/js/highlight.js/styles/vim.css +143 -0
  71. package/dist/js/highlight.js/styles/vs.css +112 -0
  72. package/dist/js/highlight.js/styles/xcode.css +173 -0
  73. package/dist/js/i18n/en_US.js +85 -0
  74. package/dist/js/i18n/ja_JP.js +85 -0
  75. package/dist/js/i18n/ko_KR.js +85 -0
  76. package/dist/js/i18n/ru_RU.js +85 -0
  77. package/dist/js/i18n/zh_CN.js +85 -0
  78. package/dist/js/i18n/zh_TW.js +85 -0
  79. package/dist/js/icons/ant.js +174 -0
  80. package/dist/js/icons/material.js +195 -0
  81. package/dist/js/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
  82. package/dist/js/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  83. package/dist/js/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  84. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  85. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  86. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  87. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  88. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  89. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  90. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  91. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  92. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  93. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  94. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  95. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  96. package/dist/js/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
  97. package/dist/js/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  98. package/dist/js/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  99. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  100. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  101. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  102. package/dist/js/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
  103. package/dist/js/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  104. package/dist/js/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  105. package/dist/js/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
  106. package/dist/js/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  107. package/dist/js/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  108. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  109. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  110. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  111. package/dist/js/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
  112. package/dist/js/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  113. package/dist/js/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  114. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  115. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  116. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  117. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  118. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  119. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  120. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  121. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  122. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  123. package/dist/js/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
  124. package/dist/js/katex/fonts/KaTeX_Script-Regular.woff +0 -0
  125. package/dist/js/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  126. package/dist/js/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
  127. package/dist/js/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  128. package/dist/js/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  129. package/dist/js/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
  130. package/dist/js/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  131. package/dist/js/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  132. package/dist/js/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
  133. package/dist/js/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  134. package/dist/js/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  135. package/dist/js/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
  136. package/dist/js/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  137. package/dist/js/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  138. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  139. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  140. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  141. package/dist/js/katex/katex.min.css +1 -0
  142. package/dist/js/katex/katex.min.js +2 -0
  143. package/dist/js/lute/.DS_Store +0 -0
  144. package/dist/js/lute/lute.min.js +46 -0
  145. package/dist/js/mathjax/.DS_Store +0 -0
  146. package/dist/js/mathjax/LICENSE +202 -0
  147. package/dist/js/mathjax/a11y/assistive-mml.js +1 -0
  148. package/dist/js/mathjax/a11y/complexity.js +1 -0
  149. package/dist/js/mathjax/a11y/explorer.js +1 -0
  150. package/dist/js/mathjax/a11y/semantic-enrich.js +1 -0
  151. package/dist/js/mathjax/input/asciimath.js +1 -0
  152. package/dist/js/mathjax/input/mml/entities.js +1 -0
  153. package/dist/js/mathjax/input/mml.js +1 -0
  154. package/dist/js/mathjax/input/tex/extensions/action.js +1 -0
  155. package/dist/js/mathjax/input/tex/extensions/all-packages.js +1 -0
  156. package/dist/js/mathjax/input/tex/extensions/ams.js +1 -0
  157. package/dist/js/mathjax/input/tex/extensions/amscd.js +1 -0
  158. package/dist/js/mathjax/input/tex/extensions/autoload.js +1 -0
  159. package/dist/js/mathjax/input/tex/extensions/bbox.js +1 -0
  160. package/dist/js/mathjax/input/tex/extensions/boldsymbol.js +1 -0
  161. package/dist/js/mathjax/input/tex/extensions/braket.js +1 -0
  162. package/dist/js/mathjax/input/tex/extensions/bussproofs.js +1 -0
  163. package/dist/js/mathjax/input/tex/extensions/cancel.js +1 -0
  164. package/dist/js/mathjax/input/tex/extensions/color.js +1 -0
  165. package/dist/js/mathjax/input/tex/extensions/colorV2.js +1 -0
  166. package/dist/js/mathjax/input/tex/extensions/configMacros.js +1 -0
  167. package/dist/js/mathjax/input/tex/extensions/enclose.js +1 -0
  168. package/dist/js/mathjax/input/tex/extensions/extpfeil.js +1 -0
  169. package/dist/js/mathjax/input/tex/extensions/html.js +1 -0
  170. package/dist/js/mathjax/input/tex/extensions/mhchem.js +1 -0
  171. package/dist/js/mathjax/input/tex/extensions/newcommand.js +1 -0
  172. package/dist/js/mathjax/input/tex/extensions/noerrors.js +1 -0
  173. package/dist/js/mathjax/input/tex/extensions/noundefined.js +1 -0
  174. package/dist/js/mathjax/input/tex/extensions/physics.js +1 -0
  175. package/dist/js/mathjax/input/tex/extensions/require.js +1 -0
  176. package/dist/js/mathjax/input/tex/extensions/tagFormat.js +1 -0
  177. package/dist/js/mathjax/input/tex/extensions/textmacros.js +1 -0
  178. package/dist/js/mathjax/input/tex/extensions/unicode.js +1 -0
  179. package/dist/js/mathjax/input/tex/extensions/verb.js +1 -0
  180. package/dist/js/mathjax/input/tex-base.js +1 -0
  181. package/dist/js/mathjax/input/tex-full.js +1 -0
  182. package/dist/js/mathjax/input/tex.js +1 -0
  183. package/dist/js/mathjax/sre/mathmaps/de.js +104 -0
  184. package/dist/js/mathjax/sre/mathmaps/en.js +110 -0
  185. package/dist/js/mathjax/sre/mathmaps/es.js +104 -0
  186. package/dist/js/mathjax/sre/mathmaps/fr.js +104 -0
  187. package/dist/js/mathjax/sre/mathmaps/mathmaps_ie.js +518 -0
  188. package/dist/js/mathjax/sre/mathmaps/nemeth.js +104 -0
  189. package/dist/js/mathjax/sre/sre-node.js +11 -0
  190. package/dist/js/mathjax/sre/sre_browser.js +1633 -0
  191. package/dist/js/mathjax/tex-svg-full.js +1 -0
  192. package/dist/js/mermaid/mermaid.min.js +32 -0
  193. package/dist/js/plantuml/plantuml-encoder.min.js +1 -0
  194. package/dist/method.d.ts +48 -0
  195. package/dist/method.min.js +2346 -0
  196. package/dist/ts/constants.d.ts +43 -0
  197. package/dist/ts/devtools/index.d.ts +7 -0
  198. package/dist/ts/export/index.d.ts +5 -0
  199. package/dist/ts/hint/index.d.ts +14 -0
  200. package/dist/ts/ir/expandMarker.d.ts +2 -0
  201. package/dist/ts/ir/highlightToolbarIR.d.ts +2 -0
  202. package/dist/ts/ir/index.d.ts +13 -0
  203. package/dist/ts/ir/input.d.ts +2 -0
  204. package/dist/ts/ir/process.d.ts +9 -0
  205. package/dist/ts/ir/processKeydown.d.ts +2 -0
  206. package/dist/ts/markdown/abcRender.d.ts +1 -0
  207. package/dist/ts/markdown/adapterRender.d.ts +33 -0
  208. package/dist/ts/markdown/anchorRender.d.ts +1 -0
  209. package/dist/ts/markdown/chartRender.d.ts +1 -0
  210. package/dist/ts/markdown/codeRender.d.ts +1 -0
  211. package/dist/ts/markdown/flowchartRender.d.ts +1 -0
  212. package/dist/ts/markdown/getHTML.d.ts +2 -0
  213. package/dist/ts/markdown/getMarkdown.d.ts +2 -0
  214. package/dist/ts/markdown/graphvizRender.d.ts +1 -0
  215. package/dist/ts/markdown/highlightRender.d.ts +2 -0
  216. package/dist/ts/markdown/lazyLoadImageRender.d.ts +6 -0
  217. package/dist/ts/markdown/mathRender.d.ts +10 -0
  218. package/dist/ts/markdown/mediaRender.d.ts +1 -0
  219. package/dist/ts/markdown/mermaidRender.d.ts +1 -0
  220. package/dist/ts/markdown/mindmapRender.d.ts +1 -0
  221. package/dist/ts/markdown/outlineRender.d.ts +2 -0
  222. package/dist/ts/markdown/plantumlRender.d.ts +1 -0
  223. package/dist/ts/markdown/previewRender.d.ts +3 -0
  224. package/dist/ts/markdown/setLute.d.ts +2 -0
  225. package/dist/ts/markdown/speechRender.d.ts +7 -0
  226. package/dist/ts/outline/index.d.ts +7 -0
  227. package/dist/ts/preview/image.d.ts +2 -0
  228. package/dist/ts/preview/index.d.ts +9 -0
  229. package/dist/ts/resize/index.d.ts +6 -0
  230. package/dist/ts/sv/index.d.ts +13 -0
  231. package/dist/ts/sv/inputEvent.d.ts +2 -0
  232. package/dist/ts/sv/process.d.ts +12 -0
  233. package/dist/ts/sv/processKeydown.d.ts +2 -0
  234. package/dist/ts/tip/index.d.ts +6 -0
  235. package/dist/ts/toolbar/Both.d.ts +5 -0
  236. package/dist/ts/toolbar/Br.d.ts +4 -0
  237. package/dist/ts/toolbar/CodeTheme.d.ts +6 -0
  238. package/dist/ts/toolbar/ContentTheme.d.ts +6 -0
  239. package/dist/ts/toolbar/Counter.d.ts +6 -0
  240. package/dist/ts/toolbar/Custom.d.ts +5 -0
  241. package/dist/ts/toolbar/Devtools.d.ts +5 -0
  242. package/dist/ts/toolbar/Divider.d.ts +4 -0
  243. package/dist/ts/toolbar/EditMode.d.ts +8 -0
  244. package/dist/ts/toolbar/Emoji.d.ts +7 -0
  245. package/dist/ts/toolbar/Export.d.ts +6 -0
  246. package/dist/ts/toolbar/Fullscreen.d.ts +6 -0
  247. package/dist/ts/toolbar/Headings.d.ts +7 -0
  248. package/dist/ts/toolbar/Help.d.ts +5 -0
  249. package/dist/ts/toolbar/Indent.d.ts +5 -0
  250. package/dist/ts/toolbar/Info.d.ts +5 -0
  251. package/dist/ts/toolbar/InsertAfter.d.ts +5 -0
  252. package/dist/ts/toolbar/InsertBefore.d.ts +5 -0
  253. package/dist/ts/toolbar/MenuItem.d.ts +5 -0
  254. package/dist/ts/toolbar/Outdent.d.ts +5 -0
  255. package/dist/ts/toolbar/Outline.d.ts +5 -0
  256. package/dist/ts/toolbar/Preview.d.ts +6 -0
  257. package/dist/ts/toolbar/Record.d.ts +6 -0
  258. package/dist/ts/toolbar/Redo.d.ts +5 -0
  259. package/dist/ts/toolbar/Undo.d.ts +5 -0
  260. package/dist/ts/toolbar/Upload.d.ts +6 -0
  261. package/dist/ts/toolbar/index.d.ts +9 -0
  262. package/dist/ts/toolbar/setToolbar.d.ts +21 -0
  263. package/dist/ts/ui/initUI.d.ts +9 -0
  264. package/dist/ts/ui/setCodeTheme.d.ts +1 -0
  265. package/dist/ts/ui/setContentTheme.d.ts +1 -0
  266. package/dist/ts/ui/setPreviewMode.d.ts +2 -0
  267. package/dist/ts/ui/setTheme.d.ts +2 -0
  268. package/dist/ts/undo/index.d.ts +19 -0
  269. package/dist/ts/upload/getElement.d.ts +2 -0
  270. package/dist/ts/upload/index.d.ts +9 -0
  271. package/dist/ts/upload/setHeaders.d.ts +2 -0
  272. package/dist/ts/util/Options.d.ts +8 -0
  273. package/dist/ts/util/RecordMedia.d.ts +18 -0
  274. package/dist/ts/util/addScript.d.ts +2 -0
  275. package/dist/ts/util/addStyle.d.ts +1 -0
  276. package/dist/ts/util/code160to32.d.ts +1 -0
  277. package/dist/ts/util/compatibility.d.ts +7 -0
  278. package/dist/ts/util/editorCommonEvent.d.ts +10 -0
  279. package/dist/ts/util/fixBrowserBehavior.d.ts +40 -0
  280. package/dist/ts/util/getSelectText.d.ts +1 -0
  281. package/dist/ts/util/hasClosest.d.ts +9 -0
  282. package/dist/ts/util/hasClosestByHeadings.d.ts +2 -0
  283. package/dist/ts/util/highlightToolbar.d.ts +2 -0
  284. package/dist/ts/util/hotKey.d.ts +1 -0
  285. package/dist/ts/util/log.d.ts +1 -0
  286. package/dist/ts/util/merge.d.ts +1 -0
  287. package/dist/ts/util/processCode.d.ts +3 -0
  288. package/dist/ts/util/selection.d.ts +15 -0
  289. package/dist/ts/util/toc.d.ts +6 -0
  290. package/dist/ts/wysiwyg/afterRenderEvent.d.ts +6 -0
  291. package/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +5 -0
  292. package/dist/ts/wysiwyg/index.d.ts +20 -0
  293. package/dist/ts/wysiwyg/inlineTag.d.ts +11 -0
  294. package/dist/ts/wysiwyg/input.d.ts +2 -0
  295. package/dist/ts/wysiwyg/processKeydown.d.ts +3 -0
  296. package/dist/ts/wysiwyg/renderDomByMd.d.ts +6 -0
  297. package/dist/ts/wysiwyg/setHeading.d.ts +3 -0
  298. package/dist/ts/wysiwyg/showCode.d.ts +2 -0
  299. package/dist/ts/wysiwyg/toolbarEvent.d.ts +2 -0
  300. package/dist/types/index.d.ts +772 -0
  301. package/package.json +69 -0
  302. package/src/assets/.DS_Store +0 -0
  303. package/src/assets/scss/_content.scss +284 -0
  304. package/src/assets/scss/_hint.scss +67 -0
  305. package/src/assets/scss/_ir.scss +275 -0
  306. package/src/assets/scss/_panel.scss +110 -0
  307. package/src/assets/scss/_reset.scss +603 -0
  308. package/src/assets/scss/_sv.scss +133 -0
  309. package/src/assets/scss/_toolbar.scss +180 -0
  310. package/src/assets/scss/_tooltipped.scss +171 -0
  311. package/src/assets/scss/_wysiwyg.scss +195 -0
  312. package/src/assets/scss/index.scss +83 -0
  313. package/src/index.ts +502 -0
  314. package/src/method.ts +65 -0
  315. package/src/ts/.DS_Store +0 -0
  316. package/src/ts/constants.ts +64 -0
  317. package/src/ts/devtools/index.ts +83 -0
  318. package/src/ts/export/index.ts +81 -0
  319. package/src/ts/hint/index.ts +267 -0
  320. package/src/ts/ir/expandMarker.ts +79 -0
  321. package/src/ts/ir/highlightToolbarIR.ts +97 -0
  322. package/src/ts/ir/index.ts +251 -0
  323. package/src/ts/ir/input.ts +231 -0
  324. package/src/ts/ir/process.ts +220 -0
  325. package/src/ts/ir/processKeydown.ts +238 -0
  326. package/src/ts/markdown/abcRender.ts +27 -0
  327. package/src/ts/markdown/adapterRender.ts +33 -0
  328. package/src/ts/markdown/anchorRender.ts +19 -0
  329. package/src/ts/markdown/chartRender.ts +37 -0
  330. package/src/ts/markdown/codeRender.ts +50 -0
  331. package/src/ts/markdown/flowchartRender.ts +25 -0
  332. package/src/ts/markdown/getHTML.ts +11 -0
  333. package/src/ts/markdown/getMarkdown.ts +12 -0
  334. package/src/ts/markdown/graphvizRender.ts +49 -0
  335. package/src/ts/markdown/highlightRender.ts +82 -0
  336. package/src/ts/markdown/lazyLoadImageRender.ts +56 -0
  337. package/src/ts/markdown/mathRender.ts +142 -0
  338. package/src/ts/markdown/mediaRender.ts +78 -0
  339. package/src/ts/markdown/mermaidRender.ts +127 -0
  340. package/src/ts/markdown/mindmapRender.ts +74 -0
  341. package/src/ts/markdown/outlineRender.ts +106 -0
  342. package/src/ts/markdown/plantumlRender.ts +32 -0
  343. package/src/ts/markdown/previewRender.ts +143 -0
  344. package/src/ts/markdown/setLute.ts +23 -0
  345. package/src/ts/markdown/speechRender.ts +97 -0
  346. package/src/ts/outline/index.ts +47 -0
  347. package/src/ts/preview/image.ts +50 -0
  348. package/src/ts/preview/index.ts +266 -0
  349. package/src/ts/resize/index.ts +57 -0
  350. package/src/ts/sv/index.ts +119 -0
  351. package/src/ts/sv/inputEvent.ts +207 -0
  352. package/src/ts/sv/process.ts +210 -0
  353. package/src/ts/sv/processKeydown.ts +196 -0
  354. package/src/ts/tip/index.ts +31 -0
  355. package/src/ts/toolbar/Both.ts +28 -0
  356. package/src/ts/toolbar/Br.ts +8 -0
  357. package/src/ts/toolbar/CodeTheme.ts +36 -0
  358. package/src/ts/toolbar/ContentTheme.ts +35 -0
  359. package/src/ts/toolbar/Counter.ts +40 -0
  360. package/src/ts/toolbar/Custom.ts +17 -0
  361. package/src/ts/toolbar/Devtools.ts +28 -0
  362. package/src/ts/toolbar/Divider.ts +8 -0
  363. package/src/ts/toolbar/EditMode.ts +193 -0
  364. package/src/ts/toolbar/Emoji.ts +75 -0
  365. package/src/ts/toolbar/Export.ts +41 -0
  366. package/src/ts/toolbar/Fullscreen.ts +61 -0
  367. package/src/ts/toolbar/Headings.ts +69 -0
  368. package/src/ts/toolbar/Help.ts +30 -0
  369. package/src/ts/toolbar/Indent.ts +25 -0
  370. package/src/ts/toolbar/Info.ts +43 -0
  371. package/src/ts/toolbar/InsertAfter.ts +18 -0
  372. package/src/ts/toolbar/InsertBefore.ts +18 -0
  373. package/src/ts/toolbar/MenuItem.ts +54 -0
  374. package/src/ts/toolbar/Outdent.ts +24 -0
  375. package/src/ts/toolbar/Outline.ts +21 -0
  376. package/src/ts/toolbar/Preview.ts +55 -0
  377. package/src/ts/toolbar/Record.ts +60 -0
  378. package/src/ts/toolbar/Redo.ts +18 -0
  379. package/src/ts/toolbar/Undo.ts +18 -0
  380. package/src/ts/toolbar/Upload.ts +41 -0
  381. package/src/ts/toolbar/index.ts +175 -0
  382. package/src/ts/toolbar/setToolbar.ts +120 -0
  383. package/src/ts/ui/initUI.ts +164 -0
  384. package/src/ts/ui/setCodeTheme.ts +16 -0
  385. package/src/ts/ui/setContentTheme.ts +15 -0
  386. package/src/ts/ui/setPreviewMode.ts +31 -0
  387. package/src/ts/ui/setTheme.ts +7 -0
  388. package/src/ts/undo/index.ts +255 -0
  389. package/src/ts/upload/getElement.ts +10 -0
  390. package/src/ts/upload/index.ts +257 -0
  391. package/src/ts/upload/setHeaders.ts +10 -0
  392. package/src/ts/util/Options.ts +429 -0
  393. package/src/ts/util/RecordMedia.ts +170 -0
  394. package/src/ts/util/addScript.ts +40 -0
  395. package/src/ts/util/addStyle.ts +10 -0
  396. package/src/ts/util/code160to32.ts +4 -0
  397. package/src/ts/util/compatibility.ts +67 -0
  398. package/src/ts/util/editorCommonEvent.ts +254 -0
  399. package/src/ts/util/fixBrowserBehavior.ts +1459 -0
  400. package/src/ts/util/getSelectText.ts +8 -0
  401. package/src/ts/util/hasClosest.ts +154 -0
  402. package/src/ts/util/hasClosestByHeadings.ts +27 -0
  403. package/src/ts/util/highlightToolbar.ts +10 -0
  404. package/src/ts/util/hotKey.ts +54 -0
  405. package/src/ts/util/log.ts +6 -0
  406. package/src/ts/util/merge.ts +18 -0
  407. package/src/ts/util/processCode.ts +90 -0
  408. package/src/ts/util/selection.ts +275 -0
  409. package/src/ts/util/toc.ts +83 -0
  410. package/src/ts/wysiwyg/afterRenderEvent.ts +41 -0
  411. package/src/ts/wysiwyg/highlightToolbarWYSIWYG.ts +1105 -0
  412. package/src/ts/wysiwyg/index.ts +547 -0
  413. package/src/ts/wysiwyg/inlineTag.ts +129 -0
  414. package/src/ts/wysiwyg/input.ts +210 -0
  415. package/src/ts/wysiwyg/processKeydown.ts +363 -0
  416. package/src/ts/wysiwyg/renderDomByMd.ts +18 -0
  417. package/src/ts/wysiwyg/setHeading.ts +43 -0
  418. package/src/ts/wysiwyg/showCode.ts +32 -0
  419. package/src/ts/wysiwyg/toolbarEvent.ts +333 -0
@@ -0,0 +1,139 @@
1
+ /* Background */ .highlight-chroma { color: #f8f8f2; background-color: #282a36 }
2
+ /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
3
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
4
+ /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #3d3f4a }
5
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
6
+ /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
7
+ /* Keyword */ .highlight-chroma .highlight-k { color: #ff79c6 }
8
+ /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #ff79c6 }
9
+ /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #8be9fd; font-style: italic }
10
+ /* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #ff79c6 }
11
+ /* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #ff79c6 }
12
+ /* KeywordReserved */ .highlight-chroma .highlight-kr { color: #ff79c6 }
13
+ /* KeywordType */ .highlight-chroma .highlight-kt { color: #8be9fd }
14
+ /* NameAttribute */ .highlight-chroma .highlight-na { color: #50fa7b }
15
+ /* NameBuiltin */ .highlight-chroma .highlight-nb { color: #8be9fd; font-style: italic }
16
+ /* NameClass */ .highlight-chroma .highlight-nc { color: #50fa7b }
17
+ /* NameFunction */ .highlight-chroma .highlight-nf { color: #50fa7b }
18
+ /* NameLabel */ .highlight-chroma .highlight-nl { color: #8be9fd; font-style: italic }
19
+ /* NameTag */ .highlight-chroma .highlight-nt { color: #ff79c6 }
20
+ /* NameVariable */ .highlight-chroma .highlight-nv { color: #8be9fd; font-style: italic }
21
+ /* NameVariableClass */ .highlight-chroma .highlight-vc { color: #8be9fd; font-style: italic }
22
+ /* NameVariableGlobal */ .highlight-chroma .highlight-vg { color: #8be9fd; font-style: italic }
23
+ /* NameVariableInstance */ .highlight-chroma .highlight-vi { color: #8be9fd; font-style: italic }
24
+ /* LiteralString */ .highlight-chroma .highlight-s { color: #f1fa8c }
25
+ /* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #f1fa8c }
26
+ /* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #f1fa8c }
27
+ /* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #f1fa8c }
28
+ /* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #f1fa8c }
29
+ /* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #f1fa8c }
30
+ /* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #f1fa8c }
31
+ /* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #f1fa8c }
32
+ /* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #f1fa8c }
33
+ /* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #f1fa8c }
34
+ /* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #f1fa8c }
35
+ /* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #f1fa8c }
36
+ /* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #f1fa8c }
37
+ /* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #f1fa8c }
38
+ /* LiteralNumber */ .highlight-chroma .highlight-m { color: #bd93f9 }
39
+ /* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #bd93f9 }
40
+ /* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #bd93f9 }
41
+ /* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #bd93f9 }
42
+ /* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #bd93f9 }
43
+ /* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #bd93f9 }
44
+ /* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #bd93f9 }
45
+ /* Operator */ .highlight-chroma .highlight-o { color: #ff79c6 }
46
+ /* OperatorWord */ .highlight-chroma .highlight-ow { color: #ff79c6 }
47
+ /* Comment */ .highlight-chroma .highlight-c { color: #6272a4 }
48
+ /* CommentHashbang */ .highlight-chroma .highlight-ch { color: #6272a4 }
49
+ /* CommentMultiline */ .highlight-chroma .highlight-cm { color: #6272a4 }
50
+ /* CommentSingle */ .highlight-chroma .highlight-c1 { color: #6272a4 }
51
+ /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #6272a4 }
52
+ /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #ff79c6 }
53
+ /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #ff79c6 }
54
+ /* GenericDeleted */ .highlight-chroma .highlight-gd { color: #8b080b }
55
+ /* GenericEmph */ .highlight-chroma .highlight-ge { text-decoration: underline }
56
+ /* GenericHeading */ .highlight-chroma .highlight-gh { font-weight: bold }
57
+ /* GenericInserted */ .highlight-chroma .highlight-gi { font-weight: bold }
58
+ /* GenericOutput */ .highlight-chroma .highlight-go { color: #44475a }
59
+ /* GenericSubheading */ .highlight-chroma .highlight-gu { font-weight: bold }
60
+ /* GenericUnderline */ .highlight-chroma .highlight-gl { text-decoration: underline }
61
+
62
+ /*
63
+
64
+ Darcula color scheme from the JetBrains family of IDEs
65
+
66
+ */
67
+
68
+
69
+ .hljs {
70
+ display: block;
71
+ overflow-x: auto;
72
+ padding: 0.5em;
73
+ background: #2b2b2b;
74
+ }
75
+
76
+ .hljs {
77
+ color: #bababa;
78
+ }
79
+
80
+ .hljs-strong,
81
+ .hljs-emphasis {
82
+ color: #a8a8a2;
83
+ }
84
+
85
+ .hljs-bullet,
86
+ .hljs-quote,
87
+ .hljs-link,
88
+ .hljs-number,
89
+ .hljs-regexp,
90
+ .hljs-literal {
91
+ color: #6896ba;
92
+ }
93
+
94
+ .hljs-code,
95
+ .hljs-selector-class {
96
+ color: #a6e22e;
97
+ }
98
+
99
+ .hljs-emphasis {
100
+ font-style: italic;
101
+ }
102
+
103
+ .hljs-keyword,
104
+ .hljs-selector-tag,
105
+ .hljs-section,
106
+ .hljs-attribute,
107
+ .hljs-name,
108
+ .hljs-variable {
109
+ color: #cb7832;
110
+ }
111
+
112
+ .hljs-params {
113
+ color: #b9b9b9;
114
+ }
115
+
116
+ .hljs-string {
117
+ color: #6a8759;
118
+ }
119
+
120
+ .hljs-subst,
121
+ .hljs-type,
122
+ .hljs-built_in,
123
+ .hljs-builtin-name,
124
+ .hljs-symbol,
125
+ .hljs-selector-id,
126
+ .hljs-selector-attr,
127
+ .hljs-selector-pseudo,
128
+ .hljs-template-tag,
129
+ .hljs-template-variable,
130
+ .hljs-addition {
131
+ color: #e0c46c;
132
+ }
133
+
134
+ .hljs-comment,
135
+ .hljs-deletion,
136
+ .hljs-meta {
137
+ color: #7f7f7f;
138
+ }
139
+
@@ -0,0 +1,166 @@
1
+ /* Background */ .highlight-chroma { background-color: #f8f8f8 }
2
+ /* Error */ .highlight-chroma .highlight-err { }
3
+ /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
5
+ /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #dfdfdf }
6
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
7
+ /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
8
+ /* Keyword */ .highlight-chroma .highlight-k { color: #aa22ff; font-weight: bold }
9
+ /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #aa22ff; font-weight: bold }
10
+ /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #aa22ff; font-weight: bold }
11
+ /* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #aa22ff; font-weight: bold }
12
+ /* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #aa22ff }
13
+ /* KeywordReserved */ .highlight-chroma .highlight-kr { color: #aa22ff; font-weight: bold }
14
+ /* KeywordType */ .highlight-chroma .highlight-kt { color: #00bb00; font-weight: bold }
15
+ /* NameAttribute */ .highlight-chroma .highlight-na { color: #bb4444 }
16
+ /* NameBuiltin */ .highlight-chroma .highlight-nb { color: #aa22ff }
17
+ /* NameClass */ .highlight-chroma .highlight-nc { color: #0000ff }
18
+ /* NameConstant */ .highlight-chroma .highlight-no { color: #880000 }
19
+ /* NameDecorator */ .highlight-chroma .highlight-nd { color: #aa22ff }
20
+ /* NameEntity */ .highlight-chroma .highlight-ni { color: #999999; font-weight: bold }
21
+ /* NameException */ .highlight-chroma .highlight-ne { color: #d2413a; font-weight: bold }
22
+ /* NameFunction */ .highlight-chroma .highlight-nf { color: #00a000 }
23
+ /* NameLabel */ .highlight-chroma .highlight-nl { color: #a0a000 }
24
+ /* NameNamespace */ .highlight-chroma .highlight-nn { color: #0000ff; font-weight: bold }
25
+ /* NameTag */ .highlight-chroma .highlight-nt { color: #008000; font-weight: bold }
26
+ /* NameVariable */ .highlight-chroma .highlight-nv { color: #b8860b }
27
+ /* LiteralString */ .highlight-chroma .highlight-s { color: #bb4444 }
28
+ /* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #bb4444 }
29
+ /* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #bb4444 }
30
+ /* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #bb4444 }
31
+ /* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #bb4444 }
32
+ /* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #bb4444; font-style: italic }
33
+ /* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #bb4444 }
34
+ /* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #bb6622; font-weight: bold }
35
+ /* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #bb4444 }
36
+ /* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #bb6688; font-weight: bold }
37
+ /* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #008000 }
38
+ /* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #bb6688 }
39
+ /* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #bb4444 }
40
+ /* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #b8860b }
41
+ /* LiteralNumber */ .highlight-chroma .highlight-m { color: #666666 }
42
+ /* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #666666 }
43
+ /* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #666666 }
44
+ /* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #666666 }
45
+ /* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #666666 }
46
+ /* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #666666 }
47
+ /* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #666666 }
48
+ /* Operator */ .highlight-chroma .highlight-o { color: #666666 }
49
+ /* OperatorWord */ .highlight-chroma .highlight-ow { color: #aa22ff; font-weight: bold }
50
+ /* Comment */ .highlight-chroma .highlight-c { color: #008800; font-style: italic }
51
+ /* CommentHashbang */ .highlight-chroma .highlight-ch { color: #008800; font-style: italic }
52
+ /* CommentMultiline */ .highlight-chroma .highlight-cm { color: #008800; font-style: italic }
53
+ /* CommentSingle */ .highlight-chroma .highlight-c1 { color: #008800; font-style: italic }
54
+ /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #008800; font-weight: bold }
55
+ /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #008800 }
56
+ /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #008800 }
57
+ /* GenericDeleted */ .highlight-chroma .highlight-gd { color: #a00000 }
58
+ /* GenericEmph */ .highlight-chroma .highlight-ge { font-style: italic }
59
+ /* GenericError */ .highlight-chroma .highlight-gr { color: #ff0000 }
60
+ /* GenericHeading */ .highlight-chroma .highlight-gh { color: #000080; font-weight: bold }
61
+ /* GenericInserted */ .highlight-chroma .highlight-gi { color: #00a000 }
62
+ /* GenericOutput */ .highlight-chroma .highlight-go { color: #888888 }
63
+ /* GenericPrompt */ .highlight-chroma .highlight-gp { color: #000080; font-weight: bold }
64
+ /* GenericStrong */ .highlight-chroma .highlight-gs { font-weight: bold }
65
+ /* GenericSubheading */ .highlight-chroma .highlight-gu { color: #800080; font-weight: bold }
66
+ /* GenericTraceback */ .highlight-chroma .highlight-gt { color: #0044dd }
67
+ /* GenericUnderline */ .highlight-chroma .highlight-gl { text-decoration: underline }
68
+ /* TextWhitespace */ .highlight-chroma .highlight-w { color: #bbbbbb }
69
+
70
+ /*
71
+
72
+ Atom One Light by Daniel Gamage
73
+ Original One Light Syntax theme from https://github.com/atom/one-light-syntax
74
+
75
+ base: #fafafa
76
+ mono-1: #383a42
77
+ mono-2: #686b77
78
+ mono-3: #a0a1a7
79
+ hue-1: #0184bb
80
+ hue-2: #4078f2
81
+ hue-3: #a626a4
82
+ hue-4: #50a14f
83
+ hue-5: #e45649
84
+ hue-5-2: #c91243
85
+ hue-6: #986801
86
+ hue-6-2: #c18401
87
+
88
+ */
89
+
90
+ .hljs {
91
+ display: block;
92
+ overflow-x: auto;
93
+ padding: 0.5em;
94
+ color: #383a42;
95
+ background: #fafafa;
96
+ }
97
+
98
+ .hljs-comment,
99
+ .hljs-quote {
100
+ color: #a0a1a7;
101
+ font-style: italic;
102
+ }
103
+
104
+ .hljs-doctag,
105
+ .hljs-keyword,
106
+ .hljs-formula {
107
+ color: #a626a4;
108
+ }
109
+
110
+ .hljs-section,
111
+ .hljs-name,
112
+ .hljs-selector-tag,
113
+ .hljs-deletion,
114
+ .hljs-subst {
115
+ color: #e45649;
116
+ }
117
+
118
+ .hljs-literal {
119
+ color: #0184bb;
120
+ }
121
+
122
+ .hljs-string,
123
+ .hljs-regexp,
124
+ .hljs-addition,
125
+ .hljs-attribute,
126
+ .hljs-meta-string {
127
+ color: #50a14f;
128
+ }
129
+
130
+ .hljs-built_in,
131
+ .hljs-class .hljs-title {
132
+ color: #c18401;
133
+ }
134
+
135
+ .hljs-attr,
136
+ .hljs-variable,
137
+ .hljs-template-variable,
138
+ .hljs-type,
139
+ .hljs-selector-class,
140
+ .hljs-selector-attr,
141
+ .hljs-selector-pseudo,
142
+ .hljs-number {
143
+ color: #986801;
144
+ }
145
+
146
+ .hljs-symbol,
147
+ .hljs-bullet,
148
+ .hljs-link,
149
+ .hljs-meta,
150
+ .hljs-selector-id,
151
+ .hljs-title {
152
+ color: #4078f2;
153
+ }
154
+
155
+ .hljs-emphasis {
156
+ font-style: italic;
157
+ }
158
+
159
+ .hljs-strong {
160
+ font-weight: bold;
161
+ }
162
+
163
+ .hljs-link {
164
+ text-decoration: underline;
165
+ }
166
+
@@ -0,0 +1,182 @@
1
+ /* Background */ .highlight-chroma { background-color: #f0f0f0 }
2
+ /* Error */ .highlight-chroma .highlight-err { }
3
+ /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
4
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
5
+ /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #d8d8d8 }
6
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
7
+ /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
8
+ /* Keyword */ .highlight-chroma .highlight-k { color: #007020; font-weight: bold }
9
+ /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #007020; font-weight: bold }
10
+ /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #007020; font-weight: bold }
11
+ /* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #007020; font-weight: bold }
12
+ /* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #007020 }
13
+ /* KeywordReserved */ .highlight-chroma .highlight-kr { color: #007020; font-weight: bold }
14
+ /* KeywordType */ .highlight-chroma .highlight-kt { color: #902000 }
15
+ /* NameAttribute */ .highlight-chroma .highlight-na { color: #4070a0 }
16
+ /* NameBuiltin */ .highlight-chroma .highlight-nb { color: #007020 }
17
+ /* NameClass */ .highlight-chroma .highlight-nc { color: #0e84b5; font-weight: bold }
18
+ /* NameConstant */ .highlight-chroma .highlight-no { color: #60add5 }
19
+ /* NameDecorator */ .highlight-chroma .highlight-nd { color: #555555; font-weight: bold }
20
+ /* NameEntity */ .highlight-chroma .highlight-ni { color: #d55537; font-weight: bold }
21
+ /* NameException */ .highlight-chroma .highlight-ne { color: #007020 }
22
+ /* NameFunction */ .highlight-chroma .highlight-nf { color: #06287e }
23
+ /* NameLabel */ .highlight-chroma .highlight-nl { color: #002070; font-weight: bold }
24
+ /* NameNamespace */ .highlight-chroma .highlight-nn { color: #0e84b5; font-weight: bold }
25
+ /* NameTag */ .highlight-chroma .highlight-nt { color: #062873; font-weight: bold }
26
+ /* NameVariable */ .highlight-chroma .highlight-nv { color: #bb60d5 }
27
+ /* LiteralString */ .highlight-chroma .highlight-s { color: #4070a0 }
28
+ /* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #4070a0 }
29
+ /* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #4070a0 }
30
+ /* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #4070a0 }
31
+ /* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #4070a0 }
32
+ /* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #4070a0; font-style: italic }
33
+ /* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #4070a0 }
34
+ /* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #4070a0; font-weight: bold }
35
+ /* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #4070a0 }
36
+ /* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #70a0d0; font-style: italic }
37
+ /* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #c65d09 }
38
+ /* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #235388 }
39
+ /* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #4070a0 }
40
+ /* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #517918 }
41
+ /* LiteralNumber */ .highlight-chroma .highlight-m { color: #40a070 }
42
+ /* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #40a070 }
43
+ /* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #40a070 }
44
+ /* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #40a070 }
45
+ /* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #40a070 }
46
+ /* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #40a070 }
47
+ /* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #40a070 }
48
+ /* Operator */ .highlight-chroma .highlight-o { color: #666666 }
49
+ /* OperatorWord */ .highlight-chroma .highlight-ow { color: #007020; font-weight: bold }
50
+ /* Comment */ .highlight-chroma .highlight-c { color: #60a0b0; font-style: italic }
51
+ /* CommentHashbang */ .highlight-chroma .highlight-ch { color: #60a0b0; font-style: italic }
52
+ /* CommentMultiline */ .highlight-chroma .highlight-cm { color: #60a0b0; font-style: italic }
53
+ /* CommentSingle */ .highlight-chroma .highlight-c1 { color: #60a0b0; font-style: italic }
54
+ /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #60a0b0; background-color: #fff0f0 }
55
+ /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #007020 }
56
+ /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #007020 }
57
+ /* GenericDeleted */ .highlight-chroma .highlight-gd { color: #a00000 }
58
+ /* GenericEmph */ .highlight-chroma .highlight-ge { font-style: italic }
59
+ /* GenericError */ .highlight-chroma .highlight-gr { color: #ff0000 }
60
+ /* GenericHeading */ .highlight-chroma .highlight-gh { color: #000080; font-weight: bold }
61
+ /* GenericInserted */ .highlight-chroma .highlight-gi { color: #00a000 }
62
+ /* GenericOutput */ .highlight-chroma .highlight-go { color: #888888 }
63
+ /* GenericPrompt */ .highlight-chroma .highlight-gp { color: #c65d09; font-weight: bold }
64
+ /* GenericStrong */ .highlight-chroma .highlight-gs { font-weight: bold }
65
+ /* GenericSubheading */ .highlight-chroma .highlight-gu { color: #800080; font-weight: bold }
66
+ /* GenericTraceback */ .highlight-chroma .highlight-gt { color: #0044dd }
67
+ /* GenericUnderline */ .highlight-chroma .highlight-gl { text-decoration: underline }
68
+ /* TextWhitespace */ .highlight-chroma .highlight-w { color: #bbbbbb }
69
+
70
+ /*
71
+
72
+ ISBL Editor style light color schemec (c) Dmitriy Tarasov <dimatar@gmail.com>
73
+
74
+ */
75
+
76
+ .hljs {
77
+ display: block;
78
+ overflow-x: auto;
79
+ padding: 0.5em;
80
+ background: white;
81
+ color: black;
82
+ }
83
+
84
+ /* Base color: saturation 0; */
85
+
86
+ .hljs,
87
+ .hljs-subst {
88
+ color: #000000;
89
+ }
90
+
91
+ .hljs-comment {
92
+ color: #555555;
93
+ font-style: italic;
94
+ }
95
+
96
+ .hljs-keyword,
97
+ .hljs-attribute,
98
+ .hljs-selector-tag,
99
+ .hljs-meta-keyword,
100
+ .hljs-doctag,
101
+ .hljs-name {
102
+ color: #000000;
103
+ font-weight: bold;
104
+ }
105
+
106
+
107
+ /* User color: hue: 0 */
108
+
109
+ .hljs-string {
110
+ color: #000080;
111
+ }
112
+
113
+ .hljs-type,
114
+ .hljs-number,
115
+ .hljs-selector-id,
116
+ .hljs-selector-class,
117
+ .hljs-quote,
118
+ .hljs-template-tag,
119
+ .hljs-deletion {
120
+ color: #000000;
121
+ }
122
+
123
+ .hljs-title,
124
+ .hljs-section {
125
+ color: #fb2c00;
126
+ }
127
+
128
+ .hljs-title>.hljs-built_in {
129
+ color: #008080;
130
+ font-weight: normal;
131
+ }
132
+
133
+ .hljs-regexp,
134
+ .hljs-symbol,
135
+ .hljs-variable,
136
+ .hljs-template-variable,
137
+ .hljs-link,
138
+ .hljs-selector-attr,
139
+ .hljs-selector-pseudo {
140
+ color: #5e1700;
141
+ }
142
+
143
+ /* Language color: hue: 90; */
144
+
145
+ .hljs-built_in,
146
+ .hljs-literal {
147
+ color: #000080;
148
+ font-weight: bold;
149
+ }
150
+
151
+ .hljs-bullet,
152
+ .hljs-code,
153
+ .hljs-addition {
154
+ color: #397300;
155
+ }
156
+
157
+ .hljs-class {
158
+ color: #6f1C00;
159
+ font-weight: bold;
160
+ }
161
+
162
+ /* Meta color: hue: 200 */
163
+
164
+ .hljs-meta {
165
+ color: #1f7199;
166
+ }
167
+
168
+ .hljs-meta-string {
169
+ color: #4d99bf;
170
+ }
171
+
172
+
173
+ /* Misc effects */
174
+
175
+ .hljs-emphasis {
176
+ font-style: italic;
177
+ }
178
+
179
+ .hljs-strong {
180
+ font-weight: bold;
181
+ }
182
+
@@ -0,0 +1,121 @@
1
+ /* Background */ .highlight-chroma { color: #ffffff; background-color: #111111 }
2
+ /* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
3
+ /* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
4
+ /* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #282828 }
5
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
6
+ /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
7
+ /* Keyword */ .highlight-chroma .highlight-k { color: #fb660a; font-weight: bold }
8
+ /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #fb660a; font-weight: bold }
9
+ /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #fb660a; font-weight: bold }
10
+ /* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #fb660a; font-weight: bold }
11
+ /* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #fb660a }
12
+ /* KeywordReserved */ .highlight-chroma .highlight-kr { color: #fb660a; font-weight: bold }
13
+ /* KeywordType */ .highlight-chroma .highlight-kt { color: #cdcaa9; font-weight: bold }
14
+ /* NameAttribute */ .highlight-chroma .highlight-na { color: #ff0086; font-weight: bold }
15
+ /* NameConstant */ .highlight-chroma .highlight-no { color: #0086d2 }
16
+ /* NameFunction */ .highlight-chroma .highlight-nf { color: #ff0086; font-weight: bold }
17
+ /* NameTag */ .highlight-chroma .highlight-nt { color: #fb660a; font-weight: bold }
18
+ /* NameVariable */ .highlight-chroma .highlight-nv { color: #fb660a }
19
+ /* LiteralString */ .highlight-chroma .highlight-s { color: #0086d2 }
20
+ /* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #0086d2 }
21
+ /* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #0086d2 }
22
+ /* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #0086d2 }
23
+ /* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #0086d2 }
24
+ /* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #0086d2 }
25
+ /* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #0086d2 }
26
+ /* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #0086d2 }
27
+ /* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #0086d2 }
28
+ /* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #0086d2 }
29
+ /* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #0086d2 }
30
+ /* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #0086d2 }
31
+ /* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #0086d2 }
32
+ /* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #0086d2 }
33
+ /* LiteralNumber */ .highlight-chroma .highlight-m { color: #0086f7; font-weight: bold }
34
+ /* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #0086f7; font-weight: bold }
35
+ /* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #0086f7; font-weight: bold }
36
+ /* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #0086f7; font-weight: bold }
37
+ /* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #0086f7; font-weight: bold }
38
+ /* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #0086f7; font-weight: bold }
39
+ /* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #0086f7; font-weight: bold }
40
+ /* Comment */ .highlight-chroma .highlight-c { color: #008800; background-color: #0f140f; font-style: italic }
41
+ /* CommentHashbang */ .highlight-chroma .highlight-ch { color: #008800; background-color: #0f140f; font-style: italic }
42
+ /* CommentMultiline */ .highlight-chroma .highlight-cm { color: #008800; background-color: #0f140f; font-style: italic }
43
+ /* CommentSingle */ .highlight-chroma .highlight-c1 { color: #008800; background-color: #0f140f; font-style: italic }
44
+ /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #008800; background-color: #0f140f; font-style: italic }
45
+ /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #ff0007; background-color: #0f140f; font-weight: bold; font-style: italic }
46
+ /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #ff0007; background-color: #0f140f; font-weight: bold; font-style: italic }
47
+ /* GenericHeading */ .highlight-chroma .highlight-gh { font-weight: bold }
48
+ /* GenericOutput */ .highlight-chroma .highlight-go { color: #444444; background-color: #222222 }
49
+ /* GenericSubheading */ .highlight-chroma .highlight-gu { font-weight: bold }
50
+ /* TextWhitespace */ .highlight-chroma .highlight-w { color: #888888 }
51
+
52
+
53
+ /* Base16 Atelier Forest Dark - Theme */
54
+ /* by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest) */
55
+ /* Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) */
56
+
57
+ /* Atelier-Forest Comment */
58
+ .hljs-comment,
59
+ .hljs-quote {
60
+ color: #9c9491;
61
+ }
62
+
63
+ /* Atelier-Forest Red */
64
+ .hljs-variable,
65
+ .hljs-template-variable,
66
+ .hljs-attribute,
67
+ .hljs-tag,
68
+ .hljs-name,
69
+ .hljs-regexp,
70
+ .hljs-link,
71
+ .hljs-name,
72
+ .hljs-selector-id,
73
+ .hljs-selector-class {
74
+ color: #f22c40;
75
+ }
76
+
77
+ /* Atelier-Forest Orange */
78
+ .hljs-number,
79
+ .hljs-meta,
80
+ .hljs-built_in,
81
+ .hljs-builtin-name,
82
+ .hljs-literal,
83
+ .hljs-type,
84
+ .hljs-params {
85
+ color: #df5320;
86
+ }
87
+
88
+ /* Atelier-Forest Green */
89
+ .hljs-string,
90
+ .hljs-symbol,
91
+ .hljs-bullet {
92
+ color: #7b9726;
93
+ }
94
+
95
+ /* Atelier-Forest Blue */
96
+ .hljs-title,
97
+ .hljs-section {
98
+ color: #407ee7;
99
+ }
100
+
101
+ /* Atelier-Forest Purple */
102
+ .hljs-keyword,
103
+ .hljs-selector-tag {
104
+ color: #6666ea;
105
+ }
106
+
107
+ .hljs {
108
+ display: block;
109
+ overflow-x: auto;
110
+ background: #1b1918;
111
+ color: #a8a19f;
112
+ padding: 0.5em;
113
+ }
114
+
115
+ .hljs-emphasis {
116
+ font-style: italic;
117
+ }
118
+
119
+ .hljs-strong {
120
+ font-weight: bold;
121
+ }