code-block-inside-namedblock

CodeBlock inside a NamedBlock is legal; NamedBlock base offset is stripped from content lines

§4.4 · source

Input

:::note
  ```js
  const x = 1
  ```
:::

Output AST

- type: NamedBlock
  name: note
  children:
    - type: CodeBlock
      language: js
      raw: const x = 1