Skip to content

Commit

Permalink
chore(scripts): Update Pandoc ussage for current version
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Mar 30, 2022
1 parent b1d2bd0 commit 5057463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/split_chapters.zsh.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ i=0
of=$dir/000.md
chapters=()

@PANDOC@ $src --atx-headers --wrap=none --to=markdown --reference-location=document |
@PANDOC@ $src --markdown-headings=atx --wrap=none --to=markdown --reference-location=document |
while read line; do
# Stop processing if we've hit footnotes
[[ $line =~ "^\[\^1\]: .*" ]] && break
Expand All @@ -33,7 +33,7 @@ done
# Put footnotes in all files, renumber, and generally cleanup
for chapter in $chapters; do
>> $chapter < $src
@PANDOC@ $chapter --atx-headers --wrap=none --to=markdown |
@PANDOC@ $chapter --markdown-headings=atx --wrap=none --to=markdown |
@SPONGE@ $chapter
@GIT@ add $chapter
done
Expand Down

0 comments on commit 5057463

Please sign in to comment.