commit 7c6095957ce9e784362b7baff2b4b14ec09faa54
parent 8e5e3781af04d626984431caca15d7ea053a7326
Author: David Eisinger <[email protected]>
Date: Mon, 17 Feb 2025 01:19:20 -0500
link/code gmi bugfix
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/content/elsewhere/email-photos-to-an-s3-bucket-with-aws-lambda-with-cropping-in-ruby/index.md b/content/elsewhere/email-photos-to-an-s3-bucket-with-aws-lambda-with-cropping-in-ruby/index.md
@@ -74,9 +74,9 @@ It's a lot, to be sure, but it comes together pretty easily:
ImageMagick as a layer[^1] and bump the memory and timeout (I used 512 MB
and 30 seconds, respectively, but you should use whatever makes you
feel good in your heart).
-8. Create a couple environment variables: `BUCKET` should be name of
+8. <span>Create a couple environment variables: `BUCKET` should be name of
the S3 bucket you want to upload photos to, and `AUTHORIZED_EMAILS`
- to hold all the valid email addresses separated by semicolons.
+ to hold all the valid email addresses separated by semicolons.</span>
9. Give your function permissions to read and write to/from the two
buckets.
10. And finally, the code. We'll manage that locally rather than using
diff --git a/themes/v2/layouts/partials/gemtext.gmi b/themes/v2/layouts/partials/gemtext.gmi
@@ -26,7 +26,7 @@
{{- end -}}
{{- /* Convert links */ -}}
-{{- $content = $content | replaceRE `\[([^\]]+)\]\[(\d+)\]` "$1[$2]" -}}
+{{- $content = $content | replaceRE `([^\w])\[([^\]]+)\]\[(\d+)\]` "$1$2[$3]" -}}
{{- $content = $content | replaceRE `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}}
{{- $content = $content | replaceRE `\[([^\]]+)\]\([^\)]+\)` "$1" -}}
@@ -47,6 +47,7 @@
{{- /* Misc. markup fixes */ -}}
{{- $content = $content | replaceRE `<!--more-->\n+` "" -}}
+{{- $content = $content | replaceRE `<[/]?span>` "" -}}
{{- $content = $content | replaceRE `(?m)^ >` ">" -}}
{{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
{{- $content = $content | replaceRE `(?m)^- ` "* " -}}