Home Explore Blog CI



kubernetes

4th chunk of `content/en/docs/test.md`
39d2b8187d675670b584c16be8564759c239f1dd0e8b80620000000100000832
time the pencil icon links to the Kubernetes website. Outer square brackets enclose
the entire image tag, and the link target is in the parentheses at the end.

```markdown
[![pencil icon](/images/pencil.png)](https://kubernetes.io)
```

Produces:

[![pencil icon](/Users/baehyunsol/Documents/Rust/ragit/sample/kubernetes/./images/pencil.png)](https://kubernetes.io)

You can also use HTML for images, but it is not preferred.

```markdown
<img src="/images/pencil.png" alt="pencil icon" />
```

Produces:

<img src="/images/pencil.png" alt="pencil icon" />

## Tables

Simple tables have one row per line, and columns are separated by `|`
characters. The header is separated from the body by cells containing nothing
but at least three `-` characters. For ease of maintenance, try to keep all the
cell separators even, even if you heed to use extra space.

| Heading cell 1 | Heading cell 2 |
|----------------|----------------|
| Body cell 1    | Body cell 2    |

The header is optional. Any text separated by `|` will render as a table.

Markdown tables have a hard time with block-level elements within cells, such as
list items, code blocks, or multiple paragraphs. For complex or very wide
tables, use HTML instead.

```html
<table>
<thead>
  <tr>
    <th>Heading cell 1</th>
    <th>Heading cell 2</th>
  </tr>
</thead>
<tbody>
  <tr>
    <td>Body cell 1</td>
    <td>Body cell 2</td>
  </tr>
</tbody>
</table>
```

Produces:

<table>
<thead>
  <tr>
    <th>Heading cell 1</th>
    <th>Heading cell 2</th>
  </tr>
</thead>
<tbody>
  <tr>
    <td>Body cell 1</td>
    <td>Body cell 2</td>
  </tr>
</tbody>
</table>

## Visualizations with Mermaid

You can use [Mermaid JS](https://mermaidjs.github.io) visualizations.
The Mermaid JS version is specified in [/layouts/partials/head.html](https://github.com/kubernetes/website/blob/main/layouts/partials/head.html)

```markdown
{{</* mermaid */>}}
graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
{{</*/ mermaid */>}}
```

Produces:

{{< mermaid >}}
graph TD;
  A-->B;
  A-->C;
  B-->D;
  C-->D;
{{</ mermaid >}}

```markdown
{{</* mermaid */>}}

Title: Tables and Visualizations with Mermaid in Markdown
Summary
This passage explains how to create tables in Markdown using '|' and '-' characters, noting limitations with block-level elements and suggesting HTML for complex tables. It also introduces the use of Mermaid JS for visualizations, providing an example and linking to the Mermaid JS documentation and the specific version used in the project.