When writing a formula like this, it will be treated as one single paragraph.

```
This is a matrix
$$ A = \begin{matrix} 1 & 2 \\ 3 & 4 \end{matrix}. $$
```

However, when I write the formula within several lines (to make the code look nicer), the formula itself will creat a new paragraph.

```
This is a matrix
$$
A = \begin{matrix}
1 & 2 \\
3 & 4
\end{matrix}.
$$
```

Sometime I write a theorem using such formulae, and then refer to the theorem using a link `[[^label]]`

. However, the link can only refer to one paragraph. The problem make the theorem to be separated into several paragraphs. This means that I am only allowed to see the partial theorem by pressing `ctrl`

on the link.

Curently, the problem can be solved by adding intentation to the formula. However, this is *not compatible* with some other markdown readers. For example, in VSCode a `$$ ... $$`

block should not have any indentation, unless the *Markdown Preview Enhanced* extension has been installed.

```
This is a matrix
$$
A = \begin{matrix}
1 & 2 \\
3 & 4
\end{matrix}.
$$
```

I believe this is a bug, because VSCode does not have the same problem with the *Markdown Preview Enhanced* extension.