Skip to content

Commit 3945e74

Browse files
authored
Merge pull request #34696 from windsonsea/mermaid
[zh-cn] Fix error with mermaid shortcode in note tags
2 parents d747af0 + f3d7c26 commit 3945e74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/zh-cn/docs/contribute/style/diagram-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,11 @@ Figure 17 给出从 A 到 B 的一个简单流程。
384384

385385
{{< note >}}
386386
<!--
387-
You must include the `{{</* mermaid */>}}`, `{{</* /mermaid */>}}` shortcode
387+
You must include the Hugo Mermaid shortcode
388388
tags at the start and end of the Mermaid code block. You should add a diagram
389389
caption below the diagram.
390390
-->
391-
你必须在 Mermaid 代码块之前和之后分别添加 `{{</* mermaid */>}}``{{</* /mermaid */>}}`
391+
你必须在 Mermaid 代码块之前和之后分别添加 Hugo Mermaid
392392
短代码标记,而且你应该在图表之后为其添加图表标题。
393393
{{< /note >}}
394394

@@ -709,12 +709,12 @@ This section shows several examples of Mermaid diagrams.
709709

710710
{{< note >}}
711711
<!--
712-
The code block examples omit the Hugo `{{</* mermaid */>}}`, `{{</* /mermaid */>}}`
712+
The code block examples omit the Hugo Mermaid
713713
shortcode tags. This allows you to copy the code block into the live editor
714714
to experiment on your own.
715715
Note that the live editor doesn't recognize Hugo shortcodes.
716716
-->
717-
代码块示例中忽略了 Hugo `{{</* mermaid */>}}``{{</* /mermaid */>}}` 短代码标记。
717+
代码块示例中忽略了 Hugo Mermaid 短代码标记。
718718
这样,你就可以将这些代码段复制到在线编辑器中自行实验。
719719
注意,在线编辑器无法识别 Hugo 短代码。
720720
{{< /note >}}

0 commit comments

Comments
 (0)