# Exploring TOC Issues

**URL:** https://meta.discourse.org/t/exploring-toc-issues/276757
**Category:** UX
**Tags:** disco-toc
**Created:** [August 26, 2023, 11:37am UTC](https://meta.discourse.org/t/exploring-toc-issues/276757 "2023-08-26T11:37:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 26, 2023, 11:37am UTC](https://meta.discourse.org/t/exploring-toc-issues/276757/1 "2023-08-26T11:37:41Z")

</div>

I think there are some strange issues when you add text in the line following the TOC. You need to look at the [raw post](https://meta.discourse.org/raw/276757) to spot all the problems.

 
I added a TOC in the line above. Now, I start a new line, but the text shows as one line. There are problems with formatted code, so you cannot see `` or ``` ``` . Although I used code tags. When I use a without an end and leave a line free, 

the text below remains dark in dark themes.

---

<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: [August 26, 2023, 7:54pm UTC](https://meta.discourse.org/t/exploring-toc-issues/276757/3 "2023-08-26T19:54:08Z")

</div>

> [@Moin](#):
>
> I added a TOC in the line above. Now, I start a new line, but the text shows as one line.

I’ve seen a similar issue to this before, and I have a few scenarios for it:

1. `<ex>` Then text:

Some `unformatted` text \*\*here\*\*. This is a different line. `` ``` ```

A _double_ newline fixes this.

2. Text before `<ex>`

**formatted** _before_  
  
**Still formatted** _after_ `<With code>`

```plaintext
<With long code>

```

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [August 27, 2023, 2:55am UTC](https://meta.discourse.org/t/exploring-toc-issues/276757/4 "2023-08-27T02:55:27Z")

</div>

This is just the bug(feature?) of mixing markdown and HTML. The second line is recognized as a part of html.

```plaintext
<div>
This is just the bug(feature?) of mixing markdown and HTML.
The second line is recognized as a part of html.

```
