Skip to content

Commit

Permalink
📝
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Aug 30, 2020
1 parent 1738233 commit a29dbd7
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
* [496](https://github.com/Vanessa219/vditor/issues/496) 行级 HTML 空格问题 `修复缺陷`
* [495](https://github.com/Vanessa219/vditor/issues/495) 行级 HTML 退格问题 `修复缺陷`
* [494](https://github.com/Vanessa219/vditor/issues/494) 三种模式支持 list-style 样式 `改进功能`
* [489](https://github.com/Vanessa219/vditor/issues/489) 为 vditor.b3log.org/demo 添加源码 `改进功能`
* [489](https://github.com/Vanessa219/vditor/issues/489) 为 b3log.org/vditor/demo 添加源码 `改进功能`
* [493](https://github.com/Vanessa219/vditor/issues/493) 修复 XSS 过滤 `修复缺陷`
* [486](https://github.com/Vanessa219/vditor/pull/486) getCursorPosition 针对空行会得到错误数据 `修复缺陷`
* [485](https://github.com/Vanessa219/vditor/issues/485) IR 模式下,<details>的编辑问题 `修复缺陷`
Expand Down Expand Up @@ -326,8 +326,8 @@
* 添加静态方法 `mindmapRender`
* 为 `IMarkdownConfig` 添加 `sanitize`, `listMarker`, `linkBase` 配置
* IPreviewOptions.anchor 从 `boolean` 类型修改为 `number` 类型
* 示例代码地址修改:static-preview.html => preview.html,static.html => vditor.b3log.org/demo/render.html
* 添加 [Vditor](https://vditor.b3log.org) 官方首页
* 示例代码地址修改:static-preview.html => preview.html,static.html => b3log.org/vditor/demo/render.html
* 添加 [Vditor](https://b3log.org/vditor) 官方首页
* 添加缓存回调 `options.cache.after(markdown:string)`


Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
</p>

<p align="center">
<a href="https://github.com/Vanessa219/vditor/blob/master/README_en_US.md">English</a> &nbsp;|&nbsp; <a href="https://vditor.b3log.org/demo/index.html">Demo</a>
<a href="https://github.com/Vanessa219/vditor/blob/master/README_en_US.md">English</a> &nbsp;|&nbsp; <a href="https://b3log.org/vditor/demo/index.html">Demo</a>
</p>

## 💡 简介

[Vditor](https://vditor.b3log.org) 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。它使用 TypeScript 实现,支持原生 JavaScript、Vue、React、Angular,提供[桌面版](https://github.com/88250/liandi)
[Vditor](https://b3log.org/vditor) 是一款浏览器端的 Markdown 编辑器,支持所见即所得、即时渲染(类似 Typora)和分屏预览模式。它使用 TypeScript 实现,支持原生 JavaScript、Vue、React、Angular,提供[桌面版](https://b3log.org/siyuan)

欢迎到 [Vditor 官方讨论区](https://hacpai.com/tag/vditor)了解更多。同时也欢迎关注 B3log 开源社区微信公众号 `B3log开源`

Expand Down Expand Up @@ -115,7 +115,7 @@ Vditor 在这些方面做了努力,希望能为现代化的通用 Markdown 编

* [Sym](https://github.com/88250/symphony) 一款用 Java 实现的现代化社区(论坛/BBS/社交网络/博客)平台
* [Solo](https://github.com/88250/solo) & [Pipe](https://github.com/88250/pipe) B3log 分布式社区的博客端节点,欢迎加入下一代社区网络
* [链滴笔记](https://github.com/88250/liandi) 一款桌面端笔记应用,支持 Windows、Mac 和 Linux
* [思源笔记](https://b3log.org/siyuan) 一款桌面端笔记应用,支持 Windows、Mac 和 Linux
* [Arya](https://github.com/nicejade/markdown-online-editor) 基于 Vue、Vditor,所构建的在线 Markdown 编辑器
* [为知笔记 Lite](https://github.com/WizTeam/WizNoteLite) 聚焦于输入,让写作与思考不受干扰
* [更多案例](https://github.com/Vanessa219/vditor/network/dependents?package_id=UGFja2FnZS0zMTY2Mzg4MzE%3D)
Expand All @@ -141,7 +141,7 @@ const vditor = new Vditor(id, {options...})

### HTML script

* 在 HTML 中插入 CSS 和 JavaScript,可参考 [demo](https://vditor.b3log.org/demo/index.html)
* 在 HTML 中插入 CSS 和 JavaScript,可参考 [demo](https://b3log.org/vditor/demo/index.html)

```html
<!-- ⚠️生产环境请指定版本号,如 https://cdn.jsdelivr.net/npm/vditor@x.x.x/dist... -->
Expand All @@ -151,7 +151,7 @@ const vditor = new Vditor(id, {options...})

### 示例代码

* [官方示例](https://vditor.b3log.org/demo/index.html) / [示例源码](https://github.com/Vanessa219/b3log-index/tree/master/src/vditor)
* [官方示例](https://b3log.org/vditor/demo/index.html) / [示例源码](https://github.com/Vanessa219/b3log-index/tree/master/src/vditor)
* [CommonJS Editor](https://github.com/Vanessa219/vditor/blob/master/demo/index.js)
* [CommonJS Render](https://github.com/Vanessa219/vditor/blob/master/demo/render.js)

Expand Down Expand Up @@ -580,7 +580,7 @@ options?: IPreviewOptions {
## 🏘️ 社区
* [官网](https://vditor.b3log.org)
* [官网](https://b3log.org/vditor)
* [讨论区](https://hacpai.com/tag/vditor)
* [报告问题](https://github.com/Vanessa219/vditor/issues/new)
Expand Down
12 changes: 6 additions & 6 deletions README_en_US.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ Easy-to-use Markdown editor, born to adapt to different application scenarios
</p>

<p align="center">
<a href="https://github.com/Vanessa219/vditor/blob/master/README.md">中文</a> &nbsp;|&nbsp; <a href="https://vditor.b3log.org/demo/index.html">Demo</a>
<a href="https://github.com/Vanessa219/vditor/blob/master/README.md">中文</a> &nbsp;|&nbsp; <a href="https://b3log.org/vditor/demo/index.html">Demo</a>
</p>

## 💡 Introduction

[Vditor](https://vditor.b3log.org) is a browser-side Markdown editor, implemented using TypeScript. Support native JavaScript, Vue, React and Angular, provide [desktop](https://github.com/88250/liandi).
[Vditor](https://b3log.org/vditor) is a browser-side Markdown editor, implemented using TypeScript. Support native JavaScript, Vue, React and Angular, provide [desktop](https://b3log.org/siyuan).

Welcome to [Vditor Official Site](https://vditor.b3log.org) to learn more.
Welcome to [Vditor Official Site](https://b3log.org/vditor) to learn more.

## 🗺️ Background

Expand Down Expand Up @@ -113,7 +113,7 @@ Most of the above features can be enabled or disabled through the switch configu

* [Sym](https://github.com/88250/symphony) A modern community (forum/BBS/SNS/blog) platform implemented in Java
* [Solo](https://github.com/88250/solo) & [Pipe](https://github.com/88250/pipe) B3log distributed community blog end node, welcome to join the next generation community network
* [LianDi Note](https://github.com/88250/liandi) A desktop note application that supports Windows, Mac and Linux
* [SiYuan Note](https://b3log.org/siyuan) A desktop note application that supports Windows, Mac and Linux
* [Arya](https://github.com/nicejade/markdown-online-editor) Based on Vue, Vditor, built online Markdown editor
* [WizNote Lite](https://github.com/WizTeam/WizNoteLite) Focus on input, so that writing and thinking are not disturbed
* [More cases](https://github.com/Vanessa219/vditor/network/dependents?package_id=UGFja2FnZS0zMTY2Mzg4MzE%3D)
Expand All @@ -139,7 +139,7 @@ const vditor = new Vditor(id, {options...})

### HTML script

* Insert CSS and js in HTML, you can refer to [demo](https://vditor.b3log.org/demo/index.html)
* Insert CSS and js in HTML, you can refer to [demo](https://b3log.org/vditor/demo/index.html)

```html
<!-- ⚠️Please specify the version number in the production environment, such as https://cdn.jsdelivr.net/npm/vditor@x.x.x/dist... -->
Expand All @@ -149,7 +149,7 @@ const vditor = new Vditor(id, {options...})

### Demo code

* [Demo](https://vditor.b3log.org/demo/index.html)
* [Demo](https://b3log.org/vditor/demo/index.html)
* [CommonJS Editor](https://github.com/Vanessa219/vditor/blob/master/demo/index.js)
* [CommonJS Render](https://github.com/Vanessa219/vditor/blob/master/demo/render.js)

Expand Down
6 changes: 3 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
<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://vditor.b3log.org"/>
<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://vditor.b3log.org"/>
<meta name="twitter:url" content="https://b3log.org/vditor"/>
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
<meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
<style>
Expand All @@ -58,7 +58,7 @@
</head>
<body>
<div class="vditor-reset nav">
<a href="https://vditor.b3log.org" target="_blank">官网</a> &nbsp; &nbsp;
<a href="https://b3log.org/vditor" target="_blank">官网</a> &nbsp; &nbsp;
<a href="/render.html">Render</a> &nbsp; &nbsp;
<button onclick="window.vditor.setTheme('dark', 'dark', 'native');document.querySelector('body').style.backgroundColor='#2f363d'">
Dark Mode
Expand Down
4 changes: 2 additions & 2 deletions demo/jest-puppeteer.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
<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://vditor.b3log.org"/>
<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://vditor.b3log.org"/>
<meta name="twitter:url" content="https://b3log.org/vditor"/>
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
<meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
</head>
Expand Down
6 changes: 3 additions & 3 deletions demo/render.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
<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://vditor.b3log.org"/>
<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://vditor.b3log.org"/>
<meta name="twitter:url" content="https://b3log.org/vditor"/>
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
<meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/vditor/src/assets/images/logo.png"/>
<style>
Expand Down Expand Up @@ -161,7 +161,7 @@
</head>
<body>
<div class="vditor-reset nav">
<a class="link" href="https://vditor.b3log.org" target="_blank">官网</a> &nbsp; &nbsp;
<a class="link" href="https://b3log.org/vditor" target="_blank">官网</a> &nbsp; &nbsp;
<a class="link" href="/">Editor</a> &nbsp; &nbsp;
<button onclick="setTheme('dark')">Dark Mode</button> &nbsp; &nbsp;
<button onclick="setTheme('light')">Light Mode</button>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.4.7",
"description": "♏ 易于使用的 Markdown 编辑器,为适配不同的应用场景而生",
"author": "Vanessa <v@b3log.org> (http://vanessa.b3log.org)",
"homepage": "https://vditor.b3log.org",
"homepage": "https://b3log.org/vditor",
"jsdelivr": "dist/index.min.js",
"main": "dist/index.min.js",
"funding": "https://hacpai.com/sponsor",
Expand Down
2 changes: 1 addition & 1 deletion src/ts/toolbar/Info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Info extends MenuItem {
<div style="display: flex;flex-wrap: wrap;">
<ul style="list-style: none;flex: 1;min-width:148px">
<li>
项目地址:<a href="https://vditor.b3log.org" target="_blank">vditor.b3log.org</a>
项目地址:<a href="https://b3log.org/vditor" target="_blank">b3log.org/vditor</a>
</li>
<li>
开源协议:MIT
Expand Down

0 comments on commit a29dbd7

Please sign in to comment.