Amaury / SkrivMarkup

Interpreter of the Skriv Markup Language.
GNU Lesser General Public License v2.1
25 stars 3 forks source link

Is it possible to auto numerate titles ? #6

Open marmotz opened 11 years ago

marmotz commented 11 years ago

source:

=Title 1
==Title 2
===Title 3
==Title 4
===Title 5
=Title 6
==Title 7
===Title 8

wanted html:

<h1>1. Title 1</h1>
<h2>1.1 Title 2</h2>
<h3>1.1.1 Title 3</h3>
<h2>1.2 Title 4</h2>
<h3>1.2.1 Title 5</h3>
<h1>2. Title 6</h1>
<h2>2.1 Title 7</h2>
<h3>2.1.1 Title 8</h3>

(same thing for toc)

Amaury commented 11 years ago

It was not a high priority, but I can think about it.

Do you know if any other lightweight-markup languages support this functionality?

marmotz commented 11 years ago

easybook (with markdown) auto numerate, but i don't know if it's markdown or easybook.

it seems to me that redmine do that, but not sure...