minor fixup to mkdoc; also pulled in Markdown.pl

This commit is contained in:
Sitaram Chamarty 2012-03-25 05:09:58 +05:30
parent 4f7d3d8651
commit 863a732080
2 changed files with 1453 additions and 5 deletions

1450
doc/Markdown.pl Executable file

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,8 @@
#!/usr/bin/perl #!/usr/bin/perl
my $MKD = "$ENV{HOME}/Markdown.pl"; # cd <g3 clone>/doc; ./mkdoc # --> creates ../html/*.html
# run this like so: my $MKD = "./Markdown.pl";
# $0 *.mkd >mt.mkd 2>mf
use 5.10.0; use 5.10.0;
use strict; use strict;
@ -37,7 +35,7 @@ while (<>) {
: "$3" : "$3"
); );
$mt .= "\n"; $mt .= "\n";
$mf .= "[$2]: $b.html#$2\n" if $2; $mf .= "[$2]: $b.html" . ($2 ne $b ? "#$2" : "") . "\n" if $2;
} }
} }
} }