Commit Graph

79 Commits

Author SHA1 Message Date
Alex Schroeder
635b3d50b4 (TocRule): Prevent H1. 2005-12-28 01:51:28 +00:00
Alex Schroeder
479ff98da6 (TocRule, TocHeadings): Change how anchor names are determined to
rule out conflicts with included pages such as the sidebar.
2005-12-08 12:42:36 +00:00
Alex Schroeder
691badf54a (TocRule): Only set $TocShown if $TocAutomatic is
true, and therefore a table of contents has in fact been shown.
This solves the problem of <toc> only working before the first
heading (and requiring no headings in the sidebar).
2005-12-08 10:34:49 +00:00
Alex Schroeder
f87673f345 (TocRule): Try to avoid empty element shorthand
for anchor id when $UseModMarkupInTitles is set.
2005-09-14 17:10:59 +00:00
Alex Schroeder
7a2183a120 (TocRule): Revers order of match and InElement
check as suggested by Markus Lude.  Without this patch, single
equal signs are eaten when $UseModMarkupInTitles is true.
2005-09-04 02:21:44 +00:00
Alex Schroeder
973f9d61cc ($TocAutomatic): New option to control whether the table of
contents is inserted automatically.
2005-08-28 17:38:22 +00:00
Alex Schroeder
458567ff46 (TocRule): Added <toc> rule. Fixed some markup
bugs (such that the toc div will now come after the closing of the
portrait div instead of nested within.
(TocHeadings): Protected pos in order to make this sub usable in
TocRule without the pos remembering workaround.
2005-08-28 17:31:01 +00:00
Alex Schroeder
a239f2782c (TocRule): Move TOC to just before the first
header.
(NewTocGetHeader): Deleted.
(TocHeadings): No longer take an argument.
2005-08-25 16:27:59 +00:00
Alex Schroeder
3f61118d27 (TocRule): AddHtmlEnvironment('p') 2004-12-05 04:03:32 +00:00
Alex Schroeder
9d6172cc13 (TocRule): Reset $PortraitSupportColor after
headers.
2004-12-03 08:43:33 +00:00
Alex Schroeder
bb2bd3bad5 ($MyColorDiv): Renamed to $PortraitSupportColorDiv. 2004-11-27 21:25:07 +00:00
Alex Schroeder
a02dc827ed (TocRule): Added PortraitSupportColorDiv support. 2004-11-27 21:18:02 +00:00
Alex Schroeder
b7c1ea6992 ($TocCounter): New variable.
(TocRule): Use it to provide an ID to the toc entry.
(TocWikiHeading): Deleted.
(TocHeadings): Use ID instead of encoded text.
2004-11-27 00:57:15 +00:00
Alex Schroeder
51e54c4fa3 (TocWikiHeading): Don't UrlEncode the anchor name. 2004-11-25 19:49:32 +00:00
Alex Schroeder
03f0dd9646 (TocHeadings, TocWikiHeading): Use FreeToNormal
on the anchor name.
2004-11-25 19:09:54 +00:00
Alex Schroeder
5cbc40d6b7 whitespace 2004-11-01 03:22:46 +00:00
Alex Schroeder
d57a3fb816 perltidy -pt=2 -ce -b toc.pl 2004-10-31 19:34:15 +00:00
Alex Schroeder
683a7f8067 (TocHeadings): Removed debugging info. 2004-10-31 19:31:01 +00:00
Alex Schroeder
660ab95d1f (TocRule): Call TocWikiHeading instead of
WikiHeading.
(TocHeadings): If the first subtitle is a H1, assume that this is
the "start".
2004-10-31 19:20:45 +00:00
Tilmann Holst
60effe6785 toc.pl now plays nicely with usemod.pl. Copied headings code from
usemod.pl.
Now there is a difference between h1 and h2 in the toc.
----------------------------------------------------------------------
2004-10-31 17:58:26 +00:00
Alex Schroeder
17590dbb6e (TocHeadings): Quote text in TOC. 2004-08-06 11:50:58 +00:00
Alex Schroeder
e489cf9ba8 Set %RuleOrder, use a normal rule instead of overwriting functionality
in usemod.pl.
2004-07-14 14:55:56 +00:00
Alex Schroeder
5e4186fa3f (TocHeadings): Return nothing if two headings or
less.
2004-04-03 10:51:21 +00:00
Alex Schroeder
1e9e202925 bugfixes 2004-03-12 11:17:33 +00:00
Alex Schroeder
aaea30ded4 escaping nowiki, pre, and code is non-greedy now. 2004-03-12 11:05:21 +00:00
Alex Schroeder
849143ae87 NewTocWikiHeading 2004-02-09 20:41:36 +00:00
Alex Schroeder
5468e29bd3 added linking 2004-02-09 20:38:40 +00:00
Alex Schroeder
eb7aa958cc OldTocGetHeader 2004-02-09 20:31:19 +00:00
Alex Schroeder
0938829975 new 2004-02-09 20:25:16 +00:00