mgaitan / waliki

A wiki engine powered by Django and Git
http://waliki.pythonanywhere.com
BSD 3-Clause "New" or "Revised" License
309 stars 56 forks source link

Inconsistent heading sizes #116

Open ostrokach opened 8 years ago

ostrokach commented 8 years ago

It appears to me that waliki produces incorrect heading levels when using rst.

For example, say you have a page Demo with the following contents:

Main Title
==========

Title 1
-------

Subtitle 1
^^^^^^^^^^

Subtitle 2
^^^^^^^^^^

In the produced html, "Demo" will be <h1>,"Main Title" will be <h2>, "Title 1" will be <h3>, but then "Subtitle 1" and "Subtitle 2" will be <h2> again, instead of <h4> as I would expect.

Is there a reason behind this?

Also, I think it would be very useful if there was an option to use "Main Title" as the main title, rather than "Demo". I saw the title_in_file branch, but it's far behind the master and is not updated any more. Is there a way to make this an option in the configuration file and merge it with the main branch?

Thanks for all your work!