I think if you have anything on the line with the opening div you should be fine, e.g.:
This is some text <div>
This is a very cool [link](https://example.com)!
</div>
Becomes:
Or even a gapped div should work:
This is some text
<div>
This is a very cool [link](https://example.com)!
</div>
Becomes: