Giter VIP home page Giter VIP logo

Comments (1)

Vanessa219 avatar Vanessa219 commented on June 13, 2024

你用这个试试,我这里不会报错

<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
  <meta charset="utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
  <meta name="theme-color" content="#f1f7fe">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="mobile-web-app-capable" content="yes"/>
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <title>Vditor: ♏ An In-browser Markdown editor, support WYSIWYG, Instant Rendering (Typora-like) and Split View
    modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。</title>
  <meta name="description"
        content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/>
  <meta property="og:description"
        content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/>
  <meta name="twitter:description" property="og:description" itemprop="description"
        content="Vditor 支持三种所见即所得(wysiwyg)、即时渲染(ir)、分屏预览(sv)模式,支持大纲、数学公式、脑图、图表、流程图、甘特图、时序图、五线谱、多媒体、语音阅读、标题锚点、代码高亮及复制、graphviz 渲染。"/>
  <link rel="dns-prefetch" href="//unpkg.com/"/>
  <link rel="preconnect" href="https://unpkg.com">
  <link rel="icon" type="image/png" href="https://unpkg.com/vditor/dist/images/logo.png"/>
  <link rel="apple-touch-icon" href="https://unpkg.com/vditor/dist/images/logo.png">
  <link rel="shortcut icon" type="image/x-icon" href="https://unpkg.com/vditor/dist/images/logo.png">
  <meta name="copyright" content="B3log"/>
  <meta http-equiv="Window-target" content="_top"/>
  <meta property="og:locale" content="zh-cmn-Hans"/>
  <meta property="og:title"
        content="Vditor: ♏ An In-browser Markdown editor, support WYSIWYG,  Instant Rendering (Typora-like) and Split View modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。"/>
  <meta property="og:site_name" content="Blog-vditor"/>
  <meta property="og:url" content="https://b3log.org/vditor"/>
  <meta name="twitter:card" content="summary"/>
  <meta name="twitter:domain" content="b3log.org"/>
  <meta name="twitter:title" property="og:title" itemprop="b3lig vditor"
        content="Vditor: ♏ An In-browser Markdown editor, support WYSIWYG,  Instant Rendering (Typora-like) and Split View modes. 一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。"/>
  <meta name="twitter:site" content="@B3logOS"/>
  <meta name="twitter:url" content="https://b3log.org/vditor"/>
  <meta property="og:image" content="https://unpkg.com/vditor/dist/images/logo.png"/>
  <meta name="twitter:image" content="https://unpkg.com/vditor/dist/images/logo.png"/>
  <style>
    body {
      margin: 0;
      padding: 0 20px;
    }

    .nav {
      text-align: center;
      margin: 20px 0
    }

    a {
      color: #4285f4;
    }
  </style>
  <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/index.css">
  <script src="https://unpkg.com/[email protected]/dist/index.min.js"></script>
</head>
<body>
<div class="vditor-reset nav">
  <a href="https://b3log.org/vditor" target="_blank">官网</a>
</div>
<div id="vditor">
  <h1>Vditor</h1>
  <ul>
    <li>foo</li>
    <li>bar</li>
  </ul>
</div>
<script>
  const vditor = new Vditor('vditor', {
      after() {
        vditor.setValue('Hello, Vditor!')
      },
  })
</script>
</body>
</html>

from vditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.