@yltrcc/vditor 0.0.1

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 (651) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +693 -0
  3. package/dist/css/content-theme/ant-design.css +210 -0
  4. package/dist/css/content-theme/dark.css +123 -0
  5. package/dist/css/content-theme/light.css +101 -0
  6. package/dist/css/content-theme/wechat.css +94 -0
  7. package/dist/images/emoji/b3log.png +0 -0
  8. package/dist/images/emoji/chainbook.png +0 -0
  9. package/dist/images/emoji/doge.png +0 -0
  10. package/dist/images/emoji/hacpai.png +0 -0
  11. package/dist/images/emoji/huaji.gif +0 -0
  12. package/dist/images/emoji/latke.png +0 -0
  13. package/dist/images/emoji/liandi.png +0 -0
  14. package/dist/images/emoji/lute.png +0 -0
  15. package/dist/images/emoji/octocat.png +0 -0
  16. package/dist/images/emoji/pipe.png +0 -0
  17. package/dist/images/emoji/siyuan.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 +1834 -0
  27. package/dist/index.d.ts +82 -0
  28. package/dist/index.js +16005 -0
  29. package/dist/index.min.js +1 -0
  30. package/dist/js/abcjs/abcjs_basic.min.js +3 -0
  31. package/dist/js/echarts/echarts.min.js +45 -0
  32. package/dist/js/flowchart.js/flowchart.min.js +8 -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/LICENSE +29 -0
  36. package/dist/js/highlight.js/highlight.min.js +3835 -0
  37. package/dist/js/highlight.js/styles/a11y-dark.min.css +7 -0
  38. package/dist/js/highlight.js/styles/a11y-light.min.css +7 -0
  39. package/dist/js/highlight.js/styles/agate.min.css +20 -0
  40. package/dist/js/highlight.js/styles/an-old-hope.min.css +9 -0
  41. package/dist/js/highlight.js/styles/androidstudio.min.css +1 -0
  42. package/dist/js/highlight.js/styles/ant-design.min.css +84 -0
  43. package/dist/js/highlight.js/styles/arduino-light.min.css +1 -0
  44. package/dist/js/highlight.js/styles/arta.min.css +1 -0
  45. package/dist/js/highlight.js/styles/ascetic.min.css +1 -0
  46. package/dist/js/highlight.js/styles/atom-one-dark-reasonable.min.css +1 -0
  47. package/dist/js/highlight.js/styles/atom-one-dark.min.css +1 -0
  48. package/dist/js/highlight.js/styles/atom-one-light.min.css +1 -0
  49. package/dist/js/highlight.js/styles/base16/3024.min.css +7 -0
  50. package/dist/js/highlight.js/styles/base16/apathy.min.css +7 -0
  51. package/dist/js/highlight.js/styles/base16/apprentice.min.css +7 -0
  52. package/dist/js/highlight.js/styles/base16/ashes.min.css +7 -0
  53. package/dist/js/highlight.js/styles/base16/atelier-cave-light.min.css +7 -0
  54. package/dist/js/highlight.js/styles/base16/atelier-cave.min.css +7 -0
  55. package/dist/js/highlight.js/styles/base16/atelier-dune-light.min.css +7 -0
  56. package/dist/js/highlight.js/styles/base16/atelier-dune.min.css +7 -0
  57. package/dist/js/highlight.js/styles/base16/atelier-estuary-light.min.css +7 -0
  58. package/dist/js/highlight.js/styles/base16/atelier-estuary.min.css +7 -0
  59. package/dist/js/highlight.js/styles/base16/atelier-forest-light.min.css +7 -0
  60. package/dist/js/highlight.js/styles/base16/atelier-forest.min.css +7 -0
  61. package/dist/js/highlight.js/styles/base16/atelier-heath-light.min.css +7 -0
  62. package/dist/js/highlight.js/styles/base16/atelier-heath.min.css +7 -0
  63. package/dist/js/highlight.js/styles/base16/atelier-lakeside-light.min.css +7 -0
  64. package/dist/js/highlight.js/styles/base16/atelier-lakeside.min.css +7 -0
  65. package/dist/js/highlight.js/styles/base16/atelier-plateau-light.min.css +7 -0
  66. package/dist/js/highlight.js/styles/base16/atelier-plateau.min.css +7 -0
  67. package/dist/js/highlight.js/styles/base16/atelier-savanna-light.min.css +7 -0
  68. package/dist/js/highlight.js/styles/base16/atelier-savanna.min.css +7 -0
  69. package/dist/js/highlight.js/styles/base16/atelier-seaside-light.min.css +7 -0
  70. package/dist/js/highlight.js/styles/base16/atelier-seaside.min.css +7 -0
  71. package/dist/js/highlight.js/styles/base16/atelier-sulphurpool-light.min.css +7 -0
  72. package/dist/js/highlight.js/styles/base16/atelier-sulphurpool.min.css +7 -0
  73. package/dist/js/highlight.js/styles/base16/atlas.min.css +7 -0
  74. package/dist/js/highlight.js/styles/base16/bespin.min.css +7 -0
  75. package/dist/js/highlight.js/styles/base16/black-metal-bathory.min.css +7 -0
  76. package/dist/js/highlight.js/styles/base16/black-metal-burzum.min.css +7 -0
  77. package/dist/js/highlight.js/styles/base16/black-metal-dark-funeral.min.css +7 -0
  78. package/dist/js/highlight.js/styles/base16/black-metal-gorgoroth.min.css +7 -0
  79. package/dist/js/highlight.js/styles/base16/black-metal-immortal.min.css +7 -0
  80. package/dist/js/highlight.js/styles/base16/black-metal-khold.min.css +7 -0
  81. package/dist/js/highlight.js/styles/base16/black-metal-marduk.min.css +7 -0
  82. package/dist/js/highlight.js/styles/base16/black-metal-mayhem.min.css +7 -0
  83. package/dist/js/highlight.js/styles/base16/black-metal-nile.min.css +7 -0
  84. package/dist/js/highlight.js/styles/base16/black-metal-venom.min.css +7 -0
  85. package/dist/js/highlight.js/styles/base16/black-metal.min.css +7 -0
  86. package/dist/js/highlight.js/styles/base16/brewer.min.css +7 -0
  87. package/dist/js/highlight.js/styles/base16/bright.min.css +7 -0
  88. package/dist/js/highlight.js/styles/base16/brogrammer.min.css +7 -0
  89. package/dist/js/highlight.js/styles/base16/brush-trees-dark.min.css +7 -0
  90. package/dist/js/highlight.js/styles/base16/brush-trees.min.css +7 -0
  91. package/dist/js/highlight.js/styles/base16/chalk.min.css +7 -0
  92. package/dist/js/highlight.js/styles/base16/circus.min.css +7 -0
  93. package/dist/js/highlight.js/styles/base16/classic-dark.min.css +7 -0
  94. package/dist/js/highlight.js/styles/base16/classic-light.min.css +7 -0
  95. package/dist/js/highlight.js/styles/base16/codeschool.min.css +7 -0
  96. package/dist/js/highlight.js/styles/base16/colors.min.css +7 -0
  97. package/dist/js/highlight.js/styles/base16/cupcake.min.css +7 -0
  98. package/dist/js/highlight.js/styles/base16/cupertino.min.css +7 -0
  99. package/dist/js/highlight.js/styles/base16/danqing.min.css +7 -0
  100. package/dist/js/highlight.js/styles/base16/darcula.min.css +7 -0
  101. package/dist/js/highlight.js/styles/base16/dark-violet.min.css +7 -0
  102. package/dist/js/highlight.js/styles/base16/darkmoss.min.css +7 -0
  103. package/dist/js/highlight.js/styles/base16/darktooth.min.css +7 -0
  104. package/dist/js/highlight.js/styles/base16/decaf.min.css +7 -0
  105. package/dist/js/highlight.js/styles/base16/default-dark.min.css +7 -0
  106. package/dist/js/highlight.js/styles/base16/default-light.min.css +7 -0
  107. package/dist/js/highlight.js/styles/base16/dirtysea.min.css +7 -0
  108. package/dist/js/highlight.js/styles/base16/dracula.min.css +7 -0
  109. package/dist/js/highlight.js/styles/base16/edge-dark.min.css +7 -0
  110. package/dist/js/highlight.js/styles/base16/edge-light.min.css +7 -0
  111. package/dist/js/highlight.js/styles/base16/eighties.min.css +7 -0
  112. package/dist/js/highlight.js/styles/base16/embers.min.css +7 -0
  113. package/dist/js/highlight.js/styles/base16/equilibrium-dark.min.css +7 -0
  114. package/dist/js/highlight.js/styles/base16/equilibrium-gray-dark.min.css +7 -0
  115. package/dist/js/highlight.js/styles/base16/equilibrium-gray-light.min.css +7 -0
  116. package/dist/js/highlight.js/styles/base16/equilibrium-light.min.css +7 -0
  117. package/dist/js/highlight.js/styles/base16/espresso.min.css +7 -0
  118. package/dist/js/highlight.js/styles/base16/eva-dim.min.css +7 -0
  119. package/dist/js/highlight.js/styles/base16/eva.min.css +7 -0
  120. package/dist/js/highlight.js/styles/base16/flat.min.css +7 -0
  121. package/dist/js/highlight.js/styles/base16/framer.min.css +7 -0
  122. package/dist/js/highlight.js/styles/base16/fruit-soda.min.css +7 -0
  123. package/dist/js/highlight.js/styles/base16/gigavolt.min.css +7 -0
  124. package/dist/js/highlight.js/styles/base16/github.min.css +7 -0
  125. package/dist/js/highlight.js/styles/base16/google-dark.min.css +7 -0
  126. package/dist/js/highlight.js/styles/base16/google-light.min.css +7 -0
  127. package/dist/js/highlight.js/styles/base16/grayscale-dark.min.css +7 -0
  128. package/dist/js/highlight.js/styles/base16/grayscale-light.min.css +7 -0
  129. package/dist/js/highlight.js/styles/base16/green-screen.min.css +7 -0
  130. package/dist/js/highlight.js/styles/base16/gruvbox-dark-hard.min.css +7 -0
  131. package/dist/js/highlight.js/styles/base16/gruvbox-dark-medium.min.css +7 -0
  132. package/dist/js/highlight.js/styles/base16/gruvbox-dark-pale.min.css +7 -0
  133. package/dist/js/highlight.js/styles/base16/gruvbox-dark-soft.min.css +7 -0
  134. package/dist/js/highlight.js/styles/base16/gruvbox-light-hard.min.css +7 -0
  135. package/dist/js/highlight.js/styles/base16/gruvbox-light-medium.min.css +7 -0
  136. package/dist/js/highlight.js/styles/base16/gruvbox-light-soft.min.css +7 -0
  137. package/dist/js/highlight.js/styles/base16/hardcore.min.css +7 -0
  138. package/dist/js/highlight.js/styles/base16/harmonic16-dark.min.css +7 -0
  139. package/dist/js/highlight.js/styles/base16/harmonic16-light.min.css +7 -0
  140. package/dist/js/highlight.js/styles/base16/heetch-dark.min.css +7 -0
  141. package/dist/js/highlight.js/styles/base16/heetch-light.min.css +7 -0
  142. package/dist/js/highlight.js/styles/base16/helios.min.css +7 -0
  143. package/dist/js/highlight.js/styles/base16/hopscotch.min.css +7 -0
  144. package/dist/js/highlight.js/styles/base16/horizon-dark.min.css +7 -0
  145. package/dist/js/highlight.js/styles/base16/horizon-light.min.css +7 -0
  146. package/dist/js/highlight.js/styles/base16/humanoid-dark.min.css +7 -0
  147. package/dist/js/highlight.js/styles/base16/humanoid-light.min.css +7 -0
  148. package/dist/js/highlight.js/styles/base16/ia-dark.min.css +7 -0
  149. package/dist/js/highlight.js/styles/base16/ia-light.min.css +7 -0
  150. package/dist/js/highlight.js/styles/base16/icy-dark.min.css +7 -0
  151. package/dist/js/highlight.js/styles/base16/ir-black.min.css +7 -0
  152. package/dist/js/highlight.js/styles/base16/isotope.min.css +7 -0
  153. package/dist/js/highlight.js/styles/base16/kimber.min.css +7 -0
  154. package/dist/js/highlight.js/styles/base16/london-tube.min.css +7 -0
  155. package/dist/js/highlight.js/styles/base16/macintosh.min.css +7 -0
  156. package/dist/js/highlight.js/styles/base16/marrakesh.min.css +7 -0
  157. package/dist/js/highlight.js/styles/base16/materia.min.css +7 -0
  158. package/dist/js/highlight.js/styles/base16/material-darker.min.css +7 -0
  159. package/dist/js/highlight.js/styles/base16/material-lighter.min.css +7 -0
  160. package/dist/js/highlight.js/styles/base16/material-palenight.min.css +7 -0
  161. package/dist/js/highlight.js/styles/base16/material-vivid.min.css +7 -0
  162. package/dist/js/highlight.js/styles/base16/material.min.css +7 -0
  163. package/dist/js/highlight.js/styles/base16/mellow-purple.min.css +7 -0
  164. package/dist/js/highlight.js/styles/base16/mexico-light.min.css +7 -0
  165. package/dist/js/highlight.js/styles/base16/mocha.min.css +7 -0
  166. package/dist/js/highlight.js/styles/base16/monokai.min.css +7 -0
  167. package/dist/js/highlight.js/styles/base16/nebula.min.css +7 -0
  168. package/dist/js/highlight.js/styles/base16/nord.min.css +7 -0
  169. package/dist/js/highlight.js/styles/base16/nova.min.css +7 -0
  170. package/dist/js/highlight.js/styles/base16/ocean.min.css +7 -0
  171. package/dist/js/highlight.js/styles/base16/oceanicnext.min.css +7 -0
  172. package/dist/js/highlight.js/styles/base16/one-light.min.css +7 -0
  173. package/dist/js/highlight.js/styles/base16/onedark.min.css +7 -0
  174. package/dist/js/highlight.js/styles/base16/outrun-dark.min.css +7 -0
  175. package/dist/js/highlight.js/styles/base16/papercolor-dark.min.css +7 -0
  176. package/dist/js/highlight.js/styles/base16/papercolor-light.min.css +7 -0
  177. package/dist/js/highlight.js/styles/base16/paraiso.min.css +7 -0
  178. package/dist/js/highlight.js/styles/base16/pasque.min.css +7 -0
  179. package/dist/js/highlight.js/styles/base16/phd.min.css +7 -0
  180. package/dist/js/highlight.js/styles/base16/pico.min.css +7 -0
  181. package/dist/js/highlight.js/styles/base16/pop.min.css +7 -0
  182. package/dist/js/highlight.js/styles/base16/porple.min.css +7 -0
  183. package/dist/js/highlight.js/styles/base16/qualia.min.css +7 -0
  184. package/dist/js/highlight.js/styles/base16/railscasts.min.css +7 -0
  185. package/dist/js/highlight.js/styles/base16/rebecca.min.css +7 -0
  186. package/dist/js/highlight.js/styles/base16/ros-pine-dawn.min.css +7 -0
  187. package/dist/js/highlight.js/styles/base16/ros-pine-moon.min.css +7 -0
  188. package/dist/js/highlight.js/styles/base16/ros-pine.min.css +7 -0
  189. package/dist/js/highlight.js/styles/base16/sagelight.min.css +7 -0
  190. package/dist/js/highlight.js/styles/base16/sandcastle.min.css +7 -0
  191. package/dist/js/highlight.js/styles/base16/seti-ui.min.css +7 -0
  192. package/dist/js/highlight.js/styles/base16/shapeshifter.min.css +7 -0
  193. package/dist/js/highlight.js/styles/base16/silk-dark.min.css +7 -0
  194. package/dist/js/highlight.js/styles/base16/silk-light.min.css +7 -0
  195. package/dist/js/highlight.js/styles/base16/snazzy.min.css +7 -0
  196. package/dist/js/highlight.js/styles/base16/solar-flare-light.min.css +7 -0
  197. package/dist/js/highlight.js/styles/base16/solar-flare.min.css +7 -0
  198. package/dist/js/highlight.js/styles/base16/solarized-dark.min.css +7 -0
  199. package/dist/js/highlight.js/styles/base16/solarized-light.min.css +7 -0
  200. package/dist/js/highlight.js/styles/base16/spacemacs.min.css +7 -0
  201. package/dist/js/highlight.js/styles/base16/summercamp.min.css +7 -0
  202. package/dist/js/highlight.js/styles/base16/summerfruit-dark.min.css +7 -0
  203. package/dist/js/highlight.js/styles/base16/summerfruit-light.min.css +7 -0
  204. package/dist/js/highlight.js/styles/base16/synth-midnight-terminal-dark.min.css +7 -0
  205. package/dist/js/highlight.js/styles/base16/synth-midnight-terminal-light.min.css +7 -0
  206. package/dist/js/highlight.js/styles/base16/tango.min.css +7 -0
  207. package/dist/js/highlight.js/styles/base16/tender.min.css +7 -0
  208. package/dist/js/highlight.js/styles/base16/tomorrow-night.min.css +7 -0
  209. package/dist/js/highlight.js/styles/base16/tomorrow.min.css +7 -0
  210. package/dist/js/highlight.js/styles/base16/twilight.min.css +7 -0
  211. package/dist/js/highlight.js/styles/base16/unikitty-dark.min.css +7 -0
  212. package/dist/js/highlight.js/styles/base16/unikitty-light.min.css +7 -0
  213. package/dist/js/highlight.js/styles/base16/vulcan.min.css +7 -0
  214. package/dist/js/highlight.js/styles/base16/windows-10-light.min.css +7 -0
  215. package/dist/js/highlight.js/styles/base16/windows-10.min.css +7 -0
  216. package/dist/js/highlight.js/styles/base16/windows-95-light.min.css +7 -0
  217. package/dist/js/highlight.js/styles/base16/windows-95.min.css +7 -0
  218. package/dist/js/highlight.js/styles/base16/windows-high-contrast-light.min.css +7 -0
  219. package/dist/js/highlight.js/styles/base16/windows-high-contrast.min.css +7 -0
  220. package/dist/js/highlight.js/styles/base16/windows-nt-light.min.css +7 -0
  221. package/dist/js/highlight.js/styles/base16/windows-nt.min.css +7 -0
  222. package/dist/js/highlight.js/styles/base16/woodland.min.css +7 -0
  223. package/dist/js/highlight.js/styles/base16/xcode-dusk.min.css +7 -0
  224. package/dist/js/highlight.js/styles/base16/zenburn.min.css +7 -0
  225. package/dist/js/highlight.js/styles/brown-paper.min.css +1 -0
  226. package/dist/js/highlight.js/styles/brown-papersq.png +0 -0
  227. package/dist/js/highlight.js/styles/codepen-embed.min.css +1 -0
  228. package/dist/js/highlight.js/styles/color-brewer.min.css +1 -0
  229. package/dist/js/highlight.js/styles/dark.min.css +1 -0
  230. package/dist/js/highlight.js/styles/default.min.css +9 -0
  231. package/dist/js/highlight.js/styles/devibeans.min.css +7 -0
  232. package/dist/js/highlight.js/styles/docco.min.css +1 -0
  233. package/dist/js/highlight.js/styles/far.min.css +1 -0
  234. package/dist/js/highlight.js/styles/felipec.min.css +7 -0
  235. package/dist/js/highlight.js/styles/foundation.min.css +1 -0
  236. package/dist/js/highlight.js/styles/github-dark-dimmed.min.css +9 -0
  237. package/dist/js/highlight.js/styles/github-dark.min.css +10 -0
  238. package/dist/js/highlight.js/styles/github.min.css +10 -0
  239. package/dist/js/highlight.js/styles/gml.min.css +1 -0
  240. package/dist/js/highlight.js/styles/googlecode.min.css +1 -0
  241. package/dist/js/highlight.js/styles/gradient-dark.min.css +1 -0
  242. package/dist/js/highlight.js/styles/gradient-light.min.css +1 -0
  243. package/dist/js/highlight.js/styles/grayscale.min.css +1 -0
  244. package/dist/js/highlight.js/styles/hybrid.min.css +1 -0
  245. package/dist/js/highlight.js/styles/idea.min.css +1 -0
  246. package/dist/js/highlight.js/styles/intellij-light.min.css +1 -0
  247. package/dist/js/highlight.js/styles/ir-black.min.css +1 -0
  248. package/dist/js/highlight.js/styles/isbl-editor-dark.min.css +1 -0
  249. package/dist/js/highlight.js/styles/isbl-editor-light.min.css +1 -0
  250. package/dist/js/highlight.js/styles/kimbie-dark.min.css +1 -0
  251. package/dist/js/highlight.js/styles/kimbie-light.min.css +1 -0
  252. package/dist/js/highlight.js/styles/lightfair.min.css +1 -0
  253. package/dist/js/highlight.js/styles/lioshi.min.css +1 -0
  254. package/dist/js/highlight.js/styles/magula.min.css +1 -0
  255. package/dist/js/highlight.js/styles/mono-blue.min.css +1 -0
  256. package/dist/js/highlight.js/styles/monokai-sublime.min.css +1 -0
  257. package/dist/js/highlight.js/styles/monokai.min.css +1 -0
  258. package/dist/js/highlight.js/styles/night-owl.min.css +1 -0
  259. package/dist/js/highlight.js/styles/nnfx-dark.min.css +10 -0
  260. package/dist/js/highlight.js/styles/nnfx-light.min.css +10 -0
  261. package/dist/js/highlight.js/styles/nord.min.css +1 -0
  262. package/dist/js/highlight.js/styles/obsidian.min.css +1 -0
  263. package/dist/js/highlight.js/styles/panda-syntax-dark.min.css +1 -0
  264. package/dist/js/highlight.js/styles/panda-syntax-light.min.css +1 -0
  265. package/dist/js/highlight.js/styles/paraiso-dark.min.css +1 -0
  266. package/dist/js/highlight.js/styles/paraiso-light.min.css +1 -0
  267. package/dist/js/highlight.js/styles/pojoaque.jpg +0 -0
  268. package/dist/js/highlight.js/styles/pojoaque.min.css +1 -0
  269. package/dist/js/highlight.js/styles/purebasic.min.css +1 -0
  270. package/dist/js/highlight.js/styles/qtcreator-dark.min.css +1 -0
  271. package/dist/js/highlight.js/styles/qtcreator-light.min.css +1 -0
  272. package/dist/js/highlight.js/styles/rainbow.min.css +1 -0
  273. package/dist/js/highlight.js/styles/routeros.min.css +1 -0
  274. package/dist/js/highlight.js/styles/school-book.min.css +1 -0
  275. package/dist/js/highlight.js/styles/shades-of-purple.min.css +1 -0
  276. package/dist/js/highlight.js/styles/srcery.min.css +1 -0
  277. package/dist/js/highlight.js/styles/stackoverflow-dark.min.css +13 -0
  278. package/dist/js/highlight.js/styles/stackoverflow-light.min.css +13 -0
  279. package/dist/js/highlight.js/styles/sunburst.min.css +1 -0
  280. package/dist/js/highlight.js/styles/tokyo-night-dark.min.css +8 -0
  281. package/dist/js/highlight.js/styles/tokyo-night-light.min.css +8 -0
  282. package/dist/js/highlight.js/styles/tomorrow-night-blue.min.css +1 -0
  283. package/dist/js/highlight.js/styles/tomorrow-night-bright.min.css +1 -0
  284. package/dist/js/highlight.js/styles/vs.min.css +1 -0
  285. package/dist/js/highlight.js/styles/vs2015.min.css +1 -0
  286. package/dist/js/highlight.js/styles/xcode.min.css +1 -0
  287. package/dist/js/highlight.js/styles/xt256.min.css +1 -0
  288. package/dist/js/highlight.js/third-languages.js +135 -0
  289. package/dist/js/i18n/de_DE.js +86 -0
  290. package/dist/js/i18n/en_US.js +86 -0
  291. package/dist/js/i18n/es_ES.js +86 -0
  292. package/dist/js/i18n/fr_FR.js +86 -0
  293. package/dist/js/i18n/ja_JP.js +86 -0
  294. package/dist/js/i18n/ko_KR.js +86 -0
  295. package/dist/js/i18n/pt_BR.js +86 -0
  296. package/dist/js/i18n/ru_RU.js +86 -0
  297. package/dist/js/i18n/sv_SE.js +86 -0
  298. package/dist/js/i18n/vi_VN.js +86 -0
  299. package/dist/js/i18n/zh_CN.js +86 -0
  300. package/dist/js/i18n/zh_TW.js +86 -0
  301. package/dist/js/icons/ant.js +174 -0
  302. package/dist/js/icons/material.js +195 -0
  303. package/dist/js/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
  304. package/dist/js/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  305. package/dist/js/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  306. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  307. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  308. package/dist/js/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  309. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  310. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  311. package/dist/js/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  312. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  313. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  314. package/dist/js/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  315. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  316. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  317. package/dist/js/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  318. package/dist/js/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
  319. package/dist/js/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  320. package/dist/js/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  321. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  322. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  323. package/dist/js/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  324. package/dist/js/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
  325. package/dist/js/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  326. package/dist/js/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  327. package/dist/js/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
  328. package/dist/js/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  329. package/dist/js/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  330. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  331. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  332. package/dist/js/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  333. package/dist/js/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
  334. package/dist/js/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  335. package/dist/js/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  336. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  337. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  338. package/dist/js/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  339. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  340. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  341. package/dist/js/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  342. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  343. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  344. package/dist/js/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  345. package/dist/js/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
  346. package/dist/js/katex/fonts/KaTeX_Script-Regular.woff +0 -0
  347. package/dist/js/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  348. package/dist/js/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
  349. package/dist/js/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  350. package/dist/js/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  351. package/dist/js/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
  352. package/dist/js/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  353. package/dist/js/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  354. package/dist/js/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
  355. package/dist/js/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  356. package/dist/js/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  357. package/dist/js/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
  358. package/dist/js/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  359. package/dist/js/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  360. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  361. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  362. package/dist/js/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  363. package/dist/js/katex/katex.min.css +1 -0
  364. package/dist/js/katex/katex.min.js +1 -0
  365. package/dist/js/katex/mhchem.min.js +1 -0
  366. package/dist/js/lute/lute.min.js +72 -0
  367. package/dist/js/markmap/katex.min.css +1 -0
  368. package/dist/js/markmap/markmap.min.js +8251 -0
  369. package/dist/js/markmap/prism.css +140 -0
  370. package/dist/js/mathjax/LICENSE +202 -0
  371. package/dist/js/mathjax/a11y/assistive-mml.js +1 -0
  372. package/dist/js/mathjax/a11y/complexity.js +1 -0
  373. package/dist/js/mathjax/a11y/explorer.js +1 -0
  374. package/dist/js/mathjax/a11y/semantic-enrich.js +1 -0
  375. package/dist/js/mathjax/input/asciimath.js +1 -0
  376. package/dist/js/mathjax/input/mml/entities.js +1 -0
  377. package/dist/js/mathjax/input/mml.js +1 -0
  378. package/dist/js/mathjax/input/tex/extensions/action.js +1 -0
  379. package/dist/js/mathjax/input/tex/extensions/all-packages.js +1 -0
  380. package/dist/js/mathjax/input/tex/extensions/ams.js +1 -0
  381. package/dist/js/mathjax/input/tex/extensions/amscd.js +1 -0
  382. package/dist/js/mathjax/input/tex/extensions/autoload.js +1 -0
  383. package/dist/js/mathjax/input/tex/extensions/bbox.js +1 -0
  384. package/dist/js/mathjax/input/tex/extensions/boldsymbol.js +1 -0
  385. package/dist/js/mathjax/input/tex/extensions/braket.js +1 -0
  386. package/dist/js/mathjax/input/tex/extensions/bussproofs.js +1 -0
  387. package/dist/js/mathjax/input/tex/extensions/cancel.js +1 -0
  388. package/dist/js/mathjax/input/tex/extensions/color.js +1 -0
  389. package/dist/js/mathjax/input/tex/extensions/colorV2.js +1 -0
  390. package/dist/js/mathjax/input/tex/extensions/configMacros.js +1 -0
  391. package/dist/js/mathjax/input/tex/extensions/enclose.js +1 -0
  392. package/dist/js/mathjax/input/tex/extensions/extpfeil.js +1 -0
  393. package/dist/js/mathjax/input/tex/extensions/html.js +1 -0
  394. package/dist/js/mathjax/input/tex/extensions/mhchem.js +1 -0
  395. package/dist/js/mathjax/input/tex/extensions/newcommand.js +1 -0
  396. package/dist/js/mathjax/input/tex/extensions/noerrors.js +1 -0
  397. package/dist/js/mathjax/input/tex/extensions/noundefined.js +1 -0
  398. package/dist/js/mathjax/input/tex/extensions/physics.js +1 -0
  399. package/dist/js/mathjax/input/tex/extensions/require.js +1 -0
  400. package/dist/js/mathjax/input/tex/extensions/tagFormat.js +1 -0
  401. package/dist/js/mathjax/input/tex/extensions/textmacros.js +1 -0
  402. package/dist/js/mathjax/input/tex/extensions/unicode.js +1 -0
  403. package/dist/js/mathjax/input/tex/extensions/verb.js +1 -0
  404. package/dist/js/mathjax/input/tex-base.js +1 -0
  405. package/dist/js/mathjax/input/tex-full.js +1 -0
  406. package/dist/js/mathjax/input/tex.js +1 -0
  407. package/dist/js/mathjax/sre/mathmaps/de.js +104 -0
  408. package/dist/js/mathjax/sre/mathmaps/en.js +110 -0
  409. package/dist/js/mathjax/sre/mathmaps/es.js +104 -0
  410. package/dist/js/mathjax/sre/mathmaps/fr.js +104 -0
  411. package/dist/js/mathjax/sre/mathmaps/mathmaps_ie.js +518 -0
  412. package/dist/js/mathjax/sre/mathmaps/nemeth.js +104 -0
  413. package/dist/js/mathjax/sre/sre-node.js +11 -0
  414. package/dist/js/mathjax/sre/sre_browser.js +1633 -0
  415. package/dist/js/mathjax/tex-svg-full.js +1 -0
  416. package/dist/js/mermaid/mermaid.min.js +2694 -0
  417. package/dist/js/plantuml/plantuml-encoder.min.js +1 -0
  418. package/dist/js/smiles-drawer/smiles-drawer.min.js +71 -0
  419. package/dist/method.d.ts +51 -0
  420. package/dist/method.js +2675 -0
  421. package/dist/method.min.js +1 -0
  422. package/dist/ts/constants.d.ts +47 -0
  423. package/dist/ts/devtools/index.d.ts +7 -0
  424. package/dist/ts/export/index.d.ts +4 -0
  425. package/dist/ts/hint/index.d.ts +14 -0
  426. package/dist/ts/ir/expandMarker.d.ts +1 -0
  427. package/dist/ts/ir/highlightToolbarIR.d.ts +1 -0
  428. package/dist/ts/ir/index.d.ts +13 -0
  429. package/dist/ts/ir/input.d.ts +1 -0
  430. package/dist/ts/ir/process.d.ts +8 -0
  431. package/dist/ts/ir/processKeydown.d.ts +1 -0
  432. package/dist/ts/markdown/SMILESRender.d.ts +1 -0
  433. package/dist/ts/markdown/abcRender.d.ts +1 -0
  434. package/dist/ts/markdown/adapterRender.d.ts +41 -0
  435. package/dist/ts/markdown/anchorRender.d.ts +1 -0
  436. package/dist/ts/markdown/chartRender.d.ts +1 -0
  437. package/dist/ts/markdown/codeRender.d.ts +1 -0
  438. package/dist/ts/markdown/flowchartRender.d.ts +1 -0
  439. package/dist/ts/markdown/getHTML.d.ts +1 -0
  440. package/dist/ts/markdown/getMarkdown.d.ts +1 -0
  441. package/dist/ts/markdown/graphvizRender.d.ts +1 -0
  442. package/dist/ts/markdown/highlightRender.d.ts +1 -0
  443. package/dist/ts/markdown/lazyLoadImageRender.d.ts +6 -0
  444. package/dist/ts/markdown/markmapRender.d.ts +1 -0
  445. package/dist/ts/markdown/mathRender.d.ts +9 -0
  446. package/dist/ts/markdown/mediaRender.d.ts +1 -0
  447. package/dist/ts/markdown/mermaidRender.d.ts +1 -0
  448. package/dist/ts/markdown/mindmapRender.d.ts +1 -0
  449. package/dist/ts/markdown/outlineRender.d.ts +1 -0
  450. package/dist/ts/markdown/plantumlRender.d.ts +1 -0
  451. package/dist/ts/markdown/previewRender.d.ts +2 -0
  452. package/dist/ts/markdown/setLute.d.ts +1 -0
  453. package/dist/ts/markdown/speechRender.d.ts +6 -0
  454. package/dist/ts/outline/index.d.ts +7 -0
  455. package/dist/ts/preview/image.d.ts +1 -0
  456. package/dist/ts/preview/index.d.ts +10 -0
  457. package/dist/ts/resize/index.d.ts +6 -0
  458. package/dist/ts/sv/combineFootnote.d.ts +6 -0
  459. package/dist/ts/sv/index.d.ts +13 -0
  460. package/dist/ts/sv/inputEvent.d.ts +1 -0
  461. package/dist/ts/sv/process.d.ts +11 -0
  462. package/dist/ts/sv/processKeydown.d.ts +1 -0
  463. package/dist/ts/tip/index.d.ts +6 -0
  464. package/dist/ts/toolbar/Both.d.ts +5 -0
  465. package/dist/ts/toolbar/Br.d.ts +4 -0
  466. package/dist/ts/toolbar/CodeTheme.d.ts +6 -0
  467. package/dist/ts/toolbar/ContentTheme.d.ts +6 -0
  468. package/dist/ts/toolbar/Counter.d.ts +6 -0
  469. package/dist/ts/toolbar/Custom.d.ts +5 -0
  470. package/dist/ts/toolbar/Devtools.d.ts +5 -0
  471. package/dist/ts/toolbar/Divider.d.ts +4 -0
  472. package/dist/ts/toolbar/EditMode.d.ts +8 -0
  473. package/dist/ts/toolbar/Emoji.d.ts +7 -0
  474. package/dist/ts/toolbar/Export.d.ts +6 -0
  475. package/dist/ts/toolbar/Fullscreen.d.ts +6 -0
  476. package/dist/ts/toolbar/Headings.d.ts +7 -0
  477. package/dist/ts/toolbar/Help.d.ts +5 -0
  478. package/dist/ts/toolbar/Indent.d.ts +5 -0
  479. package/dist/ts/toolbar/Info.d.ts +5 -0
  480. package/dist/ts/toolbar/InsertAfter.d.ts +5 -0
  481. package/dist/ts/toolbar/InsertBefore.d.ts +5 -0
  482. package/dist/ts/toolbar/MenuItem.d.ts +5 -0
  483. package/dist/ts/toolbar/Outdent.d.ts +5 -0
  484. package/dist/ts/toolbar/Outline.d.ts +5 -0
  485. package/dist/ts/toolbar/Preview.d.ts +6 -0
  486. package/dist/ts/toolbar/Record.d.ts +6 -0
  487. package/dist/ts/toolbar/Redo.d.ts +5 -0
  488. package/dist/ts/toolbar/Undo.d.ts +5 -0
  489. package/dist/ts/toolbar/Upload.d.ts +6 -0
  490. package/dist/ts/toolbar/index.d.ts +10 -0
  491. package/dist/ts/toolbar/setToolbar.d.ts +20 -0
  492. package/dist/ts/ui/initUI.d.ts +4 -0
  493. package/dist/ts/ui/setCodeTheme.d.ts +1 -0
  494. package/dist/ts/ui/setContentTheme.d.ts +1 -0
  495. package/dist/ts/ui/setPreviewMode.d.ts +1 -0
  496. package/dist/ts/ui/setTheme.d.ts +1 -0
  497. package/dist/ts/undo/index.d.ts +19 -0
  498. package/dist/ts/upload/getElement.d.ts +1 -0
  499. package/dist/ts/upload/index.d.ts +8 -0
  500. package/dist/ts/upload/setHeaders.d.ts +1 -0
  501. package/dist/ts/util/Options.d.ts +8 -0
  502. package/dist/ts/util/RecordMedia.d.ts +18 -0
  503. package/dist/ts/util/addScript.d.ts +2 -0
  504. package/dist/ts/util/addStyle.d.ts +1 -0
  505. package/dist/ts/util/code160to32.d.ts +1 -0
  506. package/dist/ts/util/compatibility.d.ts +7 -0
  507. package/dist/ts/util/editorCommonEvent.d.ts +9 -0
  508. package/dist/ts/util/fixBrowserBehavior.d.ts +39 -0
  509. package/dist/ts/util/function.d.ts +3 -0
  510. package/dist/ts/util/getSelectText.d.ts +1 -0
  511. package/dist/ts/util/hasClosest.d.ts +9 -0
  512. package/dist/ts/util/hasClosestByHeadings.d.ts +2 -0
  513. package/dist/ts/util/highlightToolbar.d.ts +1 -0
  514. package/dist/ts/util/hotKey.d.ts +1 -0
  515. package/dist/ts/util/log.d.ts +1 -0
  516. package/dist/ts/util/merge.d.ts +1 -0
  517. package/dist/ts/util/processCode.d.ts +2 -0
  518. package/dist/ts/util/selection.d.ts +14 -0
  519. package/dist/ts/util/toc.d.ts +5 -0
  520. package/dist/ts/wysiwyg/afterRenderEvent.d.ts +5 -0
  521. package/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +4 -0
  522. package/dist/ts/wysiwyg/index.d.ts +22 -0
  523. package/dist/ts/wysiwyg/inlineTag.d.ts +10 -0
  524. package/dist/ts/wysiwyg/input.d.ts +1 -0
  525. package/dist/ts/wysiwyg/processKeydown.d.ts +2 -0
  526. package/dist/ts/wysiwyg/renderDomByMd.d.ts +5 -0
  527. package/dist/ts/wysiwyg/setHeading.d.ts +2 -0
  528. package/dist/ts/wysiwyg/showCode.d.ts +1 -0
  529. package/dist/ts/wysiwyg/toolbarEvent.d.ts +1 -0
  530. package/dist/types/index.d.ts +925 -0
  531. package/package.json +79 -0
  532. package/src/assets/less/_content.less +279 -0
  533. package/src/assets/less/_hint.less +67 -0
  534. package/src/assets/less/_ir.less +275 -0
  535. package/src/assets/less/_panel.less +110 -0
  536. package/src/assets/less/_reset.less +632 -0
  537. package/src/assets/less/_sv.less +132 -0
  538. package/src/assets/less/_toolbar.less +180 -0
  539. package/src/assets/less/_tooltipped.less +171 -0
  540. package/src/assets/less/_wysiwyg.less +195 -0
  541. package/src/assets/less/index.less +88 -0
  542. package/src/index.ts +566 -0
  543. package/src/method.ts +71 -0
  544. package/src/ts/constants.ts +90 -0
  545. package/src/ts/devtools/index.ts +83 -0
  546. package/src/ts/export/index.ts +84 -0
  547. package/src/ts/hint/index.ts +276 -0
  548. package/src/ts/ir/expandMarker.ts +79 -0
  549. package/src/ts/ir/highlightToolbarIR.ts +97 -0
  550. package/src/ts/ir/index.ts +265 -0
  551. package/src/ts/ir/input.ts +246 -0
  552. package/src/ts/ir/process.ts +222 -0
  553. package/src/ts/ir/processKeydown.ts +238 -0
  554. package/src/ts/markdown/SMILESRender.ts +29 -0
  555. package/src/ts/markdown/abcRender.ts +27 -0
  556. package/src/ts/markdown/adapterRender.ts +41 -0
  557. package/src/ts/markdown/anchorRender.ts +19 -0
  558. package/src/ts/markdown/chartRender.ts +38 -0
  559. package/src/ts/markdown/codeRender.ts +60 -0
  560. package/src/ts/markdown/flowchartRender.ts +25 -0
  561. package/src/ts/markdown/getHTML.ts +11 -0
  562. package/src/ts/markdown/getMarkdown.ts +12 -0
  563. package/src/ts/markdown/graphvizRender.ts +49 -0
  564. package/src/ts/markdown/highlightRender.ts +94 -0
  565. package/src/ts/markdown/lazyLoadImageRender.ts +56 -0
  566. package/src/ts/markdown/markmapRender.ts +56 -0
  567. package/src/ts/markdown/mathRender.ts +148 -0
  568. package/src/ts/markdown/mediaRender.ts +105 -0
  569. package/src/ts/markdown/mermaidRender.ts +60 -0
  570. package/src/ts/markdown/mindmapRender.ts +74 -0
  571. package/src/ts/markdown/outlineRender.ts +110 -0
  572. package/src/ts/markdown/plantumlRender.ts +32 -0
  573. package/src/ts/markdown/previewRender.ts +171 -0
  574. package/src/ts/markdown/setLute.ts +26 -0
  575. package/src/ts/markdown/speechRender.ts +107 -0
  576. package/src/ts/outline/index.ts +45 -0
  577. package/src/ts/preview/image.ts +50 -0
  578. package/src/ts/preview/index.ts +287 -0
  579. package/src/ts/resize/index.ts +57 -0
  580. package/src/ts/sv/combineFootnote.ts +27 -0
  581. package/src/ts/sv/index.ts +125 -0
  582. package/src/ts/sv/inputEvent.ts +188 -0
  583. package/src/ts/sv/process.ts +215 -0
  584. package/src/ts/sv/processKeydown.ts +202 -0
  585. package/src/ts/tip/index.ts +39 -0
  586. package/src/ts/toolbar/Both.ts +28 -0
  587. package/src/ts/toolbar/Br.ts +8 -0
  588. package/src/ts/toolbar/CodeTheme.ts +36 -0
  589. package/src/ts/toolbar/ContentTheme.ts +35 -0
  590. package/src/ts/toolbar/Counter.ts +40 -0
  591. package/src/ts/toolbar/Custom.ts +17 -0
  592. package/src/ts/toolbar/Devtools.ts +28 -0
  593. package/src/ts/toolbar/Divider.ts +8 -0
  594. package/src/ts/toolbar/EditMode.ts +195 -0
  595. package/src/ts/toolbar/Emoji.ts +79 -0
  596. package/src/ts/toolbar/Export.ts +41 -0
  597. package/src/ts/toolbar/Fullscreen.ts +66 -0
  598. package/src/ts/toolbar/Headings.ts +73 -0
  599. package/src/ts/toolbar/Help.ts +30 -0
  600. package/src/ts/toolbar/Indent.ts +25 -0
  601. package/src/ts/toolbar/Info.ts +43 -0
  602. package/src/ts/toolbar/InsertAfter.ts +18 -0
  603. package/src/ts/toolbar/InsertBefore.ts +18 -0
  604. package/src/ts/toolbar/MenuItem.ts +54 -0
  605. package/src/ts/toolbar/Outdent.ts +24 -0
  606. package/src/ts/toolbar/Outline.ts +21 -0
  607. package/src/ts/toolbar/Preview.ts +55 -0
  608. package/src/ts/toolbar/Record.ts +60 -0
  609. package/src/ts/toolbar/Redo.ts +18 -0
  610. package/src/ts/toolbar/Undo.ts +18 -0
  611. package/src/ts/toolbar/Upload.ts +41 -0
  612. package/src/ts/toolbar/index.ts +192 -0
  613. package/src/ts/toolbar/setToolbar.ts +120 -0
  614. package/src/ts/ui/initUI.ts +180 -0
  615. package/src/ts/ui/setCodeTheme.ts +16 -0
  616. package/src/ts/ui/setContentTheme.ts +15 -0
  617. package/src/ts/ui/setPreviewMode.ts +31 -0
  618. package/src/ts/ui/setTheme.ts +7 -0
  619. package/src/ts/undo/index.ts +270 -0
  620. package/src/ts/upload/getElement.ts +10 -0
  621. package/src/ts/upload/index.ts +273 -0
  622. package/src/ts/upload/setHeaders.ts +10 -0
  623. package/src/ts/util/Options.ts +454 -0
  624. package/src/ts/util/RecordMedia.ts +170 -0
  625. package/src/ts/util/addScript.ts +43 -0
  626. package/src/ts/util/addStyle.ts +10 -0
  627. package/src/ts/util/code160to32.ts +4 -0
  628. package/src/ts/util/compatibility.ts +67 -0
  629. package/src/ts/util/editorCommonEvent.ts +264 -0
  630. package/src/ts/util/fixBrowserBehavior.ts +1569 -0
  631. package/src/ts/util/function.ts +15 -0
  632. package/src/ts/util/getSelectText.ts +8 -0
  633. package/src/ts/util/hasClosest.ts +154 -0
  634. package/src/ts/util/hasClosestByHeadings.ts +27 -0
  635. package/src/ts/util/highlightToolbar.ts +10 -0
  636. package/src/ts/util/hotKey.ts +54 -0
  637. package/src/ts/util/log.ts +6 -0
  638. package/src/ts/util/merge.ts +18 -0
  639. package/src/ts/util/processCode.ts +101 -0
  640. package/src/ts/util/selection.ts +280 -0
  641. package/src/ts/util/toc.ts +83 -0
  642. package/src/ts/wysiwyg/afterRenderEvent.ts +41 -0
  643. package/src/ts/wysiwyg/highlightToolbarWYSIWYG.ts +1156 -0
  644. package/src/ts/wysiwyg/index.ts +578 -0
  645. package/src/ts/wysiwyg/inlineTag.ts +129 -0
  646. package/src/ts/wysiwyg/input.ts +212 -0
  647. package/src/ts/wysiwyg/processKeydown.ts +363 -0
  648. package/src/ts/wysiwyg/renderDomByMd.ts +18 -0
  649. package/src/ts/wysiwyg/setHeading.ts +43 -0
  650. package/src/ts/wysiwyg/showCode.ts +32 -0
  651. package/src/ts/wysiwyg/toolbarEvent.ts +333 -0
package/dist/index.css ADDED
@@ -0,0 +1,1834 @@
1
+ /*!
2
+ * Vditor v0.0.1 - A markdown editor written in TypeScript.
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2018-present B3log 开源, b3log.org
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ */
27
+ /*!
28
+ * Vditor v0.0.1 - A markdown editor written in TypeScript.
29
+ *
30
+ * MIT License
31
+ *
32
+ * Copyright (c) 2018-present B3log 开源, b3log.org
33
+ *
34
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
35
+ * of this software and associated documentation files (the "Software"), to deal
36
+ * in the Software without restriction, including without limitation the rights
37
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38
+ * copies of the Software, and to permit persons to whom the Software is
39
+ * furnished to do so, subject to the following conditions:
40
+ *
41
+ * The above copyright notice and this permission notice shall be included in all
42
+ * copies or substantial portions of the Software.
43
+ *
44
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
50
+ * SOFTWARE.
51
+ *
52
+ */
53
+ .vditor {
54
+ --border-color: #d1d5da;
55
+ --second-color: rgba(88, 96, 105, 0.36);
56
+ --panel-background-color: #fff;
57
+ --panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
58
+ --toolbar-background-color: #f6f8fa;
59
+ --toolbar-icon-color: #586069;
60
+ --toolbar-icon-hover-color: #4285f4;
61
+ --toolbar-height: 35px;
62
+ --toolbar-divider-margin-top: 8px;
63
+ --textarea-background-color: #fafbfc;
64
+ --textarea-text-color: #24292e;
65
+ --resize-icon-color: var(--toolbar-icon-color);
66
+ --resize-background-color: var(--toolbar-background-color);
67
+ --resize-hover-icon-color: var(--panel-background-color);
68
+ --resize-hover-background-color: var(--toolbar-icon-hover-color);
69
+ --count-background-color: rgba(27, 31, 35, 0.05);
70
+ --heading-border-color: #eaecef;
71
+ --blockquote-color: #6a737d;
72
+ --ir-heading-color: #660e7a;
73
+ --ir-title-color: #808080;
74
+ --ir-bi-color: #0033b3;
75
+ --ir-link-color: #008000;
76
+ --ir-bracket-color: #0000ff;
77
+ --ir-paren-color: #008000;
78
+ }
79
+ .vditor--dark {
80
+ --border-color: #141414;
81
+ --second-color: rgba(185, 185, 185, 0.36);
82
+ --panel-background-color: #24292e;
83
+ --panel-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
84
+ --toolbar-background-color: #1d2125;
85
+ --toolbar-icon-color: #b9b9b9;
86
+ --toolbar-icon-hover-color: #fff;
87
+ --textarea-background-color: #2f363d;
88
+ --textarea-text-color: #d1d5da;
89
+ --resize-icon-color: var(--border-color);
90
+ --resize-background-color: var(--second-color);
91
+ --resize-hover-icon-color: var(--toolbar-icon-hover-color);
92
+ --resize-hover-background-color: rgba(185, 185, 185, 0.86);
93
+ --count-background-color: rgba(66, 133, 244, 0.36);
94
+ --heading-border-color: var(--textarea-text-color);
95
+ --blockquote-color: var(--toolbar-icon-color);
96
+ --ir-heading-color: #9876aa;
97
+ --ir-title-color: #808080;
98
+ --ir-bi-color: #cc7832;
99
+ --ir-link-color: #ffc66d;
100
+ --ir-bracket-color: #287bde;
101
+ --ir-paren-color: #6a8759;
102
+ }
103
+ /**
104
+ * tool tip.
105
+ *
106
+ * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
107
+ * @version 0.1.0.0, Jan 25, 2019
108
+ */
109
+ @keyframes tooltip-appear {
110
+ from {
111
+ opacity: 0;
112
+ }
113
+ to {
114
+ opacity: 1;
115
+ }
116
+ }
117
+ .vditor-tooltipped {
118
+ position: relative;
119
+ cursor: pointer;
120
+ }
121
+ .vditor-tooltipped::after {
122
+ position: absolute;
123
+ z-index: 1000000;
124
+ display: none;
125
+ padding: 5px 8px;
126
+ font-size: 11px;
127
+ font-weight: normal;
128
+ -webkit-font-smoothing: subpixel-antialiased;
129
+ color: #fff;
130
+ text-align: center;
131
+ text-decoration: none;
132
+ text-shadow: none;
133
+ text-transform: none;
134
+ letter-spacing: normal;
135
+ word-wrap: break-word;
136
+ white-space: pre;
137
+ pointer-events: none;
138
+ content: attr(aria-label);
139
+ background: #3b3e43;
140
+ border-radius: 3px;
141
+ line-height: 16px;
142
+ opacity: 0;
143
+ }
144
+ .vditor-tooltipped::before {
145
+ position: absolute;
146
+ z-index: 1000001;
147
+ display: none;
148
+ width: 0;
149
+ height: 0;
150
+ color: #3b3e43;
151
+ pointer-events: none;
152
+ content: "";
153
+ border: 5px solid transparent;
154
+ opacity: 0;
155
+ }
156
+ .vditor-tooltipped--hover::before,
157
+ .vditor-tooltipped--hover::after,
158
+ .vditor-tooltipped:hover::before,
159
+ .vditor-tooltipped:hover::after,
160
+ .vditor-tooltipped:active::before,
161
+ .vditor-tooltipped:active::after,
162
+ .vditor-tooltipped:focus::before,
163
+ .vditor-tooltipped:focus::after {
164
+ display: inline-block;
165
+ text-decoration: none;
166
+ animation-name: tooltip-appear;
167
+ animation-duration: 0.15s;
168
+ animation-fill-mode: forwards;
169
+ animation-timing-function: ease-in;
170
+ }
171
+ .vditor-tooltipped__s::after,
172
+ .vditor-tooltipped__se::after,
173
+ .vditor-tooltipped__sw::after {
174
+ top: 100%;
175
+ right: 50%;
176
+ margin-top: 5px;
177
+ }
178
+ .vditor-tooltipped__s::before,
179
+ .vditor-tooltipped__se::before,
180
+ .vditor-tooltipped__sw::before {
181
+ top: auto;
182
+ right: 50%;
183
+ bottom: -5px;
184
+ margin-right: -5px;
185
+ border-bottom-color: #3b3e43;
186
+ }
187
+ .vditor-tooltipped__se::after {
188
+ right: auto;
189
+ left: 50%;
190
+ margin-left: -15px;
191
+ }
192
+ .vditor-tooltipped__sw::after {
193
+ margin-right: -15px;
194
+ }
195
+ .vditor-tooltipped__n::after,
196
+ .vditor-tooltipped__ne::after,
197
+ .vditor-tooltipped__nw::after {
198
+ right: 50%;
199
+ bottom: 100%;
200
+ margin-bottom: 5px;
201
+ }
202
+ .vditor-tooltipped__n::before,
203
+ .vditor-tooltipped__ne::before,
204
+ .vditor-tooltipped__nw::before {
205
+ top: -5px;
206
+ right: 50%;
207
+ bottom: auto;
208
+ margin-right: -5px;
209
+ border-top-color: #3b3e43;
210
+ }
211
+ .vditor-tooltipped__ne::after {
212
+ right: auto;
213
+ left: 50%;
214
+ margin-left: -15px;
215
+ }
216
+ .vditor-tooltipped__nw::after {
217
+ margin-right: -15px;
218
+ }
219
+ .vditor-tooltipped__s::after,
220
+ .vditor-tooltipped__n::after {
221
+ transform: translateX(50%);
222
+ }
223
+ .vditor-tooltipped__w::after {
224
+ right: 100%;
225
+ bottom: 50%;
226
+ margin-right: 5px;
227
+ transform: translateY(50%);
228
+ }
229
+ .vditor-tooltipped__w::before {
230
+ top: 50%;
231
+ bottom: 50%;
232
+ left: -5px;
233
+ margin-top: -5px;
234
+ border-left-color: #3b3e43;
235
+ }
236
+ .vditor-tooltipped__e::after {
237
+ bottom: 50%;
238
+ left: 100%;
239
+ margin-left: 5px;
240
+ transform: translateY(50%);
241
+ }
242
+ .vditor-tooltipped__e::before {
243
+ top: 50%;
244
+ right: -5px;
245
+ bottom: 50%;
246
+ margin-top: -5px;
247
+ border-right-color: #3b3e43;
248
+ }
249
+ @media screen and (max-width: 520px) {
250
+ .vditor-tooltipped:before,
251
+ .vditor-tooltipped:after {
252
+ content: none;
253
+ }
254
+ }
255
+ /**
256
+ * panel.
257
+ *
258
+ * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
259
+ * @version 1.0.0.0, Jan 22, 2020
260
+ */
261
+ @keyframes scale-in {
262
+ 0% {
263
+ opacity: 0;
264
+ transform: scale(0.5);
265
+ }
266
+ 100% {
267
+ opacity: 1;
268
+ transform: scale(1);
269
+ }
270
+ }
271
+ .vditor-panel {
272
+ background-color: var(--panel-background-color);
273
+ position: absolute;
274
+ box-shadow: var(--panel-shadow);
275
+ border-radius: 3px;
276
+ padding: 5px;
277
+ z-index: 3;
278
+ font-size: 14px;
279
+ display: none;
280
+ -webkit-user-select: none;
281
+ -moz-user-select: none;
282
+ user-select: none;
283
+ max-width: 320px;
284
+ min-width: 80px;
285
+ animation-duration: 0.15s;
286
+ animation-name: scale-in;
287
+ animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);
288
+ color: var(--toolbar-icon-color);
289
+ }
290
+ .vditor-panel--none {
291
+ padding: 0;
292
+ animation: none;
293
+ min-width: auto;
294
+ max-width: none;
295
+ white-space: nowrap;
296
+ opacity: 0.86;
297
+ }
298
+ .vditor-panel--arrow:before {
299
+ position: absolute;
300
+ width: 0;
301
+ height: 0;
302
+ pointer-events: none;
303
+ content: " ";
304
+ border: 7px solid transparent;
305
+ top: -14px;
306
+ left: 5px;
307
+ border-bottom-color: var(--panel-background-color);
308
+ }
309
+ .vditor-panel--left {
310
+ right: 0;
311
+ }
312
+ .vditor-panel--left.vditor-panel--arrow:before {
313
+ right: 5px;
314
+ left: auto;
315
+ }
316
+ .vditor-input {
317
+ border: 0;
318
+ padding: 3px 5px;
319
+ background-color: var(--panel-background-color);
320
+ font-size: 12px;
321
+ color: var(--textarea-text-color);
322
+ }
323
+ .vditor-input:focus {
324
+ background-color: var(--toolbar-background-color);
325
+ outline: none;
326
+ }
327
+ .vditor-icon {
328
+ color: var(--toolbar-icon-color);
329
+ cursor: pointer;
330
+ float: left;
331
+ padding: 4px 5px;
332
+ height: 21px;
333
+ width: 23px;
334
+ background-color: transparent;
335
+ border: 0;
336
+ box-sizing: border-box;
337
+ }
338
+ .vditor-icon:hover,
339
+ .vditor-icon--current {
340
+ color: var(--toolbar-icon-hover-color);
341
+ background-color: transparent;
342
+ }
343
+ .vditor-icon:focus {
344
+ outline: none;
345
+ }
346
+ .vditor-icon svg {
347
+ height: 13px !important;
348
+ width: 13px !important;
349
+ float: left;
350
+ fill: currentColor;
351
+ pointer-events: none;
352
+ }
353
+ .vditor-toolbar {
354
+ background-color: var(--toolbar-background-color);
355
+ border-bottom: 1px solid var(--border-color);
356
+ padding: 0 5px;
357
+ line-height: 1;
358
+ }
359
+ .vditor-toolbar--pin {
360
+ position: sticky;
361
+ top: 0;
362
+ z-index: 1;
363
+ }
364
+ .vditor-toolbar--hide {
365
+ transition: all 0.15s ease-in-out;
366
+ height: 5px;
367
+ overflow: hidden;
368
+ }
369
+ .vditor-toolbar--hide:hover {
370
+ background-color: var(--toolbar-background-color);
371
+ height: auto;
372
+ overflow: visible;
373
+ }
374
+ .vditor-toolbar__item {
375
+ float: left;
376
+ position: relative;
377
+ }
378
+ .vditor-toolbar__item .vditor-tooltipped {
379
+ color: var(--toolbar-icon-color);
380
+ border: 0;
381
+ padding: 10px 5px;
382
+ background-color: transparent;
383
+ height: var(--toolbar-height);
384
+ width: 25px;
385
+ box-sizing: border-box;
386
+ font-size: 0;
387
+ }
388
+ .vditor-toolbar__item .vditor-tooltipped:focus {
389
+ outline: none;
390
+ }
391
+ .vditor-toolbar__item .vditor-tooltipped:focus {
392
+ cursor: pointer;
393
+ color: var(--toolbar-icon-hover-color);
394
+ }
395
+ .vditor-toolbar__item svg {
396
+ fill: currentColor;
397
+ display: inline-block;
398
+ stroke-width: 0;
399
+ stroke: currentColor;
400
+ width: 15px;
401
+ height: 15px;
402
+ }
403
+ .vditor-toolbar__item input {
404
+ position: absolute;
405
+ width: 25px;
406
+ height: var(--toolbar-height);
407
+ top: 0;
408
+ left: 0;
409
+ cursor: pointer;
410
+ opacity: 0.001;
411
+ overflow: hidden;
412
+ }
413
+ .vditor-toolbar__divider {
414
+ float: left;
415
+ height: calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));
416
+ border-left: 1px solid var(--second-color);
417
+ margin: var(--toolbar-divider-margin-top) 8px;
418
+ }
419
+ .vditor-toolbar__br {
420
+ width: 100%;
421
+ padding: 0 !important;
422
+ height: 0 !important;
423
+ }
424
+ .vditor-menu--current {
425
+ color: var(--toolbar-icon-hover-color) !important;
426
+ }
427
+ .vditor-menu--disabled {
428
+ color: var(--second-color) !important;
429
+ cursor: not-allowed !important;
430
+ }
431
+ .vditor-emojis {
432
+ display: inline-block;
433
+ overflow: auto;
434
+ }
435
+ .vditor-emojis::-webkit-scrollbar {
436
+ display: none;
437
+ }
438
+ .vditor-emojis__tip {
439
+ flex: 1;
440
+ min-width: 1px;
441
+ width: 200px;
442
+ margin-right: 10px;
443
+ color: var(--toolbar-icon-color);
444
+ white-space: nowrap;
445
+ text-overflow: ellipsis;
446
+ overflow: hidden;
447
+ }
448
+ .vditor-emojis__tail {
449
+ margin-top: 5px;
450
+ font-size: 12px;
451
+ color: var(--toolbar-icon-color);
452
+ display: flex;
453
+ }
454
+ .vditor-emojis__tail a {
455
+ text-decoration: none;
456
+ color: var(--toolbar-icon-color);
457
+ }
458
+ .vditor-emojis__tail a:hover {
459
+ color: var(--toolbar-icon-hover-color);
460
+ }
461
+ .vditor-emojis button {
462
+ cursor: pointer;
463
+ border-radius: 3px;
464
+ float: left;
465
+ height: 30px;
466
+ width: 30px;
467
+ text-align: center;
468
+ line-height: 26px;
469
+ padding: 3px;
470
+ box-sizing: border-box;
471
+ font-size: 16px;
472
+ transition: all 0.15s ease-in-out;
473
+ border: 0;
474
+ margin: 0;
475
+ background-color: transparent;
476
+ overflow: hidden;
477
+ }
478
+ .vditor-emojis button:focus {
479
+ outline: none;
480
+ }
481
+ .vditor-emojis button:hover .vditor-emojis__icon {
482
+ display: inline-block;
483
+ transform: scale(1.2);
484
+ }
485
+ .vditor-emojis img {
486
+ height: 20px;
487
+ width: 20px;
488
+ float: left;
489
+ margin: 3px 0 0 3px;
490
+ }
491
+ @media screen and (max-width: 520px) {
492
+ .vditor-toolbar__item {
493
+ padding: 0 12px;
494
+ }
495
+ .vditor-panel--left.vditor-panel--arrow:before {
496
+ right: 17px;
497
+ }
498
+ }
499
+ @media (hover: hover) and (pointer: fine) {
500
+ .vditor-toolbar__item .vditor-tooltipped:hover {
501
+ color: var(--toolbar-icon-hover-color);
502
+ }
503
+ }
504
+ @keyframes slideInDown {
505
+ from {
506
+ transform: translate3d(0, -100%, 0);
507
+ visibility: visible;
508
+ }
509
+ to {
510
+ transform: translate3d(0, 0, 0);
511
+ }
512
+ }
513
+ .vditor {
514
+ display: flex;
515
+ flex-direction: column;
516
+ border: 1px solid var(--border-color);
517
+ border-radius: 3px;
518
+ box-sizing: border-box;
519
+ font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
520
+ }
521
+ .vditor--fullscreen {
522
+ position: fixed;
523
+ top: 0;
524
+ width: 100% !important;
525
+ left: 0;
526
+ height: 100vh !important;
527
+ z-index: 90;
528
+ border-radius: 0;
529
+ }
530
+ .vditor-content {
531
+ display: flex;
532
+ min-height: 60px;
533
+ flex: 1;
534
+ min-width: 1px;
535
+ position: relative;
536
+ }
537
+ .vditor-preview {
538
+ flex: 1;
539
+ min-width: 1px;
540
+ overflow: auto;
541
+ margin-left: -1px;
542
+ border-left: 1px solid var(--border-color);
543
+ box-sizing: border-box;
544
+ border-radius: 0 0 3px 0;
545
+ background-color: var(--textarea-background-color);
546
+ }
547
+ .vditor-preview::-webkit-scrollbar {
548
+ display: none;
549
+ }
550
+ .vditor-preview__action {
551
+ text-align: center;
552
+ padding: 10px;
553
+ background-color: var(--toolbar-background-color);
554
+ }
555
+ .vditor-preview__action button {
556
+ background-color: var(--toolbar-background-color);
557
+ color: var(--toolbar-icon-color);
558
+ line-height: 20px;
559
+ border: 0;
560
+ margin: 0 10px;
561
+ cursor: pointer;
562
+ padding: 0 7px;
563
+ font-size: 12px;
564
+ }
565
+ .vditor-preview__action button.vditor-preview__action--current,
566
+ .vditor-preview__action button:hover {
567
+ color: var(--toolbar-icon-hover-color);
568
+ background-color: var(--toolbar-background-color);
569
+ }
570
+ .vditor-preview__action button:focus {
571
+ outline: none;
572
+ }
573
+ .vditor-preview__action button svg {
574
+ fill: currentColor;
575
+ height: 15px;
576
+ width: 15px;
577
+ vertical-align: middle;
578
+ }
579
+ .vditor-preview > .vditor-reset {
580
+ padding: 10px;
581
+ margin: 0 auto;
582
+ }
583
+ .vditor-preview img:not(.emoji) {
584
+ cursor: pointer;
585
+ }
586
+ .vditor-devtools {
587
+ display: none;
588
+ background-color: var(--textarea-background-color);
589
+ overflow: auto;
590
+ flex: 1;
591
+ min-width: 1px;
592
+ box-shadow: inset 1px 0 var(--border-color);
593
+ box-sizing: border-box;
594
+ border-radius: 0 0 3px 0;
595
+ padding: 10px;
596
+ }
597
+ .vditor-counter {
598
+ padding: 3px;
599
+ color: var(--toolbar-icon-color);
600
+ background-color: var(--count-background-color);
601
+ border-radius: 3px;
602
+ font-size: 12px;
603
+ -webkit-user-select: none;
604
+ -moz-user-select: none;
605
+ user-select: none;
606
+ float: right;
607
+ margin: 8px 3px 0 0;
608
+ }
609
+ .vditor-counter--error {
610
+ color: #d23f31;
611
+ background-color: rgba(210, 63, 49, 0.1);
612
+ }
613
+ .vditor-resize {
614
+ padding: 3px 0;
615
+ cursor: row-resize;
616
+ -webkit-user-select: none;
617
+ -moz-user-select: none;
618
+ user-select: none;
619
+ position: absolute;
620
+ width: 100%;
621
+ }
622
+ .vditor-resize--top {
623
+ top: -3px;
624
+ }
625
+ .vditor-resize--bottom {
626
+ bottom: -3px;
627
+ }
628
+ .vditor-resize > div {
629
+ height: 3px;
630
+ background-color: var(--resize-background-color);
631
+ transition: all 0.15s ease-in-out;
632
+ }
633
+ .vditor-resize:hover > div,
634
+ .vditor-resize--selected > div {
635
+ background-color: var(--resize-hover-background-color);
636
+ }
637
+ .vditor-resize:hover svg,
638
+ .vditor-resize--selected svg {
639
+ color: var(--resize-hover-icon-color);
640
+ }
641
+ .vditor-resize svg {
642
+ fill: currentColor;
643
+ stroke-width: 0;
644
+ stroke: currentColor;
645
+ width: 13px;
646
+ height: 3px;
647
+ display: block;
648
+ margin: 0 auto;
649
+ color: var(--resize-icon-color);
650
+ }
651
+ .vditor-upload {
652
+ position: absolute;
653
+ height: 3px;
654
+ left: 0;
655
+ top: -2px;
656
+ transition: all 0.15s ease-in-out;
657
+ background-color: #4285f4;
658
+ }
659
+ .vditor-tip {
660
+ position: absolute;
661
+ font-size: 12px;
662
+ top: 10px;
663
+ animation-duration: 0.15s;
664
+ animation-fill-mode: both;
665
+ left: 50%;
666
+ z-index: 5;
667
+ }
668
+ .vditor-tip--show {
669
+ display: block;
670
+ animation-name: slideInDown;
671
+ }
672
+ .vditor-tip__content {
673
+ text-align: left;
674
+ display: inline-block;
675
+ line-height: 16px;
676
+ padding: 3px 10px;
677
+ border-radius: 3px;
678
+ background: var(--toolbar-background-color);
679
+ position: relative;
680
+ margin-left: -50%;
681
+ color: var(--toolbar-icon-color);
682
+ max-width: 100%;
683
+ box-shadow: var(--panel-shadow);
684
+ }
685
+ .vditor-tip__content ul {
686
+ margin: 2px 0;
687
+ padding: 0 0 0 18px;
688
+ }
689
+ .vditor-tip__content a {
690
+ color: #4285f4;
691
+ }
692
+ .vditor-tip__close {
693
+ position: absolute;
694
+ color: var(--toolbar-icon-color);
695
+ top: -7px;
696
+ right: -15px;
697
+ font-weight: bold;
698
+ cursor: pointer;
699
+ }
700
+ .vditor-tip__close:hover {
701
+ color: var(--toolbar-icon-hover-color);
702
+ }
703
+ .vditor-img {
704
+ position: fixed;
705
+ top: 0;
706
+ left: 0;
707
+ right: 0;
708
+ bottom: 0;
709
+ display: flex;
710
+ flex-direction: column;
711
+ z-index: 100;
712
+ }
713
+ .vditor-img__bar {
714
+ border-bottom: 1px solid var(--border-color);
715
+ background-color: var(--toolbar-background-color);
716
+ text-align: center;
717
+ height: 36px;
718
+ box-sizing: border-box;
719
+ display: flex;
720
+ align-items: center;
721
+ justify-content: center;
722
+ }
723
+ .vditor-img__btn {
724
+ display: flex;
725
+ align-items: center;
726
+ cursor: pointer;
727
+ margin-left: 24px;
728
+ -webkit-user-select: none;
729
+ -moz-user-select: none;
730
+ user-select: none;
731
+ color: var(--toolbar-icon-color);
732
+ }
733
+ .vditor-img__btn:hover {
734
+ color: var(--toolbar-icon-hover-color);
735
+ }
736
+ .vditor-img__btn svg {
737
+ height: 14px;
738
+ width: 14px;
739
+ margin-right: 8px;
740
+ fill: currentColor;
741
+ }
742
+ .vditor-img__img {
743
+ flex: 1;
744
+ background-color: var(--textarea-background-color);
745
+ overflow: auto;
746
+ cursor: zoom-out;
747
+ }
748
+ .vditor-img__img img {
749
+ max-width: none;
750
+ }
751
+ .vditor-hint {
752
+ background-color: var(--panel-background-color);
753
+ position: absolute;
754
+ box-shadow: var(--panel-shadow);
755
+ border-radius: 3px;
756
+ padding: 5px 0;
757
+ z-index: 4;
758
+ line-height: 20px;
759
+ list-style: none;
760
+ font-size: 12px;
761
+ margin: 0;
762
+ max-width: 250px;
763
+ min-width: 80px;
764
+ display: none;
765
+ }
766
+ .vditor-hint .vditor-hint {
767
+ margin-top: -31px;
768
+ left: 100%;
769
+ right: auto;
770
+ }
771
+ .vditor-hint .vditor-hint.vditor-panel--left {
772
+ right: 100%;
773
+ left: auto;
774
+ }
775
+ .vditor-hint button {
776
+ color: var(--toolbar-icon-color);
777
+ display: block;
778
+ padding: 3px 10px;
779
+ border: 0;
780
+ border-radius: 0;
781
+ line-height: 20px;
782
+ width: 100%;
783
+ box-sizing: border-box;
784
+ text-align: left;
785
+ margin: 0;
786
+ background-color: transparent;
787
+ cursor: pointer;
788
+ white-space: nowrap;
789
+ text-overflow: ellipsis;
790
+ overflow: hidden;
791
+ }
792
+ .vditor-hint button:focus {
793
+ outline: none;
794
+ }
795
+ .vditor-hint--current,
796
+ .vditor-hint button:not(.vditor-menu--disabled):hover {
797
+ background-color: var(--toolbar-background-color) !important;
798
+ color: var(--toolbar-icon-hover-color) !important;
799
+ }
800
+ .vditor-hint__emoji {
801
+ font-size: 16px;
802
+ float: left;
803
+ margin-right: 3px;
804
+ }
805
+ .vditor-hint img {
806
+ height: 20px;
807
+ width: 20px;
808
+ float: left;
809
+ margin-right: 3px;
810
+ }
811
+ .vditor-reset {
812
+ color: #24292e;
813
+ font-variant-ligatures: no-common-ligatures;
814
+ font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
815
+ word-wrap: break-word;
816
+ overflow: auto;
817
+ line-height: 1.5;
818
+ font-size: 16px;
819
+ word-break: break-word;
820
+ }
821
+ .vditor-reset--anchor {
822
+ padding-left: 20px;
823
+ }
824
+ .vditor-reset--error {
825
+ color: #d23f31;
826
+ font-size: 12px;
827
+ display: block;
828
+ line-height: 16px;
829
+ }
830
+ .vditor-reset ul ul ul {
831
+ list-style-type: square;
832
+ }
833
+ .vditor-reset ul ul {
834
+ list-style-type: circle;
835
+ }
836
+ .vditor-reset ul {
837
+ list-style-type: disc;
838
+ }
839
+ .vditor-reset ul,
840
+ .vditor-reset ol {
841
+ padding-left: 2em;
842
+ margin-top: 0;
843
+ margin-bottom: 16px;
844
+ }
845
+ .vditor-reset li + li {
846
+ margin-top: 0.25em;
847
+ }
848
+ .vditor-reset li p {
849
+ margin-top: 16px;
850
+ }
851
+ .vditor-reset audio {
852
+ max-width: 100%;
853
+ }
854
+ .vditor-reset audio:focus {
855
+ outline: none;
856
+ }
857
+ .vditor-reset video {
858
+ max-height: 90vh;
859
+ max-width: 100%;
860
+ }
861
+ .vditor-reset img {
862
+ max-width: 100%;
863
+ }
864
+ .vditor-reset img.emoji {
865
+ cursor: auto;
866
+ max-width: 20px;
867
+ vertical-align: sub;
868
+ }
869
+ .vditor-reset h1,
870
+ .vditor-reset h2,
871
+ .vditor-reset h3,
872
+ .vditor-reset h4,
873
+ .vditor-reset h5,
874
+ .vditor-reset h6 {
875
+ margin-top: 24px;
876
+ margin-bottom: 16px;
877
+ font-weight: 600;
878
+ line-height: 1.25;
879
+ }
880
+ .vditor-reset h1:hover .vditor-anchor svg,
881
+ .vditor-reset h2:hover .vditor-anchor svg,
882
+ .vditor-reset h3:hover .vditor-anchor svg,
883
+ .vditor-reset h4:hover .vditor-anchor svg,
884
+ .vditor-reset h5:hover .vditor-anchor svg,
885
+ .vditor-reset h6:hover .vditor-anchor svg {
886
+ visibility: visible;
887
+ }
888
+ .vditor-reset h1 {
889
+ font-size: 1.75em;
890
+ }
891
+ .vditor-reset h2 {
892
+ font-size: 1.55em;
893
+ }
894
+ .vditor-reset h3 {
895
+ font-size: 1.38em;
896
+ }
897
+ .vditor-reset h4 {
898
+ font-size: 1.25em;
899
+ }
900
+ .vditor-reset h5 {
901
+ font-size: 1.13em;
902
+ }
903
+ .vditor-reset h6 {
904
+ font-size: 1em;
905
+ }
906
+ .vditor-reset hr {
907
+ height: 2px;
908
+ padding: 0;
909
+ margin: 24px 0;
910
+ background-color: #eaecef;
911
+ border: 0;
912
+ }
913
+ .vditor-reset p {
914
+ margin-top: 0;
915
+ margin-bottom: 16px;
916
+ }
917
+ .vditor-reset blockquote {
918
+ padding: 0 1em;
919
+ color: #6a737d;
920
+ border-left: 0.25em solid #eaecef;
921
+ margin: 0 0 16px 0;
922
+ }
923
+ .vditor-reset blockquote > :first-child {
924
+ margin-top: 0;
925
+ }
926
+ .vditor-reset blockquote > :last-child {
927
+ margin-bottom: 0;
928
+ }
929
+ .vditor-reset ins > iframe {
930
+ border: 0;
931
+ }
932
+ .vditor-reset iframe {
933
+ border: 1px solid #d1d5da;
934
+ max-width: 100%;
935
+ box-sizing: border-box;
936
+ }
937
+ .vditor-reset iframe.iframe__video {
938
+ min-width: 80%;
939
+ min-height: 36vh;
940
+ }
941
+ .vditor-reset table {
942
+ border-collapse: collapse;
943
+ empty-cells: show;
944
+ margin-bottom: 16px;
945
+ overflow: auto;
946
+ border-spacing: 0;
947
+ display: block;
948
+ word-break: keep-all;
949
+ width: 100%;
950
+ }
951
+ .vditor-reset table tr {
952
+ background-color: #fafbfc;
953
+ border-top: 1px solid #c6cbd1;
954
+ }
955
+ .vditor-reset table td,
956
+ .vditor-reset table th {
957
+ padding: 6px 13px;
958
+ border: 1px solid #dfe2e5;
959
+ word-break: normal;
960
+ white-space: nowrap;
961
+ }
962
+ .vditor-reset table td:first-child::after,
963
+ .vditor-reset table th:first-child::after {
964
+ content: "";
965
+ display: inline-block;
966
+ vertical-align: top;
967
+ min-height: 24px;
968
+ }
969
+ .vditor-reset table th {
970
+ font-weight: 600;
971
+ }
972
+ .vditor-reset table tbody tr:nth-child(2n) {
973
+ background-color: #fff;
974
+ }
975
+ .vditor-reset code:not(.hljs):not(.highlight-chroma) {
976
+ padding: 0.2em 0.4em;
977
+ margin: 0;
978
+ font-size: 85%;
979
+ border-radius: 3px;
980
+ font-family: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
981
+ word-break: break-word;
982
+ background-size: 20px 20px;
983
+ white-space: pre-wrap;
984
+ }
985
+ .vditor-reset pre {
986
+ margin: 1em 0;
987
+ }
988
+ .vditor-reset pre > code {
989
+ margin: 0;
990
+ font-size: 85%;
991
+ padding: 0.5em;
992
+ border-radius: 5px;
993
+ display: block;
994
+ overflow: auto;
995
+ white-space: pre;
996
+ font-family: mononoki, Consolas, "Liberation Mono", Menlo, Courier, monospace, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
997
+ background-size: 20px 20px;
998
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg==);
999
+ word-break: initial;
1000
+ word-wrap: normal;
1001
+ }
1002
+ .vditor-reset pre:hover div.vditor-copy {
1003
+ display: block;
1004
+ }
1005
+ .vditor-reset .language-math,
1006
+ .vditor-reset .language-echarts,
1007
+ .vditor-reset .language-mindmap,
1008
+ .vditor-reset .language-plantuml,
1009
+ .vditor-reset .language-mermaid,
1010
+ .vditor-reset .language-smiles,
1011
+ .vditor-reset .language-markmap,
1012
+ .vditor-reset .language-abc,
1013
+ .vditor-reset .language-flowchart,
1014
+ .vditor-reset .language-graphviz {
1015
+ margin-bottom: 16px;
1016
+ }
1017
+ .vditor-reset .language-math mjx-container:focus {
1018
+ outline: none;
1019
+ cursor: context-menu;
1020
+ }
1021
+ .vditor-reset .language-math .katex-display > .katex > .katex-html > .tag {
1022
+ display: inline-block;
1023
+ font-size: 1.21rem;
1024
+ right: 2px;
1025
+ }
1026
+ .vditor-reset .language-echarts,
1027
+ .vditor-reset .language-mindmap {
1028
+ overflow: hidden;
1029
+ height: 420px;
1030
+ }
1031
+ .vditor-reset .language-mermaid,
1032
+ .vditor-reset .language-markmap,
1033
+ .vditor-reset .language-flowchart,
1034
+ .vditor-reset .language-graphviz {
1035
+ text-align: center;
1036
+ }
1037
+ .vditor-reset .language-graphviz parsererror {
1038
+ overflow: auto;
1039
+ }
1040
+ .vditor-reset kbd {
1041
+ display: inline-block;
1042
+ padding: 3px 5px;
1043
+ font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
1044
+ line-height: 10px;
1045
+ color: #24292e;
1046
+ vertical-align: middle;
1047
+ background-color: #fafbfc;
1048
+ border: solid 1px #d1d5da;
1049
+ border-radius: 3px;
1050
+ box-shadow: inset 0 -1px 0 #d1d5da;
1051
+ }
1052
+ .vditor-reset summary {
1053
+ cursor: pointer;
1054
+ }
1055
+ .vditor-reset summary:focus {
1056
+ outline: none;
1057
+ }
1058
+ .vditor-reset svg {
1059
+ height: auto;
1060
+ width: auto;
1061
+ stroke-width: initial;
1062
+ }
1063
+ .vditor-reset p:last-child,
1064
+ .vditor-reset blockquote:last-child,
1065
+ .vditor-reset pre:last-child,
1066
+ .vditor-reset ul:last-child,
1067
+ .vditor-reset ol:last-child,
1068
+ .vditor-reset hr:last-child {
1069
+ margin-bottom: 0;
1070
+ }
1071
+ .vditor-comment {
1072
+ border-bottom: 2px solid #f8e6ab;
1073
+ }
1074
+ .vditor-comment--focus,
1075
+ .vditor-comment--hover {
1076
+ background-color: #faf1d1;
1077
+ border-bottom: 2px solid #ffc60a;
1078
+ }
1079
+ .vditor-comment--focus .vditor-comment,
1080
+ .vditor-comment--hover .vditor-comment {
1081
+ border-bottom: 2px solid #ffc60a;
1082
+ }
1083
+ .vditor-task {
1084
+ list-style: none !important;
1085
+ word-break: break-all;
1086
+ }
1087
+ .vditor-task input {
1088
+ margin: 0 0.2em 0.25em -1.6em;
1089
+ font-size: 12px;
1090
+ vertical-align: middle;
1091
+ }
1092
+ .vditor-task:has(input:checked) {
1093
+ color: #818989;
1094
+ text-decoration: line-through;
1095
+ text-decoration-line: line-through;
1096
+ text-decoration-thickness: initial;
1097
+ text-decoration-style: initial;
1098
+ text-decoration-color: initial;
1099
+ }
1100
+ .vditor-task input {
1101
+ text-decoration: none !important;
1102
+ }
1103
+ .vditor-copy {
1104
+ position: relative;
1105
+ display: none;
1106
+ z-index: 1;
1107
+ }
1108
+ .vditor-copy textarea {
1109
+ position: absolute;
1110
+ left: -100000px;
1111
+ height: 10px;
1112
+ }
1113
+ .vditor-copy span {
1114
+ cursor: pointer;
1115
+ position: absolute;
1116
+ right: 15px;
1117
+ top: 0.5em;
1118
+ }
1119
+ .vditor-copy svg {
1120
+ color: #586069;
1121
+ height: 14px;
1122
+ width: 14px !important;
1123
+ display: block;
1124
+ fill: currentColor;
1125
+ }
1126
+ .vditor-linenumber {
1127
+ padding-left: 4em !important;
1128
+ position: relative;
1129
+ }
1130
+ .vditor-linenumber__rows {
1131
+ position: absolute;
1132
+ pointer-events: none;
1133
+ top: 1em;
1134
+ left: 0;
1135
+ width: 3em;
1136
+ /* works for line-numbers below 1000 lines */
1137
+ -webkit-user-select: none;
1138
+ -moz-user-select: none;
1139
+ user-select: none;
1140
+ counter-reset: linenumber;
1141
+ }
1142
+ .vditor-linenumber__rows > span {
1143
+ pointer-events: none;
1144
+ display: block;
1145
+ }
1146
+ .vditor-linenumber__rows > span::before {
1147
+ counter-increment: linenumber;
1148
+ content: counter(linenumber);
1149
+ color: rgba(158, 150, 150, 0.38);
1150
+ display: block;
1151
+ padding-right: 1em;
1152
+ text-align: right;
1153
+ }
1154
+ .vditor-speech {
1155
+ position: absolute;
1156
+ display: none;
1157
+ background-color: #f6f8fa;
1158
+ border: 1px solid #d1d5da;
1159
+ border-radius: 3px;
1160
+ padding: 3px;
1161
+ cursor: pointer;
1162
+ color: #586069;
1163
+ }
1164
+ .vditor-speech:hover,
1165
+ .vditor-speech--current {
1166
+ color: #4285f4;
1167
+ }
1168
+ .vditor-speech svg {
1169
+ height: 14px;
1170
+ width: 14px;
1171
+ fill: currentColor;
1172
+ display: block;
1173
+ stroke-width: 0;
1174
+ stroke: currentColor;
1175
+ }
1176
+ .vditor-anchor {
1177
+ margin-left: 5px;
1178
+ }
1179
+ .vditor-anchor--left {
1180
+ float: left;
1181
+ padding-right: 4px;
1182
+ margin-left: -20px;
1183
+ }
1184
+ .vditor-anchor svg {
1185
+ visibility: hidden;
1186
+ }
1187
+ .vditor-anchor:hover svg {
1188
+ visibility: visible;
1189
+ }
1190
+ .vditor-anchor:focus {
1191
+ outline: none;
1192
+ }
1193
+ .vditor-linkcard {
1194
+ margin: 31px auto 16px;
1195
+ transition: all 0.15s ease-in-out;
1196
+ cursor: pointer;
1197
+ max-width: 768px;
1198
+ padding: 0 10px;
1199
+ }
1200
+ .vditor-linkcard a {
1201
+ border-radius: 3px;
1202
+ background-color: #f6f8fa;
1203
+ overflow: hidden;
1204
+ max-height: 250px;
1205
+ display: flex;
1206
+ text-decoration: none;
1207
+ flex-wrap: wrap-reverse;
1208
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
1209
+ }
1210
+ .vditor-linkcard a:hover {
1211
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.13), 0 3px 6px rgba(0, 0, 0, 0.26);
1212
+ text-decoration: none;
1213
+ }
1214
+ .vditor-linkcard a:visited .vditor-linkcard__abstract {
1215
+ color: rgba(88, 96, 105, 0.36);
1216
+ }
1217
+ .vditor-linkcard__info {
1218
+ padding: 10px;
1219
+ min-width: 200px;
1220
+ box-sizing: border-box;
1221
+ flex: 1;
1222
+ }
1223
+ .vditor-linkcard__title {
1224
+ font-size: 14px;
1225
+ font-weight: 400;
1226
+ color: #24292e;
1227
+ display: flex;
1228
+ align-items: center;
1229
+ }
1230
+ .vditor-linkcard__title img {
1231
+ cursor: pointer;
1232
+ height: 20px;
1233
+ width: 20px;
1234
+ border-radius: 3px;
1235
+ flex-shrink: 0;
1236
+ margin-right: 5px;
1237
+ }
1238
+ .vditor-linkcard__abstract {
1239
+ word-wrap: break-word;
1240
+ word-break: break-all;
1241
+ -webkit-line-clamp: 2;
1242
+ overflow: hidden;
1243
+ text-overflow: ellipsis;
1244
+ -webkit-box-orient: vertical;
1245
+ display: -webkit-box;
1246
+ font-size: 13px;
1247
+ color: #586069;
1248
+ margin: 5px 0;
1249
+ }
1250
+ .vditor-linkcard__site {
1251
+ font-size: 12px;
1252
+ color: #4285f4;
1253
+ }
1254
+ .vditor-linkcard__image {
1255
+ background-size: cover;
1256
+ background-repeat: no-repeat;
1257
+ background-position: center center;
1258
+ max-width: 250px;
1259
+ min-width: 126px;
1260
+ cursor: pointer;
1261
+ background-color: rgba(88, 96, 105, 0.36);
1262
+ }
1263
+ .vditor-footnotes__goto-ref {
1264
+ text-decoration: none;
1265
+ }
1266
+ .vditor-toc {
1267
+ margin-bottom: 16px;
1268
+ -webkit-user-select: text;
1269
+ -moz-user-select: text;
1270
+ user-select: text;
1271
+ color: #4285f4;
1272
+ }
1273
+ .vditor-toc .vditor-outline__action {
1274
+ display: none;
1275
+ }
1276
+ .vditor-toc ul {
1277
+ list-style: none !important;
1278
+ padding-left: 1em;
1279
+ }
1280
+ .vditor-toc > ul {
1281
+ padding-left: 0;
1282
+ }
1283
+ .vditor-toc span {
1284
+ cursor: pointer;
1285
+ }
1286
+ .vditor-toc li > span > svg {
1287
+ width: 0;
1288
+ height: 0;
1289
+ }
1290
+ .vditor-outline {
1291
+ width: 250px;
1292
+ border-right: 1px solid var(--border-color);
1293
+ background-color: var(--panel-background-color);
1294
+ display: none;
1295
+ overflow: auto;
1296
+ }
1297
+ .vditor-outline--right {
1298
+ border-right: 0;
1299
+ border-left: 1px solid var(--border-color);
1300
+ }
1301
+ .vditor-outline::-webkit-scrollbar {
1302
+ display: none;
1303
+ }
1304
+ .vditor-outline ul {
1305
+ list-style: none !important;
1306
+ padding-left: 1em;
1307
+ margin: 0;
1308
+ }
1309
+ .vditor-outline__content > ul {
1310
+ padding-left: 0;
1311
+ }
1312
+ .vditor-outline li > span {
1313
+ display: flex;
1314
+ align-items: center;
1315
+ padding: 5px 10px;
1316
+ cursor: pointer;
1317
+ color: var(--textarea-text-color);
1318
+ }
1319
+ .vditor-outline li > span > svg {
1320
+ height: 10px;
1321
+ width: 10px;
1322
+ flex-shrink: 0;
1323
+ }
1324
+ .vditor-outline li > span:hover {
1325
+ color: var(--toolbar-icon-hover-color);
1326
+ }
1327
+ .vditor-outline li > span > span {
1328
+ white-space: nowrap;
1329
+ overflow: hidden;
1330
+ text-overflow: ellipsis;
1331
+ }
1332
+ .vditor-outline__title {
1333
+ border-bottom: 1px dashed var(--border-color);
1334
+ padding: 5px 10px;
1335
+ color: var(--toolbar-icon-color);
1336
+ font-size: 12px;
1337
+ }
1338
+ .vditor-outline__action {
1339
+ transition: all 0.15s ease-in-out;
1340
+ fill: currentColor;
1341
+ margin-right: 5px;
1342
+ flex-shrink: 0;
1343
+ }
1344
+ .vditor-outline__action--close {
1345
+ transform: rotate(-90deg);
1346
+ }
1347
+ .vditor-wysiwyg {
1348
+ box-sizing: border-box;
1349
+ flex: 1;
1350
+ position: relative;
1351
+ width: 100%;
1352
+ min-width: 1px;
1353
+ }
1354
+ .vditor-wysiwyg pre.vditor-reset {
1355
+ background-color: var(--panel-background-color);
1356
+ margin: 0;
1357
+ white-space: pre-wrap;
1358
+ height: 100%;
1359
+ box-sizing: border-box;
1360
+ }
1361
+ .vditor-wysiwyg pre.vditor-reset[contenteditable="false"] {
1362
+ opacity: 0.3;
1363
+ cursor: not-allowed;
1364
+ }
1365
+ .vditor-wysiwyg pre.vditor-reset:empty::before {
1366
+ content: attr(placeholder);
1367
+ color: var(--second-color);
1368
+ }
1369
+ .vditor-wysiwyg pre.vditor-reset:focus {
1370
+ outline: none;
1371
+ background-color: var(--textarea-background-color);
1372
+ }
1373
+ .vditor-wysiwyg pre.vditor-reset:after {
1374
+ content: "";
1375
+ height: var(--editor-bottom);
1376
+ display: block;
1377
+ }
1378
+ .vditor-wysiwyg blockquote:empty::before,
1379
+ .vditor-wysiwyg pre > code:empty::before,
1380
+ .vditor-wysiwyg p:empty::before,
1381
+ .vditor-wysiwyg h1:empty::after,
1382
+ .vditor-wysiwyg h2:empty::after,
1383
+ .vditor-wysiwyg h3:empty::after,
1384
+ .vditor-wysiwyg h4:empty::after,
1385
+ .vditor-wysiwyg h5:empty::after,
1386
+ .vditor-wysiwyg h6:empty::after {
1387
+ content: ' ';
1388
+ }
1389
+ .vditor-wysiwyg code[data-marker="`"] {
1390
+ padding-left: 0 !important;
1391
+ padding-right: 0 !important;
1392
+ }
1393
+ .vditor-wysiwyg__block pre:first-child {
1394
+ margin-bottom: -1em;
1395
+ }
1396
+ .vditor-wysiwyg__block pre:first-child code {
1397
+ color: var(--textarea-text-color);
1398
+ height: auto;
1399
+ text-align: left;
1400
+ }
1401
+ .vditor-wysiwyg__block pre:last-child {
1402
+ margin-bottom: 1em;
1403
+ }
1404
+ .vditor-wysiwyg__preview {
1405
+ cursor: pointer;
1406
+ white-space: initial;
1407
+ min-height: 27px;
1408
+ }
1409
+ .vditor-wysiwyg > .vditor-reset > h1:before,
1410
+ .vditor-wysiwyg > .vditor-reset > h2:before,
1411
+ .vditor-wysiwyg > .vditor-reset > h3:before,
1412
+ .vditor-wysiwyg > .vditor-reset > h4:before,
1413
+ .vditor-wysiwyg > .vditor-reset > h5:before,
1414
+ .vditor-wysiwyg > .vditor-reset > h6:before,
1415
+ .vditor-wysiwyg div.vditor-wysiwyg__block:before,
1416
+ .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before,
1417
+ .vditor-wysiwyg div[data-type="footnotes-block"]:before,
1418
+ .vditor-wysiwyg .vditor-toc:before {
1419
+ float: left;
1420
+ padding-right: 4px;
1421
+ margin-left: -29px;
1422
+ content: 'H1';
1423
+ font-size: 0.85rem;
1424
+ font-weight: normal;
1425
+ color: var(--second-color);
1426
+ }
1427
+ .vditor-wysiwyg > .vditor-reset > h2:before {
1428
+ content: 'H2';
1429
+ }
1430
+ .vditor-wysiwyg > .vditor-reset > h3:before {
1431
+ content: 'H3';
1432
+ }
1433
+ .vditor-wysiwyg > .vditor-reset > h4:before {
1434
+ content: 'H4';
1435
+ }
1436
+ .vditor-wysiwyg > .vditor-reset > h5:before {
1437
+ content: 'H5';
1438
+ }
1439
+ .vditor-wysiwyg > .vditor-reset > h6:before {
1440
+ content: 'H6';
1441
+ }
1442
+ .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before {
1443
+ content: '"A"';
1444
+ }
1445
+ .vditor-wysiwyg div[data-type="footnotes-block"]:before {
1446
+ content: '^F';
1447
+ }
1448
+ .vditor-wysiwyg div.vditor-wysiwyg__block:before {
1449
+ content: "</>";
1450
+ }
1451
+ .vditor-wysiwyg div.vditor-wysiwyg__block[data-type="yaml-front-matter"]:before {
1452
+ content: "F";
1453
+ }
1454
+ .vditor-wysiwyg div.vditor-wysiwyg__block[data-type="math-block"]:before {
1455
+ content: "$$";
1456
+ }
1457
+ .vditor-wysiwyg .vditor-toc:before {
1458
+ content: "ToC";
1459
+ }
1460
+ .vditor-wysiwyg hr {
1461
+ display: inline-block;
1462
+ margin: 12px 0;
1463
+ width: 100%;
1464
+ }
1465
+ .vditor-wysiwyg details {
1466
+ white-space: initial;
1467
+ }
1468
+ .vditor-wysiwyg a {
1469
+ cursor: pointer;
1470
+ }
1471
+ .vditor-wysiwyg span[data-type="backslash"] > span {
1472
+ display: none;
1473
+ color: var(--second-color);
1474
+ }
1475
+ .vditor-wysiwyg span[data-type="link-ref"],
1476
+ .vditor-wysiwyg sup[data-type="footnotes-ref"] {
1477
+ color: #4285f4;
1478
+ }
1479
+ .vditor-wysiwyg span[data-type="toc-h"] {
1480
+ color: #4285f4;
1481
+ text-decoration: underline;
1482
+ }
1483
+ .vditor-wysiwyg div[data-type="footnotes-block"] {
1484
+ border-top: 2px solid var(--heading-border-color);
1485
+ padding-top: 24px;
1486
+ margin-top: 24px;
1487
+ }
1488
+ .vditor-wysiwyg div[data-type="link-ref-defs-block"] {
1489
+ color: var(--blockquote-color);
1490
+ }
1491
+ @media screen and (max-width: 520px) {
1492
+ .vditor-wysiwyg h1:before,
1493
+ .vditor-wysiwyg h2:before,
1494
+ .vditor-wysiwyg h3:before,
1495
+ .vditor-wysiwyg h4:before,
1496
+ .vditor-wysiwyg h5:before,
1497
+ .vditor-wysiwyg h6:before,
1498
+ .vditor-wysiwyg div.vditor-wysiwyg__block:before,
1499
+ .vditor-wysiwyg div[data-type="link-ref-defs-block"]:before,
1500
+ .vditor-wysiwyg div[data-type="footnotes-block"]:before,
1501
+ .vditor-wysiwyg .vditor-toc:before {
1502
+ content: none;
1503
+ }
1504
+ }
1505
+ .vditor-ir {
1506
+ box-sizing: border-box;
1507
+ flex: 1;
1508
+ min-width: 1px;
1509
+ position: relative;
1510
+ width: 100%;
1511
+ }
1512
+ .vditor-ir__node[data-type="code-block"]:before,
1513
+ .vditor-ir__node[data-type="code-block"]:after,
1514
+ .vditor-ir__node[data-type="yaml-front-matter"]:before,
1515
+ .vditor-ir__node[data-type="yaml-front-matter"]:after,
1516
+ .vditor-ir__node[data-type="math-block"]:before,
1517
+ .vditor-ir__node[data-type="math-block"]:after {
1518
+ content: ' ';
1519
+ color: var(--second-color);
1520
+ }
1521
+ .vditor-ir__node:not(.vditor-ir__node--expand) .vditor-ir__marker {
1522
+ padding: 0 !important;
1523
+ }
1524
+ .vditor-ir__node:not(.vditor-ir__node--expand)[data-type="a"] {
1525
+ cursor: pointer;
1526
+ }
1527
+ .vditor-ir__node[data-type="link-ref"],
1528
+ .vditor-ir__node[data-type="footnotes-ref"] {
1529
+ color: #4285f4;
1530
+ }
1531
+ .vditor-ir__node[data-type="html-block"] {
1532
+ margin-bottom: 1em;
1533
+ }
1534
+ .vditor-ir__node .vditor-ir__marker {
1535
+ width: 0;
1536
+ overflow: hidden;
1537
+ display: inline-block;
1538
+ height: 0;
1539
+ transition: all 0.15s ease-in-out;
1540
+ }
1541
+ .vditor-ir__node--hidden .vditor-ir__marker {
1542
+ visibility: hidden;
1543
+ }
1544
+ .vditor-ir__node--expand .vditor-ir__marker {
1545
+ color: var(--second-color);
1546
+ display: inline;
1547
+ height: auto;
1548
+ width: auto;
1549
+ }
1550
+ .vditor-ir__node--expand .vditor-ir__marker--hide {
1551
+ display: none;
1552
+ }
1553
+ .vditor-ir__node--expand .vditor-ir__marker--heading {
1554
+ color: var(--ir-heading-color);
1555
+ }
1556
+ .vditor-ir__node--expand .vditor-ir__marker--bi {
1557
+ color: var(--ir-bi-color);
1558
+ }
1559
+ .vditor-ir__node--expand .vditor-ir__marker--link {
1560
+ color: var(--ir-link-color);
1561
+ }
1562
+ .vditor-ir__node--expand .vditor-ir__marker--title {
1563
+ color: var(--ir-title-color);
1564
+ }
1565
+ .vditor-ir__node--expand .vditor-ir__marker--bracket {
1566
+ color: var(--ir-bracket-color);
1567
+ text-decoration: underline;
1568
+ }
1569
+ .vditor-ir__node--expand .vditor-ir__marker--paren {
1570
+ color: var(--ir-paren-color);
1571
+ }
1572
+ .vditor-ir__node--expand .vditor-ir__marker--info {
1573
+ color: var(--ir-heading-color);
1574
+ }
1575
+ .vditor-ir__node--expand .vditor-ir__marker--pre code {
1576
+ color: var(--textarea-text-color);
1577
+ height: auto;
1578
+ text-align: left;
1579
+ }
1580
+ .vditor-ir__node--expand[data-type="code-block"]:before,
1581
+ .vditor-ir__node--expand[data-type="code-block"]:after {
1582
+ content: '```';
1583
+ }
1584
+ .vditor-ir__node--expand[data-type="yaml-front-matter"]:before,
1585
+ .vditor-ir__node--expand[data-type="yaml-front-matter"]:after {
1586
+ content: '---';
1587
+ }
1588
+ .vditor-ir__node--expand[data-type="math-block"]:before,
1589
+ .vditor-ir__node--expand[data-type="math-block"]:after {
1590
+ content: '$$';
1591
+ }
1592
+ .vditor-ir__node span[data-type="code-block-open-marker"],
1593
+ .vditor-ir__node span[data-type="code-block-close-marker"],
1594
+ .vditor-ir__node span[data-type="yaml-front-matter-open-marker"],
1595
+ .vditor-ir__node span[data-type="yaml-front-matter-close-marker"],
1596
+ .vditor-ir__node span[data-type="math-block-open-marker"],
1597
+ .vditor-ir__node span[data-type="math-block-close-marker"] {
1598
+ display: none;
1599
+ }
1600
+ .vditor-ir__preview {
1601
+ cursor: pointer;
1602
+ white-space: initial;
1603
+ min-height: 27px;
1604
+ }
1605
+ .vditor-ir__link {
1606
+ color: var(--ir-bracket-color);
1607
+ text-decoration: underline;
1608
+ }
1609
+ .vditor-ir pre.vditor-reset {
1610
+ background-color: var(--panel-background-color);
1611
+ margin: 0;
1612
+ white-space: pre-wrap;
1613
+ height: 100%;
1614
+ box-sizing: border-box;
1615
+ }
1616
+ .vditor-ir pre.vditor-reset[contenteditable="false"] {
1617
+ opacity: 0.3;
1618
+ cursor: not-allowed;
1619
+ }
1620
+ .vditor-ir pre.vditor-reset:empty::before {
1621
+ content: attr(placeholder);
1622
+ color: var(--second-color);
1623
+ }
1624
+ .vditor-ir pre.vditor-reset:focus {
1625
+ outline: none;
1626
+ background-color: var(--textarea-background-color);
1627
+ }
1628
+ .vditor-ir pre.vditor-reset:after {
1629
+ content: "";
1630
+ height: var(--editor-bottom);
1631
+ display: block;
1632
+ }
1633
+ .vditor-ir pre.vditor-reset pre {
1634
+ margin: 0;
1635
+ }
1636
+ .vditor-ir hr {
1637
+ display: inline-block;
1638
+ margin: 12px 0;
1639
+ width: 100%;
1640
+ }
1641
+ .vditor-ir blockquote:empty::before,
1642
+ .vditor-ir pre > code:empty::before,
1643
+ .vditor-ir p:empty::before,
1644
+ .vditor-ir h1:empty::after,
1645
+ .vditor-ir h2:empty::after,
1646
+ .vditor-ir h3:empty::after,
1647
+ .vditor-ir h4:empty::after,
1648
+ .vditor-ir h5:empty::after,
1649
+ .vditor-ir h6:empty::after {
1650
+ content: ' ';
1651
+ }
1652
+ .vditor-ir .vditor-reset > h1:before,
1653
+ .vditor-ir .vditor-reset > h2:before,
1654
+ .vditor-ir .vditor-reset > h3:before,
1655
+ .vditor-ir .vditor-reset > h4:before,
1656
+ .vditor-ir .vditor-reset > h5:before,
1657
+ .vditor-ir .vditor-reset > h6:before,
1658
+ .vditor-ir div[data-type="link-ref-defs-block"]:before,
1659
+ .vditor-ir div[data-type="footnotes-block"]:before,
1660
+ .vditor-ir .vditor-toc:before {
1661
+ float: left;
1662
+ padding-right: 4px;
1663
+ margin-left: -29px;
1664
+ content: 'H1';
1665
+ font-size: 0.85rem;
1666
+ font-weight: normal;
1667
+ color: var(--second-color);
1668
+ }
1669
+ .vditor-ir .vditor-reset > h2:before {
1670
+ content: 'H2';
1671
+ }
1672
+ .vditor-ir .vditor-reset > h3:before {
1673
+ content: 'H3';
1674
+ }
1675
+ .vditor-ir .vditor-reset > h4:before {
1676
+ content: 'H4';
1677
+ }
1678
+ .vditor-ir .vditor-reset > h5:before {
1679
+ content: 'H5';
1680
+ }
1681
+ .vditor-ir .vditor-reset > h6:before {
1682
+ content: 'H6';
1683
+ }
1684
+ .vditor-ir div[data-type="link-ref-defs-block"] {
1685
+ color: var(--blockquote-color);
1686
+ }
1687
+ .vditor-ir div[data-type="link-ref-defs-block"]:before {
1688
+ content: '"A"';
1689
+ }
1690
+ .vditor-ir div[data-type="footnotes-block"] {
1691
+ border-top: 2px solid var(--heading-border-color);
1692
+ padding-top: 24px;
1693
+ margin-top: 24px;
1694
+ }
1695
+ .vditor-ir div[data-type="footnotes-block"]:before {
1696
+ content: '^F';
1697
+ }
1698
+ .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ul,
1699
+ .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > ol,
1700
+ .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > p,
1701
+ .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > blockquote,
1702
+ .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > pre,
1703
+ .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > table,
1704
+ .vditor-ir div[data-type="footnotes-block"] > div[data-type="footnotes-def"] > hr {
1705
+ margin-left: 8px;
1706
+ }
1707
+ .vditor-ir .vditor-toc:before {
1708
+ content: "ToC";
1709
+ }
1710
+ .vditor-ir .vditor-toc span[data-type="toc-h"] {
1711
+ color: #4285f4;
1712
+ text-decoration: underline;
1713
+ }
1714
+ @media screen and (max-width: 520px) {
1715
+ .vditor-ir h1:before,
1716
+ .vditor-ir h2:before,
1717
+ .vditor-ir h3:before,
1718
+ .vditor-ir h4:before,
1719
+ .vditor-ir h5:before,
1720
+ .vditor-ir h6:before,
1721
+ .vditor-ir div[data-type="link-ref-defs-block"]:before,
1722
+ .vditor-ir div[data-type="footnotes-block"]:before,
1723
+ .vditor-ir .vditor-toc:before {
1724
+ content: none;
1725
+ }
1726
+ }
1727
+ .vditor-sv {
1728
+ font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", "Hiragino Sans GB", "Microsoft Yahei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols";
1729
+ margin: 0 1px 0 0;
1730
+ overflow: auto;
1731
+ width: 100%;
1732
+ flex: 1;
1733
+ min-width: 1px;
1734
+ border: 0;
1735
+ resize: none;
1736
+ padding: 10px 9px 10px 10px;
1737
+ box-sizing: border-box;
1738
+ background-color: var(--panel-background-color);
1739
+ outline: 0 none;
1740
+ font-size: 16px;
1741
+ line-height: 22px;
1742
+ color: var(--textarea-text-color);
1743
+ border-radius: 0 0 3px 3px;
1744
+ font-variant-ligatures: no-common-ligatures;
1745
+ white-space: pre-wrap;
1746
+ word-break: break-word;
1747
+ word-wrap: break-word;
1748
+ }
1749
+ .vditor-sv[contenteditable="false"] {
1750
+ opacity: 0.3;
1751
+ cursor: not-allowed;
1752
+ }
1753
+ .vditor-sv:empty::before {
1754
+ content: attr(placeholder);
1755
+ color: var(--second-color);
1756
+ }
1757
+ .vditor-sv:focus {
1758
+ background-color: var(--textarea-background-color);
1759
+ }
1760
+ .vditor-sv:after {
1761
+ content: "";
1762
+ height: var(--editor-bottom);
1763
+ display: block;
1764
+ }
1765
+ .vditor-sv span[data-type="newline"] + span[data-type="text"]:empty {
1766
+ display: inherit;
1767
+ }
1768
+ .vditor-sv .sup {
1769
+ vertical-align: super;
1770
+ font-size: smaller;
1771
+ }
1772
+ .vditor-sv .strong {
1773
+ font-weight: bold;
1774
+ }
1775
+ .vditor-sv .em {
1776
+ font-style: italic;
1777
+ }
1778
+ .vditor-sv .s {
1779
+ text-decoration: line-through;
1780
+ }
1781
+ .vditor-sv .mark:not(.vditor-sv__marker) {
1782
+ background-color: yellow;
1783
+ color: black;
1784
+ }
1785
+ .vditor-sv .h1 {
1786
+ font-size: 1.75em;
1787
+ line-height: 44px;
1788
+ }
1789
+ .vditor-sv .h2 {
1790
+ font-size: 1.55em;
1791
+ line-height: 38px;
1792
+ }
1793
+ .vditor-sv .h3 {
1794
+ font-size: 1.38em;
1795
+ line-height: 27px;
1796
+ }
1797
+ .vditor-sv .h4 {
1798
+ font-size: 1.25em;
1799
+ line-height: 25px;
1800
+ }
1801
+ .vditor-sv .h5 {
1802
+ font-size: 1.13em;
1803
+ }
1804
+ .vditor-sv .h6 {
1805
+ font-size: 1em;
1806
+ }
1807
+ .vditor-sv__marker {
1808
+ color: var(--second-color);
1809
+ }
1810
+ .vditor-sv__marker--heading {
1811
+ color: var(--ir-heading-color);
1812
+ }
1813
+ .vditor-sv__marker--bi {
1814
+ color: var(--ir-bi-color);
1815
+ }
1816
+ .vditor-sv__marker--link {
1817
+ color: var(--ir-link-color);
1818
+ }
1819
+ .vditor-sv__marker--title {
1820
+ color: var(--ir-title-color);
1821
+ }
1822
+ .vditor-sv__marker--bracket {
1823
+ color: var(--ir-bracket-color);
1824
+ }
1825
+ .vditor-sv__marker--paren {
1826
+ color: var(--ir-paren-color);
1827
+ }
1828
+ .vditor-sv__marker--info {
1829
+ color: var(--ir-heading-color);
1830
+ }
1831
+ .vditor-sv__marker--strong {
1832
+ font-weight: bold;
1833
+ }
1834
+