1

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?

stackoverflowuser2010
  • 38,621
  • 48
  • 169
  • 217

2 Answers2

1

You can write it like this:

# 1. Heading
## 1.1 Sub-Heading

Using   to replace the space.

Difagama
  • 41
  • 2
0

This works for me

#@title strategy
Brett
  • 1,717
  • 1
  • 26
  • 38