From 1d4661b2bad4cbf548b70d58ef36cd8eadae5978 Mon Sep 17 00:00:00 2001 From: Anders Damsgaard Date: Sun, 26 Apr 2020 11:08:13 +0200 Subject: [PATCH] Allow slide breaks with #pause Signed-off-by: Christoph Lohmann <20h@r-36.net> --- bin/md2point | 5 +++++ examples/hello/0004-_Ende.txt | 8 ++++++++ examples/hello/hello.md | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 examples/hello/0004-_Ende.txt diff --git a/bin/md2point b/bin/md2point index 4af5346..b5da27b 100755 --- a/bin/md2point +++ b/bin/md2point @@ -29,6 +29,11 @@ do printf "\n %s\n %s\n\n" \ "$title" "$(mkunderline $titlelen "=")" >> $fname ;; + \#pause) + fname="$(mkfilename "$snum" "$title")" + cat "$(mkfilename "$((snum - 1))" "$title")" >> $fname + snum=$((snum + 1)) + ;; *) [ -n "$fname" ] && \ printf " %s\n" "$line" \ diff --git a/examples/hello/0004-_Ende.txt b/examples/hello/0004-_Ende.txt new file mode 100644 index 0000000..ac332b2 --- /dev/null +++ b/examples/hello/0004-_Ende.txt @@ -0,0 +1,8 @@ + + Ende + ====== + + + Thanks for using cattools. + + The end. diff --git a/examples/hello/hello.md b/examples/hello/hello.md index adef931..3802cee 100644 --- a/examples/hello/hello.md +++ b/examples/hello/hello.md @@ -19,3 +19,5 @@ Just show something on this new slide. Thanks for using cattools. +#pause +The end.