feat(training): 支持课程附件预览与整页阅读

This commit is contained in:
2026-10-20 13:36:58 +08:00
parent 091d17ff21
commit b149295e66
53 changed files with 4233 additions and 632 deletions
@@ -0,0 +1 @@
Not a ZIP document
@@ -0,0 +1,2 @@
培训课程 GB18030
中文内容正常显示。
@@ -0,0 +1,18 @@
# 培训课程
这是 **Markdown** 附件内容。
- 服务规范
- 现场安全
| 项目 | 要求 |
|---|---|
| 阅读 | 完整阅读 |
[外部资料](https://example.com/training)
![禁止远程图片](https://example.com/image.png)
<script>alert(1)</script>
[恶意链接](javascript:alert(1))
@@ -0,0 +1,32 @@
%PDF-1.4
1 0 obj
<< /Type /Catalog /Pages 2 0 R >>
endobj
2 0 obj
<< /Type /Pages /Kids [3 0 R] /Count 1 >>
endobj
3 0 obj
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 320 440] /Resources << /Font << /F1 4 0 R >> >> /Contents 5 0 R >>
endobj
4 0 obj
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica >>
endobj
5 0 obj
<< /Length 109 >>
stream
BT /F1 20 Tf 28 380 Td (Training Course PDF) Tj 0 -32 Td /F1 12 Tf (Read the complete course document.) Tj ET
endstream
endobj
xref
0 6
0000000000 65535 f
0000000009 00000 n
0000000058 00000 n
0000000115 00000 n
0000000241 00000 n
0000000311 00000 n
trailer
<< /Size 6 /Root 1 0 R >>
startxref
471
%%EOF
@@ -0,0 +1,4 @@
培训课程
这是一份 UTF-8 文本附件。
<script>alert(1)</script>
第二段正文。