Skip to content

Commit 89ec4f1

Browse files
committed
docs: update demo
1 parent ee5a3db commit 89ec4f1

File tree

7 files changed

+28
-31
lines changed

7 files changed

+28
-31
lines changed

web/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
</div>
9696
<div class="w-full md:w-1/2 p-2 bg-white">
9797
<div class="w-full max-w-full h-full p-4 border rounded overflow-auto">
98-
<div id="markdown-preview" class="prose w-full max-w-full min-h-full p-4"></div>
98+
<div id="markdown-preview" class="prose prose-sm w-full max-w-full min-h-full p-4"></div>
9999
</div>
100100
</div>
101101
</div>

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
},
1818
"dependencies": {
1919
"clsx": "^2.1.1",
20-
"markdown-docx": "^1.2.0"
20+
"markdown-docx": "^1.3.0"
2121
}
2222
}

web/pnpm-lock.yaml

Lines changed: 23 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/public/small.png

925 Bytes
Loading

web/src/lang.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const lang = {
6767

6868

6969
// Initialize language system
70-
export function initLanguage() {
70+
export function initLanguage(service) {
7171
// Get preferred language from localStorage or use browser language
7272
const savedLanguage = localStorage.getItem('preferred_language')
7373
const browserLanguage = navigator.language.startsWith('zh') ? 'zh' : 'en'

web/src/template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Colons can be used to align columns.
5555
| ------------- |:-------------:| -----:|
5656
| `col 3 is` | right-aligned | $1600 |
5757
| col 2 is | **centered** | $12 |
58-
| zebra stripes | ~~are neat~~ | $1 |
58+
| ![img](/small.png) | ~~are neat~~ | $1 |
5959

6060
## Code Block
6161

web/src/zh-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
| ------------- |:-------------:| -----:|
5454
| `第三列` | 右对齐 | \$1600 |
5555
| 第二列 | **居中对齐** | \$12 |
56-
| 斑马条纹 | ~~美观整齐~~ | \$1 |
56+
| ![img](/small.png) | ~~美观整齐~~ | \$1 |
5757

5858
## 代码区块
5959

0 commit comments

Comments
 (0)