<hN>1. This is section one</hN>
<hN>2. This is section two</hN>
If I do that in the wiki the table of contents will display:
1. 1. This is section one
2. 2. This is section two
which is obviously not what I want. What is the solution?
I want to keep as close to (HTML) markup as possible, so (wiki-specific) markdown only if there is no other way. The only markdown I used sofar are the leading blank to switch to a source environment and the table environment.
"I want to keep as close to (HTML) markup as possible, so (wiki-specific) markdown only if there is no other way."
Me too. I generally find HTML tags easier to use and more "sensible" than the "strange" Wiki markup system.
To the issue at hand:
Usually you let the Wiki do the (automatic) numbering by setting "Auto-number heading" in the user preferences. Each user can do this themselves but I suppose you could also set it as default in LocalSettings.php, see http://en.wikipedia.org/wiki/Help:Section#Numbering for details.
And there's also a useful extension for forcing numbered headings on any page using the magic word "__NUMBEREDHEADINGS__" (http://www.mediawiki.org/wiki/Extension:MagicNumberedHeadings ). But that extension is not installed on Moodle Docs.
(BTW theres also an extension for the opposite behavior: http://www.mediawiki.org/wiki/Extension:MagicNoNumberedHeadings ).
Thanks for the pointers!
Section numbering as a user preference! That never occured to me. Yes, that works.
But the other "magic" not, not on Moodle Docs. Not a big problem though.
Visvanath "Section numbering as a user preference! That never occured to me. Yes, that works."
+1 for me too
All those years I've been browsing (and contributing to) the Moodle wiki documentation without noticing that "my preferences" page.