mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-18 06:20:41 +01:00
misc/git-md-toc: fix indentation; skip README.md unless explicitly specified
This commit is contained in:
parent
a6c532d67e
commit
2afb5dc3f7
4
misc/git-md-toc
vendored
4
misc/git-md-toc
vendored
@ -153,6 +153,9 @@ foreach ( @ARGV ) {
|
||||
|
||||
$filename = $_;
|
||||
|
||||
# skip README.md unless it is the only file explicitly specified
|
||||
next if @ARGV > 1 and $filename eq 'README.md';
|
||||
|
||||
my $clean_text = $orig_text;
|
||||
|
||||
# skip code fencing
|
||||
@ -192,6 +195,7 @@ foreach ( @ARGV ) {
|
||||
[ \t\r]*
|
||||
(?=\n)
|
||||
}mgx ) {
|
||||
|
||||
my $depth;
|
||||
my $indent;
|
||||
my $title;
|
||||
|
Loading…
x
Reference in New Issue
Block a user