myst-detail

※ jupyter book의 ‘MyST syntax cheat sheet’ 참조하여 추가 정리

Quote

syntax

  > This is a quote
result

This is a quote

List

syntax

  1. First item
  2. Second item
      1. First sub-item
result
  1. First item

  2. Second item

    1. First sub-item

Table

syntax

  ```{list-table} This table title
  :header-rows: 1
  :name: example-table

  * - Training
    - Validation
  * - 0
    - 5
  * - 13720
    - 2744
  ```
result
Table 2 This table title

Training

Validation

0

5

13720

2744

Admotion

syntax

  ```{admonition} This is a title
    An example of an admonition with a title.
  ```

result

Note

This is an note admonition

Important

This is an important admonition

Hint

This is an hint admonition

See also

This is an seealso admonition

Tip

This is an tip admonition

Attention

This is an attention admonition

Caution

This is an caution admonition

Warning

This is an warning admonition

Danger

This is an danger admonition

Error

This is an error admonition

Figure

syntax

  ```{image} ../images/C-3PO_droid.png
  :height: 150px
  :name: image-example
  ```
result
../_images/tdc_logo_3.png

to-do list

syntax

  ```
  - [ ] Mercury
  - [ ] Venus
  - [ ] Earth
  - [ ] Mars
  ```
result
  • Mercury

  • Venus

  • Earth

  • Mars

emoji (octicon)

syntax

  ```
  [sphinx style]
  - {octicon}`smiley;1em;sd-text-info`

  [github style]
  - |:smiley:|
  ```
result

smiley

thumbsup

workflow

tag

arrow-right

octicon 바로가기

button

syntax

  ```{button-link} https://example.com
  :color: primary
  :outline:
  button
  ```
result

button

tab

syntax

  ::::{tab-set}

  :::{tab-item} Label1
  Content 1
  :::

  :::{tab-item} Label2
  Content 2
  :::

  ::::
result

Content 1

Content 2

Math

syntax

  This is an example of a
  math block

  $$
  z=\sqrt{x^2+y^2}
  $$
result

This is an example of a math block

\[ z=\sqrt{x^2+y^2} \]

block code

syntax

  Wrap in-line code blocks in backticks: `boolean example = true;`.
result
  note = "Python syntax highlighting"
  print(node)

grid

syntax

  ::::{grid} 3
  :outline:

  :::{grid-item}
  A
  :::
  :::{grid-item}
  B
  :::
  :::{grid-item}
  C
  :::
  ::::

result

A

B

C