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,158 @@
1
+ /* Background */ .highlight-chroma { }
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: #e5e5e5 }
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: #008000; font-weight: bold }
9
+ /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #008000; font-weight: bold }
10
+ /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #008000; font-weight: bold }
11
+ /* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #008000; font-weight: bold }
12
+ /* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #008000 }
13
+ /* KeywordReserved */ .highlight-chroma .highlight-kr { color: #008000; font-weight: bold }
14
+ /* KeywordType */ .highlight-chroma .highlight-kt { color: #b00040 }
15
+ /* NameAttribute */ .highlight-chroma .highlight-na { color: #7d9029 }
16
+ /* NameBuiltin */ .highlight-chroma .highlight-nb { color: #008000 }
17
+ /* NameClass */ .highlight-chroma .highlight-nc { color: #0000ff; font-weight: bold }
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: #0000ff }
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: #19177c }
27
+ /* LiteralString */ .highlight-chroma .highlight-s { color: #ba2121 }
28
+ /* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #ba2121 }
29
+ /* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #ba2121 }
30
+ /* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #ba2121 }
31
+ /* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #ba2121 }
32
+ /* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #ba2121; font-style: italic }
33
+ /* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #ba2121 }
34
+ /* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #bb6622; font-weight: bold }
35
+ /* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #ba2121 }
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: #ba2121 }
40
+ /* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #19177c }
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: #408080; font-style: italic }
51
+ /* CommentHashbang */ .highlight-chroma .highlight-ch { color: #408080; font-style: italic }
52
+ /* CommentMultiline */ .highlight-chroma .highlight-cm { color: #408080; font-style: italic }
53
+ /* CommentSingle */ .highlight-chroma .highlight-c1 { color: #408080; font-style: italic }
54
+ /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #408080; font-style: italic }
55
+ /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #bc7a00 }
56
+ /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #bc7a00 }
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
+ Description: Foundation 4 docs style for highlight.js
72
+ Author: Dan Allen <dan.j.allen@gmail.com>
73
+ Website: http://foundation.zurb.com/docs/
74
+ Version: 1.0
75
+ Date: 2013-04-02
76
+ */
77
+
78
+ .hljs {
79
+ display: block;
80
+ overflow-x: auto;
81
+ padding: 0.5em;
82
+ background: #eee; color: black;
83
+ }
84
+
85
+ .hljs-link,
86
+ .hljs-emphasis,
87
+ .hljs-attribute,
88
+ .hljs-addition {
89
+ color: #070;
90
+ }
91
+
92
+ .hljs-emphasis {
93
+ font-style: italic;
94
+ }
95
+
96
+ .hljs-strong,
97
+ .hljs-string,
98
+ .hljs-deletion {
99
+ color: #d14;
100
+ }
101
+
102
+ .hljs-strong {
103
+ font-weight: bold;
104
+ }
105
+
106
+ .hljs-quote,
107
+ .hljs-comment {
108
+ color: #998;
109
+ font-style: italic;
110
+ }
111
+
112
+ .hljs-section,
113
+ .hljs-title {
114
+ color: #900;
115
+ }
116
+
117
+ .hljs-class .hljs-title,
118
+ .hljs-type {
119
+ color: #458;
120
+ }
121
+
122
+ .hljs-variable,
123
+ .hljs-template-variable {
124
+ color: #336699;
125
+ }
126
+
127
+ .hljs-bullet {
128
+ color: #997700;
129
+ }
130
+
131
+ .hljs-meta {
132
+ color: #3344bb;
133
+ }
134
+
135
+ .hljs-code,
136
+ .hljs-number,
137
+ .hljs-literal,
138
+ .hljs-keyword,
139
+ .hljs-selector-tag {
140
+ color: #099;
141
+ }
142
+
143
+ .hljs-regexp {
144
+ background-color: #fff0ff;
145
+ color: #880088;
146
+ }
147
+
148
+ .hljs-symbol {
149
+ color: #990073;
150
+ }
151
+
152
+ .hljs-tag,
153
+ .hljs-name,
154
+ .hljs-selector-id,
155
+ .hljs-selector-class {
156
+ color: #007700;
157
+ }
158
+
@@ -0,0 +1,163 @@
1
+ /* Background */ .highlight-chroma { color: #4d4d4d; background-color: #ffffff }
2
+ /* Error */ .highlight-chroma .highlight-err { color: #ffffff; background-color: #cc0000 }
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: #e5e5e5 }
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: #2c5dcd; font-weight: bold }
9
+ /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #2c5dcd; font-weight: bold }
10
+ /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #2c5dcd; font-weight: bold }
11
+ /* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #2c5dcd; font-weight: bold }
12
+ /* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #2c5dcd }
13
+ /* KeywordReserved */ .highlight-chroma .highlight-kr { color: #2c5dcd; font-weight: bold }
14
+ /* KeywordType */ .highlight-chroma .highlight-kt { color: #5918bb; font-weight: bold }
15
+ /* NameAttribute */ .highlight-chroma .highlight-na { color: #2c5dcd; font-style: italic }
16
+ /* NameBuiltin */ .highlight-chroma .highlight-nb { color: #5918bb; font-weight: bold }
17
+ /* NameClass */ .highlight-chroma .highlight-nc { text-decoration: underline }
18
+ /* NameConstant */ .highlight-chroma .highlight-no { color: #318495 }
19
+ /* NameDecorator */ .highlight-chroma .highlight-nd { color: #ff8000; font-weight: bold }
20
+ /* NameEntity */ .highlight-chroma .highlight-ni { color: #5918bb; font-weight: bold }
21
+ /* NameException */ .highlight-chroma .highlight-ne { color: #5918bb; font-weight: bold }
22
+ /* NameFunction */ .highlight-chroma .highlight-nf { color: #ff8000; font-weight: bold }
23
+ /* NameTag */ .highlight-chroma .highlight-nt { color: #2c5dcd; font-weight: bold }
24
+ /* LiteralString */ .highlight-chroma .highlight-s { color: #00cc66 }
25
+ /* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #00cc66 }
26
+ /* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #00cc66 }
27
+ /* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #00cc66 }
28
+ /* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #00cc66 }
29
+ /* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #00cc66; font-style: italic }
30
+ /* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #00cc66 }
31
+ /* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #c5060b; font-weight: bold }
32
+ /* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #00cc66 }
33
+ /* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #00cc66 }
34
+ /* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #318495 }
35
+ /* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #00cc66 }
36
+ /* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #00cc66 }
37
+ /* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #c5060b; font-weight: bold }
38
+ /* LiteralNumber */ .highlight-chroma .highlight-m { color: #5918bb; font-weight: bold }
39
+ /* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #5918bb; font-weight: bold }
40
+ /* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #5918bb; font-weight: bold }
41
+ /* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #5918bb; font-weight: bold }
42
+ /* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #5918bb; font-weight: bold }
43
+ /* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #5918bb; font-weight: bold }
44
+ /* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #5918bb; font-weight: bold }
45
+ /* Operator */ .highlight-chroma .highlight-o { color: #2c5dcd }
46
+ /* OperatorWord */ .highlight-chroma .highlight-ow { color: #2c5dcd; font-weight: bold }
47
+ /* Comment */ .highlight-chroma .highlight-c { color: #0080ff; font-style: italic }
48
+ /* CommentHashbang */ .highlight-chroma .highlight-ch { color: #0080ff; font-style: italic }
49
+ /* CommentMultiline */ .highlight-chroma .highlight-cm { color: #0080ff; font-style: italic }
50
+ /* CommentSingle */ .highlight-chroma .highlight-c1 { color: #0080ff; font-style: italic }
51
+ /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #0080ff; font-weight: bold; font-style: italic }
52
+ /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #0080ff }
53
+ /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #0080ff }
54
+ /* GenericDeleted */ .highlight-chroma .highlight-gd { background-color: #ffcccc }
55
+ /* GenericEmph */ .highlight-chroma .highlight-ge { font-style: italic }
56
+ /* GenericError */ .highlight-chroma .highlight-gr { color: #ff0000 }
57
+ /* GenericHeading */ .highlight-chroma .highlight-gh { color: #2c5dcd; font-weight: bold }
58
+ /* GenericInserted */ .highlight-chroma .highlight-gi { background-color: #ccffcc }
59
+ /* GenericOutput */ .highlight-chroma .highlight-go { color: #aaaaaa }
60
+ /* GenericPrompt */ .highlight-chroma .highlight-gp { color: #2c5dcd; font-weight: bold }
61
+ /* GenericStrong */ .highlight-chroma .highlight-gs { font-weight: bold }
62
+ /* GenericSubheading */ .highlight-chroma .highlight-gu { color: #2c5dcd; font-weight: bold }
63
+ /* GenericTraceback */ .highlight-chroma .highlight-gt { color: #c5060b }
64
+ /* GenericUnderline */ .highlight-chroma .highlight-gl { text-decoration: underline }
65
+ /* TextWhitespace */ .highlight-chroma .highlight-w { color: #cbcbcb }
66
+
67
+ /*
68
+
69
+ Intellij Idea-like styling (c) Vasily Polovnyov <vast@whiteants.net>
70
+
71
+ */
72
+
73
+ .hljs {
74
+ display: block;
75
+ overflow-x: auto;
76
+ padding: 0.5em;
77
+ color: #000;
78
+ background: #fff;
79
+ }
80
+
81
+ .hljs-subst,
82
+ .hljs-title {
83
+ font-weight: normal;
84
+ color: #000;
85
+ }
86
+
87
+ .hljs-comment,
88
+ .hljs-quote {
89
+ color: #808080;
90
+ font-style: italic;
91
+ }
92
+
93
+ .hljs-meta {
94
+ color: #808000;
95
+ }
96
+
97
+ .hljs-tag {
98
+ background: #efefef;
99
+ }
100
+
101
+ .hljs-section,
102
+ .hljs-name,
103
+ .hljs-literal,
104
+ .hljs-keyword,
105
+ .hljs-selector-tag,
106
+ .hljs-type,
107
+ .hljs-selector-id,
108
+ .hljs-selector-class {
109
+ font-weight: bold;
110
+ color: #000080;
111
+ }
112
+
113
+ .hljs-attribute,
114
+ .hljs-number,
115
+ .hljs-regexp,
116
+ .hljs-link {
117
+ font-weight: bold;
118
+ color: #0000ff;
119
+ }
120
+
121
+ .hljs-number,
122
+ .hljs-regexp,
123
+ .hljs-link {
124
+ font-weight: normal;
125
+ }
126
+
127
+ .hljs-string {
128
+ color: #008000;
129
+ font-weight: bold;
130
+ }
131
+
132
+ .hljs-symbol,
133
+ .hljs-bullet,
134
+ .hljs-formula {
135
+ color: #000;
136
+ background: #d0eded;
137
+ font-style: italic;
138
+ }
139
+
140
+ .hljs-doctag {
141
+ text-decoration: underline;
142
+ }
143
+
144
+ .hljs-variable,
145
+ .hljs-template-variable {
146
+ color: #660e7a;
147
+ }
148
+
149
+ .hljs-addition {
150
+ background: #baeeba;
151
+ }
152
+
153
+ .hljs-deletion {
154
+ background: #ffc8bd;
155
+ }
156
+
157
+ .hljs-emphasis {
158
+ font-style: italic;
159
+ }
160
+
161
+ .hljs-strong {
162
+ font-weight: bold;
163
+ }
@@ -0,0 +1,158 @@
1
+ /* Background */ .highlight-chroma { color: #f8f8f2; background-color: #000000 }
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: #191919 }
5
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7c7c79 }
6
+ /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7c7c79 }
7
+ /* Keyword */ .highlight-chroma .highlight-k { color: #ff0000 }
8
+ /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #ff0000 }
9
+ /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #ff0000 }
10
+ /* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #ff0000 }
11
+ /* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #ff0000 }
12
+ /* KeywordReserved */ .highlight-chroma .highlight-kr { color: #ff0000 }
13
+ /* KeywordType */ .highlight-chroma .highlight-kt { color: #ee82ee }
14
+ /* NameConstant */ .highlight-chroma .highlight-no { color: #7fffd4 }
15
+ /* NameFunction */ .highlight-chroma .highlight-nf { color: #ffff00 }
16
+ /* NameVariable */ .highlight-chroma .highlight-nv { color: #eedd82 }
17
+ /* LiteralString */ .highlight-chroma .highlight-s { color: #87ceeb }
18
+ /* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #87ceeb }
19
+ /* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #87ceeb }
20
+ /* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #87ceeb }
21
+ /* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #87ceeb }
22
+ /* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #87ceeb }
23
+ /* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #87ceeb }
24
+ /* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #87ceeb }
25
+ /* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #87ceeb }
26
+ /* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #87ceeb }
27
+ /* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #87ceeb }
28
+ /* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #87ceeb }
29
+ /* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #87ceeb }
30
+ /* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #ff6600 }
31
+ /* LiteralNumber */ .highlight-chroma .highlight-m { color: #ff6600 }
32
+ /* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #ff6600 }
33
+ /* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #ff6600 }
34
+ /* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #ff6600 }
35
+ /* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #ff6600 }
36
+ /* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #ff6600 }
37
+ /* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #ff6600 }
38
+ /* Comment */ .highlight-chroma .highlight-c { color: #00ff00 }
39
+ /* CommentHashbang */ .highlight-chroma .highlight-ch { color: #00ff00 }
40
+ /* CommentMultiline */ .highlight-chroma .highlight-cm { color: #00ff00 }
41
+ /* CommentSingle */ .highlight-chroma .highlight-c1 { color: #00ff00 }
42
+ /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #00ff00 }
43
+ /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #e5e5e5 }
44
+ /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #e5e5e5 }
45
+
46
+ /*
47
+
48
+ ISBL Editor style dark color scheme (c) Dmitriy Tarasov <dimatar@gmail.com>
49
+
50
+ */
51
+
52
+ .hljs {
53
+ display: block;
54
+ overflow-x: auto;
55
+ padding: 0.5em;
56
+ background: #404040;
57
+ color: #f0f0f0;
58
+ }
59
+
60
+ /* Base color: saturation 0; */
61
+
62
+ .hljs,
63
+ .hljs-subst {
64
+ color: #f0f0f0;
65
+ }
66
+
67
+ .hljs-comment {
68
+ color: #b5b5b5;
69
+ font-style: italic;
70
+ }
71
+
72
+ .hljs-keyword,
73
+ .hljs-attribute,
74
+ .hljs-selector-tag,
75
+ .hljs-meta-keyword,
76
+ .hljs-doctag,
77
+ .hljs-name {
78
+ color: #f0f0f0;
79
+ font-weight: bold;
80
+ }
81
+
82
+
83
+ /* User color: hue: 0 */
84
+
85
+ .hljs-string {
86
+ color: #97bf0d;
87
+ }
88
+
89
+ .hljs-type,
90
+ .hljs-number,
91
+ .hljs-selector-id,
92
+ .hljs-selector-class,
93
+ .hljs-quote,
94
+ .hljs-template-tag,
95
+ .hljs-deletion {
96
+ color: #f0f0f0;
97
+ }
98
+
99
+ .hljs-title,
100
+ .hljs-section {
101
+ color: #df471e;
102
+ }
103
+
104
+ .hljs-title>.hljs-built_in {
105
+ color: #81bce9;
106
+ font-weight: normal;
107
+ }
108
+
109
+ .hljs-regexp,
110
+ .hljs-symbol,
111
+ .hljs-variable,
112
+ .hljs-template-variable,
113
+ .hljs-link,
114
+ .hljs-selector-attr,
115
+ .hljs-selector-pseudo {
116
+ color: #e2c696;
117
+ }
118
+
119
+ /* Language color: hue: 90; */
120
+
121
+ .hljs-built_in,
122
+ .hljs-literal {
123
+ color: #97bf0d;
124
+ font-weight: bold;
125
+ }
126
+
127
+ .hljs-bullet,
128
+ .hljs-code,
129
+ .hljs-addition {
130
+ color: #397300;
131
+ }
132
+
133
+ .hljs-class {
134
+ color: #ce9d4d;
135
+ font-weight: bold;
136
+ }
137
+
138
+ /* Meta color: hue: 200 */
139
+
140
+ .hljs-meta {
141
+ color: #1f7199;
142
+ }
143
+
144
+ .hljs-meta-string {
145
+ color: #4d99bf;
146
+ }
147
+
148
+
149
+ /* Misc effects */
150
+
151
+ .hljs-emphasis {
152
+ font-style: italic;
153
+ }
154
+
155
+ .hljs-strong {
156
+ font-weight: bold;
157
+ }
158
+
@@ -0,0 +1,145 @@
1
+ /* Background */ .highlight-chroma { color: #93a1a1; background-color: #002b36 }
2
+ /* Other */ .highlight-chroma .highlight-x { color: #cb4b16 }
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: #19404a }
6
+ /* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #495050 }
7
+ /* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #495050 }
8
+ /* Keyword */ .highlight-chroma .highlight-k { color: #719e07 }
9
+ /* KeywordConstant */ .highlight-chroma .highlight-kc { color: #cb4b16 }
10
+ /* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #268bd2 }
11
+ /* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #719e07 }
12
+ /* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #719e07 }
13
+ /* KeywordReserved */ .highlight-chroma .highlight-kr { color: #268bd2 }
14
+ /* KeywordType */ .highlight-chroma .highlight-kt { color: #dc322f }
15
+ /* NameBuiltin */ .highlight-chroma .highlight-nb { color: #b58900 }
16
+ /* NameBuiltinPseudo */ .highlight-chroma .highlight-bp { color: #268bd2 }
17
+ /* NameClass */ .highlight-chroma .highlight-nc { color: #268bd2 }
18
+ /* NameConstant */ .highlight-chroma .highlight-no { color: #cb4b16 }
19
+ /* NameDecorator */ .highlight-chroma .highlight-nd { color: #268bd2 }
20
+ /* NameEntity */ .highlight-chroma .highlight-ni { color: #cb4b16 }
21
+ /* NameException */ .highlight-chroma .highlight-ne { color: #cb4b16 }
22
+ /* NameFunction */ .highlight-chroma .highlight-nf { color: #268bd2 }
23
+ /* NameTag */ .highlight-chroma .highlight-nt { color: #268bd2 }
24
+ /* NameVariable */ .highlight-chroma .highlight-nv { color: #268bd2 }
25
+ /* LiteralString */ .highlight-chroma .highlight-s { color: #2aa198 }
26
+ /* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #2aa198 }
27
+ /* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #586e75 }
28
+ /* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #2aa198 }
29
+ /* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #2aa198 }
30
+ /* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #2aa198 }
31
+ /* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #cb4b16 }
32
+ /* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #2aa198 }
33
+ /* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #2aa198 }
34
+ /* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #dc322f }
35
+ /* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #2aa198 }
36
+ /* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #2aa198 }
37
+ /* LiteralNumber */ .highlight-chroma .highlight-m { color: #2aa198 }
38
+ /* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #2aa198 }
39
+ /* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #2aa198 }
40
+ /* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #2aa198 }
41
+ /* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #2aa198 }
42
+ /* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #2aa198 }
43
+ /* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #2aa198 }
44
+ /* Operator */ .highlight-chroma .highlight-o { color: #719e07 }
45
+ /* OperatorWord */ .highlight-chroma .highlight-ow { color: #719e07 }
46
+ /* Comment */ .highlight-chroma .highlight-c { color: #586e75 }
47
+ /* CommentHashbang */ .highlight-chroma .highlight-ch { color: #586e75 }
48
+ /* CommentMultiline */ .highlight-chroma .highlight-cm { color: #586e75 }
49
+ /* CommentSingle */ .highlight-chroma .highlight-c1 { color: #586e75 }
50
+ /* CommentSpecial */ .highlight-chroma .highlight-cs { color: #719e07 }
51
+ /* CommentPreproc */ .highlight-chroma .highlight-cp { color: #719e07 }
52
+ /* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #719e07 }
53
+ /* GenericDeleted */ .highlight-chroma .highlight-gd { color: #dc322f }
54
+ /* GenericEmph */ .highlight-chroma .highlight-ge { font-style: italic }
55
+ /* GenericError */ .highlight-chroma .highlight-gr { color: #dc322f; font-weight: bold }
56
+ /* GenericHeading */ .highlight-chroma .highlight-gh { color: #cb4b16 }
57
+ /* GenericInserted */ .highlight-chroma .highlight-gi { color: #719e07 }
58
+ /* GenericStrong */ .highlight-chroma .highlight-gs { font-weight: bold }
59
+ /* GenericSubheading */ .highlight-chroma .highlight-gu { color: #268bd2 }
60
+
61
+ /*
62
+
63
+ Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull <sourdrums@gmail.com>
64
+
65
+ */
66
+
67
+ .hljs {
68
+ display: block;
69
+ overflow-x: auto;
70
+ padding: 0.5em;
71
+ background: #002b36;
72
+ color: #839496;
73
+ }
74
+
75
+ .hljs-comment,
76
+ .hljs-quote {
77
+ color: #586e75;
78
+ }
79
+
80
+ /* Solarized Green */
81
+ .hljs-keyword,
82
+ .hljs-selector-tag,
83
+ .hljs-addition {
84
+ color: #859900;
85
+ }
86
+
87
+ /* Solarized Cyan */
88
+ .hljs-number,
89
+ .hljs-string,
90
+ .hljs-meta .hljs-meta-string,
91
+ .hljs-literal,
92
+ .hljs-doctag,
93
+ .hljs-regexp {
94
+ color: #2aa198;
95
+ }
96
+
97
+ /* Solarized Blue */
98
+ .hljs-title,
99
+ .hljs-section,
100
+ .hljs-name,
101
+ .hljs-selector-id,
102
+ .hljs-selector-class {
103
+ color: #268bd2;
104
+ }
105
+
106
+ /* Solarized Yellow */
107
+ .hljs-attribute,
108
+ .hljs-attr,
109
+ .hljs-variable,
110
+ .hljs-template-variable,
111
+ .hljs-class .hljs-title,
112
+ .hljs-type {
113
+ color: #b58900;
114
+ }
115
+
116
+ /* Solarized Orange */
117
+ .hljs-symbol,
118
+ .hljs-bullet,
119
+ .hljs-subst,
120
+ .hljs-meta,
121
+ .hljs-meta .hljs-keyword,
122
+ .hljs-selector-attr,
123
+ .hljs-selector-pseudo,
124
+ .hljs-link {
125
+ color: #cb4b16;
126
+ }
127
+
128
+ /* Solarized Red */
129
+ .hljs-built_in,
130
+ .hljs-deletion {
131
+ color: #dc322f;
132
+ }
133
+
134
+ .hljs-formula {
135
+ background: #073642;
136
+ }
137
+
138
+ .hljs-emphasis {
139
+ font-style: italic;
140
+ }
141
+
142
+ .hljs-strong {
143
+ font-weight: bold;
144
+ }
145
+