From 5de3a669161b43d692f09de62eb0c45cfff23aca Mon Sep 17 00:00:00 2001 From: Jose Falanga Date: Tue, 4 Nov 2025 23:47:13 -0300 Subject: [PATCH] revert md on tocs --- lib/functions/subshell/build_page.sh | 2 +- lib/functions/subshell/build_toc.sh | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/functions/subshell/build_page.sh b/lib/functions/subshell/build_page.sh index 352db5a..f7a2b75 100644 --- a/lib/functions/subshell/build_page.sh +++ b/lib/functions/subshell/build_page.sh @@ -17,7 +17,7 @@ cd $(dirname $1) get_page_metadata $page if [[ $is_toc == "true" ]]; then - build_toc "$page" "$process_markdown" + build_toc "$page" elif [[ $process_markdown == "false" ]]; then build_header index.html cat $page | sed -e '1,/END ARISE/d' | cat >> index.html diff --git a/lib/functions/subshell/build_toc.sh b/lib/functions/subshell/build_toc.sh index 633fedc..382d435 100644 --- a/lib/functions/subshell/build_toc.sh +++ b/lib/functions/subshell/build_toc.sh @@ -12,7 +12,6 @@ build_toc() ( # Throw the metadata header together and add the source file to the list of files to remove in cleanup toc_source=$(basename $1) -append_markdown="$2" cd $(dirname $1) get_page_metadata $toc_source echo "$(realpath $toc_source)" >> $removelist @@ -43,12 +42,6 @@ done sort -r $toc_tmp >> index.html rm $toc_tmp -# After building TOC table -if [[ "$append_markdown" == "true" ]]; then - # append markdown content from the same page - sed -e '1,/END ARISE/d' "$toc_source" | pandoc -f markdown -t html >> index.html -fi - # Final page bits cat >> index.html <