# How to use both \<div\> and link with data-theme features

**URL:** <https://meta.discourse.org/t/how-to-use-both-div-and-link-with-data-theme-features/312592>\
**Category:** Product Support\
**Created:** [June 18, 2024, 5:04pm UTC](https://meta.discourse.org/t/how-to-use-both-div-and-link-with-data-theme-features/312592 "2024-06-18T17:04:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [June 18, 2024, 5:48pm UTC](https://meta.discourse.org/t/how-to-use-both-div-and-link-with-data-theme-features/312592/3 "2024-06-18T17:48:27Z")

</div>

I think if you have anything on the line with the opening div you should be fine, e.g.:

```markdown
This is some text <div>
This is a very cool [link](https://example.com)!
</div>

```

Becomes:

> [@](#):
>
> This is some text
> 
>   
> This is a very cool [link](https://example.com)!

Or even a gapped div should work:

```markdown
This is some text
<div>

This is a very cool [link](https://example.com)!
</div>

```

Becomes:

> [@](#):
>
> This is some text
> 
> This is a very cool [link](https://example.com)!

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-both-div-and-link-with-data-theme-features/312592)._
