summaryrefslogtreecommitdiff
path: root/bin/hedgedoc2quarto.sh
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-03-12 01:36:04 +0100
committerJonas Smedegaard <dr@jones.dk>2024-03-12 01:36:04 +0100
commitd4dfd5ba7fd8e25939eac17b4068d4ebaf43f1e3 (patch)
tree2c9dd33c70df66c0595e33986beed6d19cc0333b /bin/hedgedoc2quarto.sh
parentc7353f6503e55be0bd94cb7eeef6fe40990b0b85 (diff)
add Gantt diagram to code report
Diffstat (limited to 'bin/hedgedoc2quarto.sh')
-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;'