# Can't use detail and summary tags in Markdown

**URL:** <https://discourse.joplinapp.org/t/cant-use-detail-and-summary-tags-in-markdown/42558>\
**Category:** Support\
**Created:** [17 December 2024 16:42 UTC](https://discourse.joplinapp.org/t/cant-use-detail-and-summary-tags-in-markdown/42558 "2024-12-17T16:42:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![that\_newbie](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@that\_newbie](https://discourse.joplinapp.org/u/that_newbie)\
**Post date:** [17 December 2024 16:42 UTC](https://discourse.joplinapp.org/t/cant-use-detail-and-summary-tags-in-markdown/42558/1 "2024-12-17T16:42:32Z")

</div>

### Operating system

macOS

### Joplin version

3.1.24

### Editor

Rich Text Editor

### What issue do you have?

I'm trying to create collapsible sections using the Markdown editor to view in the Rich Text editor using the `<detail>` and `<summary>` tags. As an example I'm using the below code that I found in a working example on Github:

```
<details><summary>Toggle me!</summary> Peek a boo!</details>

```

In Joplin it just isn't working for me - it's displaying as two separate sentences on each line, like this:

▼ Toggle me!  
Peek a boo!

But if I view an older version of the note with the same code, it works in the preview window.

Is there anything else I should do?

I have userstyle.css updated to use a different font and color in the Rich Text Editor, but these styles are still used in the preview window for the different versions so I'm not sure what could be the issue.

---

<div class="post-metadata">

**Author:** ![that\_newbie](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@that\_newbie](https://discourse.joplinapp.org/u/that_newbie)\
**Post date:** [17 December 2024 19:55 UTC](https://discourse.joplinapp.org/t/cant-use-detail-and-summary-tags-in-markdown/42558/2 "2024-12-17T19:55:49Z")

</div>

I figured this out - I was toggling between both editors and not the viewer. It works as expected in the viewer.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [16 January 2025 19:56 UTC](https://discourse.joplinapp.org/t/cant-use-detail-and-summary-tags-in-markdown/42558/3 "2025-01-16T19:56:35Z")

</div>

Closed on 16 January 2025 19:56 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
