Icon

Code

https://developers.notion.com/reference/block#code

Go:

func main() {
  v := "world"
	fmt.Printf("hello %s!", v)
}

Shell:

$ hostname
notion
$ ps auxf
....

TypeScript:

type Text = {
  href: string
  anotaion: {
    color: string
    bold: boolean
  }
}

SQL:

select id, created_at from users where username = 'notion';

Mermaid:

sequenceDiagram
    participant Alice
    participant Bob
    Alice->>John: Hello John, how are you?
    loop Healthcheck
        John->>John: Fight against hypochondria
    end
    Note right of John: Rational thoughts <br/>prevail!
    John-->>Alice: Great!
    John->>Bob: How about you?
    Bob-->>John: Jolly good!