未验证 提交 efeffdb9 编写于 作者: Miykael_xxm's avatar Miykael_xxm 🚴

update

上级 179ea818
:thumbsup: :thumbsup: :thumbsup: Well Done!
\ No newline at end of file
Atx 标题的格式为在行首插入 `#` ,请再仔细检查一下你的标题格式哟~~~
\ No newline at end of file
### 测试:请使用任意内容创建一个 Atx 形式的标题:
\ No newline at end of file
......@@ -57,16 +57,37 @@ step3:
step4:
link: '{{chapter_3_issue}}'
# description: "粗体"
# description: "参考形式链接"
transitions:
events: ['note_events']
action:
- type: issue_comment.created
with: 003_5_end_1.md
with: 003_4_header_exam_1.md
to: step5
step5:
link: '{{chapter_3_issue}}'
description: "添加一个标题"
transitions:
- events: ['note_events']
left: '^#{1,6}\s.+'
operator: regexp
right: '{{object_attributes.note}}'
action:
- type: issue_comment.created
with: 003_4_done.md
- type: issue_comment.created
with: 003_5_end_1.md
to: step6
- events: ['note_events']
else: true
action:
- type: issue_comment.created
with: 003_4_error.md
to: step5
step6:
link: '{{chapter_3_issue}}'
# description: "完成当前章节学习"
transitions:
events: ['close_issue']
......
......@@ -21,4 +21,7 @@ var foo = 'bar';
</details>
<br>
需要注意的是,如果差异内容中包 \`,请确保使用反斜杠`\` 来转义每个反引号\` ,否则差异突出显示将无法正确呈现。
\ No newline at end of file
需要注意的是,如果差异内容中包 \`,请确保使用反斜杠`\` 来转义每个反引号\` ,否则差异突出显示将无法正确呈现。
现在,让我们来做两个小测试吧~~~
\ No newline at end of file
### 测试1:请使用以下内容回复一段行内形式的代码:
```python
Sum = a + b
```
\ No newline at end of file
### 测试2:请将以下代码内容设置为`python`高亮的形式并回复:
```
def fibo(max):
n, a, b = 0, 0, 1
while n < max:
yield b
a, b = b, a + b
n = n + 1
for n in fibo(10):
print (n)
```
\ No newline at end of file
:thumbsup: :thumbsup: :thumbsup: Well Done!
\ No newline at end of file
高亮代码段需要用三个反引号( \`\`\` )的行围起来,并在第一个围栏的末尾标识上语言类型,请再仔细检查一下你的代码格式~~~
\ No newline at end of file
行内代码用两个反引号 \` 将代码内容包裹起来,请再仔细检查一下你的代码格式~~~
\ No newline at end of file
......@@ -66,21 +66,63 @@ step4:
- type: issue_comment.created
with: 008_5_code_diff.md
- type: choice
with: next.md
with: exam.md
to: step5
step5:
link: '{{chapter_8_issue}}'
# description: "代码高亮"
# description: "测试"
transitions:
events: ['note_events']
action:
- type: issue_comment.created
with: 008_7_end_1.md
- type: choice
with: 008_6_code_exam.md
to: step6
step6:
link: '{{chapter_8_issue}}'
# description: "行内代码"
transitions:
- events: ['note_events']
left: '^\`.+\`$/'
operator: regexp
right: '{{object_attributes.note}}'
action:
- type: issue_comment.created
with: 008_6_done.md
- type: choice
with: 008_6_code_exam_1.md
to: step7
- events: ['note_events']
else: true
action:
- type: issue_comment.created
with: 008_6_inner_error.md
to: step6
step7:
link: '{{chapter_8_issue}}'
# description: "高亮代码"
transitions:
- events: ['note_events']
left: '^\`{3}[P|p][Y|y][T|t][H|h][O|o][N|n]\s*\n+(.|\n)+\n*\`{3}$'
operator: regexp
right: '{{object_attributes.note}}'
action:
- type: issue_comment.created
with: 008_6_done.md
- type: choice
with: 008_7_end_1.md
to: step8
- events: ['note_events']
else: true
action:
- type: issue_comment.created
with: 008_6_fenced_error.md
to: step7
step8:
link: '{{chapter_8_issue}}'
# description: "完成当前章节学习"
transitions:
events: ['close_issue']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册