render.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!DOCTYPE html>
  2. <html lang="zh-cmn-Hans">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
  7. <meta name="theme-color" content="#f1f7fe">
  8. <meta name="apple-mobile-web-app-capable" content="yes">
  9. <meta name="mobile-web-app-capable" content="yes"/>
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <title>Vditor: ♏ An In-browser Markdown editor, support WYSIWYG, Instant Rendering (Typora-like) and Split View modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。</title>
  12. <meta name="description"
  13. content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/>
  14. <meta property="og:description"
  15. content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/>
  16. <meta name="twitter:description" property="og:description" itemprop="description"
  17. content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/>
  18. <link rel="dns-prefetch" href="//cdn.jsdelivr.net/"/>
  19. <link rel="preconnect" href="https://cdn.jsdelivr.net">
  20. <link rel="icon" type="image/png" href="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
  21. <link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png">
  22. <link rel="shortcut icon" type="image/x-icon" href="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png">
  23. <meta name="copyright" content="B3log"/>
  24. <meta http-equiv="Window-target" content="_top"/>
  25. <meta property="og:locale" content="zh-cmn-Hans"/>
  26. <meta property="og:title" content="Vditor: ♏ An In-browser Markdown editor, support WYSIWYG, Instant Rendering (Typora-like) and Split View modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。"/>
  27. <meta property="og:site_name" content="Blog-vditor"/>
  28. <meta property="og:url" content="https://vditor.b3log.org"/>
  29. <meta name="twitter:card" content="summary"/>
  30. <meta name="twitter:domain" content="b3log.org"/>
  31. <meta name="twitter:title" property="og:title" itemprop="b3lig vditor"
  32. content="Vditor: ♏ An In-browser Markdown editor, support WYSIWYG, Instant Rendering (Typora-like) and Split View modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。"/>
  33. <meta name="twitter:site" content="@B3logOS"/>
  34. <meta name="twitter:url" content="https://vditor.b3log.org"/>
  35. <meta property="og:image" content="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
  36. <meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
  37. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.css"/>
  38. <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/method.min.js"></script>
  39. <style>
  40. .link {
  41. cursor: pointer;
  42. color: #4285f4;
  43. }
  44. .markdown-list {
  45. position: fixed;
  46. top: 52px;
  47. left: 20px;
  48. width: 85px;
  49. }
  50. .preview {
  51. max-width: 90%;
  52. width: 600px;
  53. margin: 0 auto;
  54. padding-bottom: 20px;
  55. }
  56. #outline {
  57. display: none;
  58. position: fixed;
  59. width: 290px;
  60. top: 20px;
  61. right: 20px;
  62. bottom: 20px;
  63. overflow: auto;
  64. font-size: 13px;
  65. border: 1px solid var(--border-color);
  66. border-radius: 3px;
  67. background-color: var(--textarea-background-color);
  68. }
  69. .vditor-reset ul[data-marker="*"] {
  70. list-style-type: disc
  71. }
  72. .vditor-reset ul[data-marker="*"] ul {
  73. list-style-type: circle
  74. }
  75. .vditor-reset ul[data-marker="*"] ul ul {
  76. list-style-type: square
  77. }
  78. .vditor-reset ul[data-marker="+"] {
  79. list-style-type: "\2764";
  80. }
  81. .vditor-reset ul[data-marker="+"] ul {
  82. list-style-type: "\1f49a"
  83. }
  84. .vditor-reset ul[data-marker="+"] ul ul {
  85. list-style-type: "\1f49b"
  86. }
  87. .vditor-reset ul[data-marker="-"] {
  88. list-style-type: korean-hangul-formal
  89. }
  90. .vditor-reset ul[data-marker="-"] ul {
  91. list-style-type: decimal-leading-zero
  92. }
  93. .vditor-reset ul[data-marker="-"] ul ul {
  94. list-style-type: lower-alpha
  95. }
  96. .vditor-reset ol[data-marker="1)"] {
  97. list-style-type: simp-chinese-formal
  98. }
  99. .vditor-reset ol[data-marker="1)"] ol {
  100. list-style-type: simp-chinese-informal
  101. }
  102. .vditor-reset ol[data-marker="1)"] ol ol {
  103. list-style-type: trad-chinese-formal
  104. }
  105. @media screen and (max-width: 520px) {
  106. .markdown-list {
  107. position: initial;
  108. }
  109. }
  110. </style>
  111. </head>
  112. <body>
  113. <h2>
  114. <a class="link" href="https://vditor.b3log.org" target="_blank">官网</a> |
  115. <a class="link" href="/">Editor</a> |
  116. <button onclick="setTheme('dark')">Dark Mode</button>
  117. <button onclick="setTheme('light')">Light Mode</button>
  118. </h2>
  119. <ul class="markdown-list">
  120. <li><span class="link" data-file="zh_CN">zh_CN</span></li>
  121. <li><span class="link" data-file="ko_KR">ko_KR</span></li>
  122. <li><span class="link" data-file="cute-list">cute-list</span></li>
  123. <li><span class="link" data-file="entity">entity</span></li>
  124. </ul>
  125. <div id="previewWrap">
  126. <div id="preview" class="preview"></div>
  127. </div>
  128. <div class="vditor" style="border: 0">
  129. <div id="outline" class="vditor-reset"></div>
  130. </div>
  131. </body>
  132. </html>