Allow slide breaks with #pause - pointtools - Simple point utilities to hold text presentations.
HTML git clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 1d4661b2bad4cbf548b70d58ef36cd8eadae5978
DIR parent a95572477bff2598efa67d54288315a8aec86a54
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 26 Apr 2020 11:08:13 +0200
Allow slide breaks with #pause
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M bin/md2point | 5 +++++
A examples/hello/0004-_Ende.txt | 8 ++++++++
M examples/hello/hello.md | 2 ++
3 files changed, 15 insertions(+), 0 deletions(-)
---
DIR diff --git 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" \
DIR diff --git a/examples/hello/0004-_Ende.txt b/examples/hello/0004-_Ende.txt
@@ -0,0 +1,8 @@
+
+ Ende
+ ======
+
+
+ Thanks for using cattools.
+
+ The end.
DIR diff --git 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.