Permalink
Browse files

change [[TOC]] to just TOC...

it's invalid markdown syntax and the new syntax file is complaining!
  • Loading branch information...
1 parent 77305c1 commit 8ca8f332f96b70da738c02eb5e78790dcd7e5505 @sitaramc committed Nov 22, 2012
Showing with 20 additions and 20 deletions.
  1. +1 −1 contrib/sskm.mkd
  2. +1 −1 cust.mkd
  3. +1 −1 dev-notes.mkd
  4. +1 −1 extras/glssh.mkd
  5. +1 −1 extras/sts.mkd
  6. +1 −1 g2migr-example.mkd
  7. +1 −1 g2migr.mkd
  8. +1 −1 install.mkd
  9. +1 −1 locking.mkd
  10. +1 −1 mirroring.mkd
  11. +4 −4 mkdoc
  12. +1 −1 non-core.mkd
  13. +1 −1 special.mkd
  14. +1 −1 triggers.mkd
  15. +1 −1 user.mkd
  16. +1 −1 vref.mkd
  17. +1 −1 why.mkd
View
@@ -11,7 +11,7 @@ The key management is done using a command called `sskm`. This command must be
----
-[[TOC]]
+TOC
----
View
@@ -11,7 +11,7 @@ the [developer notes][dev-notes] page).
----
-[[TOC]]
+TOC
----
View
@@ -1,6 +1,6 @@
# notes for developers
-[[TOC]]
+TOC
----
View
@@ -1,6 +1,6 @@
# #glssh how gitolite uses ssh
-[[TOC]]
+TOC
----
View
@@ -10,7 +10,7 @@ tricks that gitolite can do.
----
-[[TOC]]
+TOC
----
View
@@ -2,7 +2,7 @@
This shows what a typical migration would look like, using a test setup.
-[[TOC]]
+TOC
## existing setup
View
@@ -5,7 +5,7 @@ g2 and want to move to g3.** </font>
----
-[[TOC]]
+TOC
----
View
@@ -11,7 +11,7 @@ followed by [setup][], then [clone][].
----
-[[TOC]]
+TOC
----
View
@@ -21,7 +21,7 @@ containing source code.
----
-[[TOC]]
+TOC
## problem description
View
@@ -7,7 +7,7 @@ serious system admin things, well... good luck!</font>
----
-[[TOC]]
+TOC
----
View
8 mkdoc
@@ -27,9 +27,9 @@ Over and above plain markdown, this allows three extra features:
[some text][foo]
- * A line starting with
+ * A line containing just
- [[TOC]]
+ TOC
becomes an inline, indented, TOC just for that file.
@@ -141,8 +141,8 @@ sub main {
my $mkt = `cat $mkd`;
# the name tags are actually created here
$mkt =~ s/^(#+) #(\S+) /$1 <a name="$2"><\/a> /mg;
- # and the chapter toc is spliced in, if [[TOC]] exists
- $mkt =~ s/^\[\[TOC\]\]/$ct{$b}/mg;
+ # and the chapter toc is spliced in, if TOC exists
+ $mkt =~ s/^\s*TOC\s*$/$ct{$b}/mg;
open($fh, "|-", "$MKD >> $b.html")
and print $fh $mkt, "\n\n", $mf
and close $fh;
View
@@ -18,7 +18,7 @@
----
-[[TOC]]
+TOC
----
View
@@ -2,7 +2,7 @@
----
-[[TOC]]
+TOC
----
View
@@ -1,6 +1,6 @@
# gitolite triggers
-[[TOC]]
+TOC
## intro and sample rc excerpt
View
@@ -5,7 +5,7 @@ user" ;-)
----
-[[TOC]]
+TOC
----
View
@@ -6,7 +6,7 @@ who stop reading halfway!
----
-[[TOC]]
+TOC
----
View
@@ -1,6 +1,6 @@
# why might you need gitolite
-[[TOC]]
+TOC
----

0 comments on commit 8ca8f33

Please sign in to comment.