summaryrefslogtreecommitdiff
path: root/genpage.sh
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-04-01 08:26:51 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-04-01 08:26:51 -0300
commit9444b234f082c6d9670d0e33a3979be96b48eb06 (patch)
treece1456a23c7e0b42b407c78f0fd2de656f9d8b1e /genpage.sh
parent1a220035bd519a7cea8fb526274c58dc3679bbbb (diff)
centralizar imagens soltas
Diffstat (limited to 'genpage.sh')
-rwxr-xr-xgenpage.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/genpage.sh b/genpage.sh
new file mode 100755
index 0000000..6ccc198
--- /dev/null
+++ b/genpage.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+put_image_container() {
+ sed 's!<p><img src="\(.*\)" alt="\(.*\)" /></p>!<div class="image-container"><img src="\1" alt="\2"/></div>!g'
+}
+
+markdown | \
+ put_image_container