Textile numbered headers
Asked Answered
C

1

6

Like this similar question, but for textile, is it possible to instruct textile, that headers should be numbered?

So

h1. first section
h1. second section
h2. subsection

would be rendered like:

1. first section

2. second section

2.1. subsection

Comedy answered 18/2, 2013 at 15:28 Comment(0)
C
0

The easiest way is to use the <ol><li> tags, see below. Note there is a white space after the header tags .h1{space} that can't be seen in the example.

<ol> 

.h1 
<li>first section

.h1 
<li>second section

<ol>

h2. 
<li>subsection
Chromato answered 20/9, 2017 at 15:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.