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