summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hedgedoc2quarto.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/hedgedoc2quarto.sh b/bin/hedgedoc2quarto.sh
new file mode 100755
index 0000000..eac4b33
--- /dev/null
+++ b/bin/hedgedoc2quarto.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -eu
+
+perl -gp \
+ -e 's/```\Kmermaid/{mermaid}\n%%| fig-width: 100%/g;'\
+ -e 's/^gantt$/gantt\ntickInterval 1month/gm;'