markdown-formatting
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGeneral
通用规范
- No table of contents unless specifically requested.
- 除非有明确要求,否则不要添加目录。
Code Blocks
代码块
All code blocks must include a language tag and a Torchlight flag.
| Flag | Description |
|---|---|
| Source code only (syntax highlighted) |
| Preview + code (always visible) |
| Preview + code + collapsible |
Other flags (, , ) exist but are less common — only use when requested.
+preview+collapseoutput所有代码块必须包含语言标签和Torchlight标识。
| 标识 | 说明 |
|---|---|
| 仅源代码(语法高亮) |
| 预览+代码(始终可见) |
| 预览+代码+可折叠 |
其他标识(、、)存在但不常用,仅在有要求时使用。
+preview+collapseoutputLanguage Tags
语言标签
| Use For | Tag |
|---|---|
| Directory trees, shell commands | |
| Blade templates | |
| 适用场景 | 标签 |
|---|---|
| 目录树、shell命令 | |
| Blade模板 | |
Demo-Folded Attributes
Demo-Folded 属性
When using , apply demo attributes intentionally:
+demo-folded- — outer demo wrapper styling
class="..." - — preview-only layout or styling
preview-class="..."
Example opening tag:
markdown
```html +demo-folded class="bx" preview-class="grid gap lg:cols-3"
<div class="example">Content here</div>使用时,请针对性设置demo属性:
+demo-folded- — demo外层容器样式
class="..." - — 仅预览区域的布局或样式
preview-class="..."
示例开头标签:
markdown
```html +demo-folded class="bx" preview-class="grid gap lg:cols-3"
<div class="example">Content here</div>Horizontal Rules
水平分隔线
Use 80 hyphens as a visual section separator in long documents when a thematic break is not appropriate:
-----------------------------------------------------------------------------------当主题分隔符不适用时,在长文档中使用80个连字符作为视觉段落分隔符:
-----------------------------------------------------------------------------------Lists
列表
- Use hyphens for unordered lists
- - Use
1.for ordered steps2. - 4-space indentation for nested items
- 无序列表使用连字符
- - 有序步骤使用
1.格式2. - 嵌套项使用4空格缩进
Tables
表格
Standard GitHub Flavored Markdown. Keep column separators aligned.
| Column | Type | Nullable | Default |
|---|---|---|---|
| id | bigint | No | AUTO |
| name | varchar(255) | No | - |
采用标准GitHub Flavored Markdown格式,保持列分隔符对齐。
| 列名 | 类型 | 可空 | 默认值 |
|---|---|---|---|
| id | bigint | 否 | AUTO |
| name | varchar(255) | 否 | - |
Linting
语法检查
- Blank line before and after headings, code blocks, and lists
- No trailing spaces
- Single blank line between sections — not double
- 标题、代码块和列表前后需各留一个空行
- 不要有尾随空格
- 段落之间仅保留单个空行,不要使用双空行