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 index 2cebb68..54b1bd8 100644 --- 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. 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. 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 index 6ffb7fa..d908d60 100644 --- 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 `\n+` "" -}} +{{- $content = $content | replaceRE `<[/]?span>` "" -}} {{- $content = $content | replaceRE `(?m)^ >` ">" -}} {{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}} {{- $content = $content | replaceRE `(?m)^- ` "* " -}}