Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Colab headers don't show prepended number in Table of Contents

In Google Colaboratory, I like to create markdown section headers with a prepended number, like so:

# 1. My Notebook

-----

## 1. My section

However, when I look at the Table of Contents pane, the number does not show up.

enter image description here

When I instead use a letter, such as "A", the letter does show up.

enter image description here

How do I fix it so that the prepended numerals (e.g. 1.) show up in the Table of Contents?

like image 457
stackoverflowuser2010 Avatar asked Dec 17 '25 14:12

stackoverflowuser2010


1 Answers

You can write it like this:

# 1. Heading
## 1.1 Sub-Heading

Using   to replace the space.

like image 131
Difagama Avatar answered Dec 19 '25 05:12

Difagama



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!