Rendering of Markdown links inside HTML tags doesn't work as expected
Markdown links e.g. in comments are sometimes not rendered properly when inside HTML elements such as `<details>`. Adding a blank line around the link seems to solve the problem.
<!-- These examples deliberately use <a> instead of [foo] so that they will illustrate the issue even after the rendering has been fixed. -->
### Example 1
**Input:**
```
<details>
[foo]
</details>
[foo]: https://foo.org
```
**Expected output:**
<details>
<a href="https://foo.org">foo</a>
</details>
**Actual output:**
<details>
[foo]
</details>
### Example 2
**Input:**
```
<details>
[foo]
</details>
[foo]: https://foo.org
```
**Expected output:**
<details>
<a href="https://foo.org">foo</a>
</details>
**Actual output:**
<details>
<a href="https://foo.org">foo</a>
</details>
---
**Affected versions:** 18.2, 18.4
issue