Skip to content

Latest commit

 

History

History
95 lines (64 loc) · 2 KB

File metadata and controls

95 lines (64 loc) · 2 KB

GitHub Flavoured Markdown

How to add a collapsible section

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
    • Qux

Some Javascript

function logSomething(something) {
  console.log('Something', something);
}

2. Code/Markdown

<details>
  <summary>Click me</summary>
  
  ### Heading
  1. Foo
  2. Bar
     - Baz
     - Qux

  ### Some Javascript
  ```js
  function logSomething(something) {
    console.log('Something', something);
  }
  ```

</details>

REF: Gist

Alerts and Warnings

Like in Jira etc. you can get special highlights for notes, tips, important parts, warnings and alerts.

In GitHub-flavoured Markdown you use quote

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

It will render as follows:

Note

Useful information that users should know, even when skimming content.

Tip

Helpful advice for doing things better or more easily.

Important

Key information users need to know to achieve their goal.

Warning

Urgent info that needs immediate user attention to avoid problems.

Caution

Advises about risks or negative outcomes of certain actions.

REF: GitHub Documentation

Resources and References