Skip to content

Commit

Permalink
202407211905
Browse files Browse the repository at this point in the history
  • Loading branch information
Remote committed Jul 21, 2024
1 parent 5f4ad2b commit 0435c11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

> A web-based Markdown editor with real-time preview designed for editing of md files online.
> Through modular design, it is easy to integrate into websites for use.
> Must be used in conjunction with [PDExtension-js](https://pardnchiu.github.io/PDExtension-js/v3/PDExtension.min.js).
> Must be used in conjunction with [PDExtension-js](https://github.com/pardnchiu/PDExtension-js).
## 特點 / Feature

Expand Down Expand Up @@ -52,12 +52,12 @@ This source code project is licensed under the [GPL-3.0](https://github.com/pard

- 添加依賴 `PDExtension-js`
```Html
<script src="https://pardnchiu.github.io/PDExtension-js/v3/PDExtension.min.js" copyright="Pardn Ltd"></script>
<script src="https://cdn.jsdelivr.net/gh/pardnchiu/PDExtension-js/v3/PDExtension.min.js" copyright="Pardn Ltd"></script>
```

- 導入 `MDEditor``MDViewer`
```Javascript
import { MDEditor, MDViewer } from "https://pardnchiu.github.io/markdown-editor/v1/PDMDEditor.min.js";
import { MDEditor, MDViewer } from "https://cdn.jsdelivr.net/gh/pardnchiu/markdown-editor/v1/PDMDEditor.min.js";

const editor = new MDEditor({
id: "", // 預設 PDMDEditor
Expand Down
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@
<link rel=stylesheet href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/css/all.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="./css/index.css">
<!-- -->
<link rel="preconnect" href="https://pardnchiu.github.io">
<!-- <link rel="preconnect" href="https://pardnchiu.github.io">
<link rel="preload" href="https://pardnchiu.github.io/PDExtension-js/v3/PDExtension.min.js" as="script" crossorigin="anonymous">
<script src="https://pardnchiu.github.io/PDExtension-js/v3/PDExtension.min.js" copyright="Pardn Ltd"></script>
<script src="https://pardnchiu.github.io/PDExtension-js/v3/PDExtension.min.js" copyright="Pardn Ltd"></script> -->
<script src="https://cdn.jsdelivr.net/gh/pardnchiu/PDExtension-js/v3/PDExtension.min.js" copyright="Pardn Ltd"></script>
<script src="./js/index.min.js" type="module"></script>
<!-- 開發測試用 -->
<!-- <link rel="stylesheet" href="./css/PDMDEditor.css"> -->
Expand Down
Loading

0 comments on commit 0435c11

Please sign in to comment.