revert md on tocs

This commit is contained in:
Jose Falanga 2025-11-04 23:47:13 -03:00
parent 0369cbffd2
commit 5de3a66916
2 changed files with 1 additions and 8 deletions

View file

@ -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 <<EOF
</table>