Skip to content

Commit a4b5db6

Browse files
committed
docs: update video links in README and Chinese README to point to YouTube
1 parent 1e32736 commit a4b5db6

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ These features make the library especially suited for real-time, AI-driven, and
6565

6666
This short video introduces the vue-renderer-markdown component library and highlights key features and usage patterns.
6767

68-
[![Watch the intro on Bilibili](https://i1.hdslb.com/bfs/archive/f073718bd0e51acaea436d7197880478213113c6.jpg)](https://www.bilibili.com/video/BV17Z4qzpE9c/)
69-
70-
Watch the intro on Bilibili: [Open in Bilibili](https://www.bilibili.com/video/BV17Z4qzpE9c/)
68+
[![Watch the intro on YouTube](https://i1.hdslb.com/bfs/archive/f073718bd0e51acaea436d7197880478213113c6.jpg)](https://youtu.be/qUggGP5bWNw)
7169

70+
Watch the intro on YouTube: [Open in YouTube](https://youtu.be/qUggGP5bWNw)
7271

7372
## Features
7473

@@ -891,7 +890,6 @@ Notes:
891890
import type { MyMarkdownProps } from 'vue-renderer-markdown/dist/types'
892891
```
893892
894-
895893
## Vite Configuration & Worker Usage (Important!)
896894
897895
If you're using Vite, you only need the following minimal configuration:

README.zh-CN.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@ setDefaultMathOptions({ commands: ['infty', 'perp'], escapeExclamation: true })
239239

240240
```ts
241241
// 翻译映射
242-
const md = getMarkdown('editor-1', { i18n: { 'common.copy': '复制' } })
243-
244242
// 翻译函数(例如使用 vue-i18n)
245243
import { useI18n } from 'vue-i18n'
244+
245+
const md = getMarkdown('editor-1', { i18n: { 'common.copy': '复制' } })
246246
const { t } = useI18n()
247247
const md2 = getMarkdown('editor-1', { i18n: (key: string) => t(key) })
248248
```
@@ -274,9 +274,9 @@ This is **bold** and this is *italic*.
274274
- List item 1
275275
- List item 2
276276
277-
```javascript
277+
\`\`\`javascript
278278
console.log('Code block!')
279-
```
279+
\`\`\`
280280
`
281281
</script>
282282
@@ -425,11 +425,11 @@ export default defineConfig({
425425
import KatexWorker from 'vue-renderer-markdown/workers/katexRenderer.worker?worker'
426426
import { setKaTeXWorker } from 'vue-renderer-markdown/workers/katexWorkerClient'
427427

428-
setKaTeXWorker(new KatexWorker())
429-
430428
import MermaidWorker from 'vue-renderer-markdown/workers/mermaidParser.worker?worker'
431429
import { setMermaidWorker } from 'vue-renderer-markdown/workers/mermaidWorkerClient'
432430

431+
setKaTeXWorker(new KatexWorker())
432+
433433
setMermaidWorker(new MermaidWorker())
434434
```
435435

@@ -465,6 +465,7 @@ setMermaidWorker(new MermaidWorker())
465465

466466
```ts
467467
import { getUseMonaco } from './src/components/CodeBlockNode/monaco'
468+
468469
getUseMonaco()
469470
```
470471

0 commit comments

Comments
 (0)