# \[toc\] available in markdown

**URL:** <https://discourse.joplinapp.org/t/toc-available-in-markdown/23411>\
**Category:** Features\
**Created:** [31 January 2022 01:43 UTC](https://discourse.joplinapp.org/t/toc-available-in-markdown/23411 "2022-01-31T01:43:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![graphit0](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/graphit0/32/3435_2.png) [@graphit0](https://discourse.joplinapp.org/u/graphit0)\
**Post date:** [31 January 2022 06:36 UTC](https://discourse.joplinapp.org/t/toc-available-in-markdown/23411/2 "2022-01-31T06:36:25Z")

</div>

TL DR:

OP wants

1. to keep focus when switching from preview to editor on mobile.  
Let me link it to the main topic about mobile improvements: [Mobile app functionality improvements](https://discourse.joplinapp.org/t/mobile-app-functionality-improvements/22221)

2. to keep contents of `[[toc]]` in markdown editor

Here's some non-official behaviour you can use as a workaround for this:

- insert `[[toc]]` into markdown editor
- switch to rich text editor
- change one of the headings (for example add a space to one of them)
- done, now you you have contents of `[[toc]]` in markdown editor with links to headings

[https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/8/887c1786bef892901519cf0ed981b717c5f07a45.mp4](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/8/887c1786bef892901519cf0ed981b717c5f07a45.mp4)

---

_[View the full topic](https://discourse.joplinapp.org/t/toc-available-in-markdown/23411)._
