5

How to Manage the TOC of Articles on dev.to?

 2 years ago
source link: https://dev.to/biros/help-how-to-manage-the-toc-of-articles-on-devto-6bp
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Boris Jamot ✊ /

Posted on Sep 7, 2018

• Updated on Oct 24, 2018

How to Manage the TOC of Articles on dev.to?

I know there is no current standard in Markdown to write Table Of Content, but does anyone knows a trick to do it on dev.to?
Could it work by using HTML anchors?
But how can I know the future URL of the article I'm currently writing?

Any help would be welcome :)

Discussion (4)

pic

CollapseExpand

You can use inline anchors with Markdown:

## TOC
  * [Chapter 1](#chapter-1)
  * [Chapter 2](#chapter-2)
  * [Chapter 3](#chapter-3)

### Chapter 1 <a name="chapter-1"></a>
Enter fullscreen modeExit fullscreen mode

This way you don't need to know the final URL

Comment button Reply

CollapseExpand

Thanks for the question and the answer.
I didn't know that trick and I am going to try it in my next post.

Comment button Reply

CollapseExpand

Thank you! This is just what I’ve been looking for.

Comment button Reply

CollapseExpand

The Editor Guide is also a nice resource to find out what's possible on dev.to: dev.to/p/editor_guide#markdown-links

Comment button Reply


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK