Skip to content

Commit

Permalink
mermaidの構文例をテンプレートに追加する (#21)
Browse files Browse the repository at this point in the history
* document templateにコードブロックの記述例を追加

* document templateの内容を更新し、レンダリング説明を改善

* Mermaidのサンプル画像を更新
  • Loading branch information
tsuna-can-se authored Dec 15, 2024
1 parent bb979f2 commit 410bc32
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion docs/_document-template/contents.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,17 @@ URL を `< >` で囲うと、そのままリンクにできます。

簡単な図は、 [mermaid](https://mermaid.js.org/) で作成できます ( Beta )。
` ```mermaid ~ ``` ` で囲った範囲に mermaid 記法で図を記述できます。
図は次のようにレンダリングできます。

<!-- コードブロックの記述例を示すため、チルダでコードブロックを記述 -->
<!-- markdownlint-disable-next-line MD048 -->
~~~md
```mermaid
flowchart TD
開始 --> 終了
```
~~~

これは次のようにレンダリングされます。

```mermaid
flowchart TD
Expand Down
2 changes: 1 addition & 1 deletion pdf-sample.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

[Mermaid](https://mermaid.js.org/) の構文を入れることもできます。

![Mermaid のサンプル](https://github.com/user-attachments/assets/23bede4b-f6c8-44e1-a535-8b5f9352e0c1)
![Mermaid のサンプル](https://github.com/user-attachments/assets/8f896815-0346-403c-a330-cac7bb01dd8f)

## テーブル

Expand Down

0 comments on commit 410bc32

Please sign in to comment.