# More than two levels of \[details\]

**URL:** https://meta.discourse.org/t/more-than-two-levels-of-details/152421
**Category:** Support
**Created:** [May 23, 2020, 8:39am UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421 "2020-05-23T08:39:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Humpe](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@Humpe](https://meta.discourse.org/u/Humpe)
#### Post date: [May 23, 2020, 8:39am UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421/1 "2020-05-23T08:39:19Z")

</div>

Hi @ll,

to categorize things within a single post, I would like to use the [details] tag to create many sub-levels. However, the Discourse code stops interpreting the [details] tag after two sub-levels. Is there any way to work around this or maybe an extra app that can be installed to allow such a functionality?

Thanks for your time!

Cheers  
Humper

---

<div class="post-metadata">

### Author: ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)
#### Post date: [May 23, 2020, 11:38am UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421/2 "2020-05-23T11:38:41Z")

</div>

> **1**
>
> > **2**
> >
> > > **3**
> > >
> > > > **4**
> > > >

* * *

Works fine for me ^

---

<div class="post-metadata">

### Author: ![Humpe](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@Humpe](https://meta.discourse.org/u/Humpe)
#### Post date: [May 23, 2020, 12:17pm UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421/3 "2020-05-23T12:17:56Z")

</div>

Thomas, these are not separate levels, what I am talking about are indented “levels”.

- 

> **1**
>
> - 
> 
> > **1.1**
> >
> > - 1.1.1
> > - 1.1.2
> > - 1.1.3
> 
> - 
> 
> > **1.2**
> >
> 
> - 
> 
> > **1.3**
> >
> 
> - 
> 
> > **1.4**
> >
> 
> - 
> 
> > **1.5**
> >
> 
> - 
> 
> > **1.6**
> >

I want to go beyond 1.1.x but that doesnt seem to work here.

- 

> **1**
>
> - 
> 
> > **1.1**
> >
> > - [details=“1.1.1”]
> > - 1.1.1.1
> 
> - 1.1.2
> - 1.1.3  
> [/details]
> 
> - 
> 
> > **1.2**
> >
> 
> - 
> 
> > **1.3**
> >
> 
> - 
> 
> > **1.4**
> >
> 
> - 
> 
> > **1.5**
> >
> 
> - 
> 
> > **1.6**
> >

---

<div class="post-metadata">

### Author: ![Thomas\_G](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomas_g/32/200158_2.png) [@Thomas\_G](https://meta.discourse.org/u/Thomas_G)
#### Post date: [May 23, 2020, 1:50pm UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421/4 "2020-05-23T13:50:28Z")

</div>

Again, works for me:

- 

> **1**
>
> - 
> 
> > **1.1**
> >
> > - 
> > 
> > > **1.1.1**
> > >
> > > - 1.1.1.1
> > 
> > - 1.1.2
> > - 1.1.3
> 
> - 
> 
> > **1.2**
> >
> 
> - 
> 
> > **1.3**
> >
> 
> - 
> 
> > **1.4**
> >
> 
> - 
> 
> > **1.5**
> >
> 
> - 
> 
> > **1.6**
> >

* * *

You just need to play a little with the alignment. This topic should also be moved to #Support.

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [May 23, 2020, 2:05pm UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421/5 "2020-05-23T14:05:05Z")

</div>

One trick that I try to teach the users on our site that want to do advanced Markdown or see how some advanced HTML feature was done is to use the `raw` view of the page.

This is the URL to the preceding post: `https://meta.discourse.org/t/more-than-two-levels-of-details/152421/4`

This is the URL to the preceding post as `raw`: `https://meta.discourse.org/raw/152421/4`

* * *

If you look at the columns of the `posts` table in PostgreSQL you will see there are two columns that hold the text for a post, `raw` and `cooked`. `raw` is the text as entered by a user and typically contains the markdown and HTML as entered by the user.

However when you see the post as normally displayed it has been cooked to some degree and you can not see the raw text, even if you use the Internet browsers ability to reveal the HTML.

Now sometimes one can use the menu items in the edit menu bar to drop some template HTML into place and sometimes you just have to do it by hand.

HTH

* * *

**EDIT**

For all the theme creators.

A theme that adds a button to view the post as raw would be nice. The theme should have a configuration option to limit visibility of button based on trust level or categories.

* * *

**EDIT**

For those wanting to see the [Raw post button](https://meta.discourse.org/t/raw-post-button/152542) theme (noted below) working on a more complex page see the SWI-Prolog Discourse page: [Post for testing installed component themes and plugins](https://swi-prolog.discourse.group/t/post-for-testing-installed-component-themes-and-plugins/2358)

Note: Since anonymous users can not see the raw button, you will need to simply join.

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [May 23, 2020, 2:21pm UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421/6 "2020-05-23T14:21:01Z")

</div>

Another option that you may not know about is the theme [DiscoTOC - automatic table of contents](https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143).

It is one of the most popular themes because it is just that useful.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [May 24, 2020, 9:08pm UTC](https://meta.discourse.org/t/more-than-two-levels-of-details/152421/7 "2020-05-24T21:08:17Z")

</div>

> [@EricGT](#):
>
> For all the theme creators.
> 
> A theme that adds a button to view the post as raw would be nice. The theme should have a configuration option to limit visibility of button based on trust level or categories.

I thought this would be a good opportunity for a theme component that explains / serves as an example of how to approach a problem like this one, so I made this.

> [@Raw Post Button](https://meta.discourse.org/t/raw-post-button/152542):
>
> discourse2Summary Raw Post Button will add a button to the post menu. When you click the button, you’ll get a modal / popover with the raw (markdown) version of the post.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/raw-post-button)hammer_and_wrenchRepository Link [https://github.com/discourse/raw-post-button](https://github.com/discourse/raw-post-button)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features Settings …
