updated markdown_generate_index.sh

pull/16/head
Hari Sekhon 1 month ago
parent 6fe4854735
commit 30696d408e

@ -35,12 +35,12 @@ help_usage "$@"
max_args 1 "$@" max_args 1 "$@"
readme="${1:-README.md}" markdown_file="${1:-README.md}"
indent_width=2 indent_width=2
# tail -n +2 takes off the first line which is the header we definitely don't want in the index # tail -n +2 takes off the first line which is the header we definitely don't want in the index
grep '^#' "$readme" | grep '^#' "$markdown_file" |
tail -n +2 | tail -n +2 |
# don't include main headings # don't include main headings
#sed '/^#[[:space:]]/d' | #sed '/^#[[:space:]]/d' |

Loading…
Cancel
Save