link/code gmi bugfix

This commit is contained in:
David Eisinger
2025-02-17 01:19:20 -05:00
parent 8e5e3781af
commit 7c6095957c
2 changed files with 4 additions and 3 deletions

View File

@@ -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 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 and 30 seconds, respectively, but you should use whatever makes you
feel good in your heart). 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` 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 9. Give your function permissions to read and write to/from the two
buckets. buckets.
10. And finally, the code. We'll manage that locally rather than using 10. And finally, the code. We'll manage that locally rather than using

View File

@@ -26,7 +26,7 @@
{{- end -}} {{- end -}}
{{- /* Convert links */ -}} {{- /* 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 `(?m)^\[(\d+)\]: (.*)$` "=> $2 [$1] $2" -}}
{{- $content = $content | replaceRE `\[([^\]]+)\]\([^\)]+\)` "$1" -}} {{- $content = $content | replaceRE `\[([^\]]+)\]\([^\)]+\)` "$1" -}}
@@ -47,6 +47,7 @@
{{- /* Misc. markup fixes */ -}} {{- /* Misc. markup fixes */ -}}
{{- $content = $content | replaceRE `<!--more-->\n+` "" -}} {{- $content = $content | replaceRE `<!--more-->\n+` "" -}}
{{- $content = $content | replaceRE `<[/]?span>` "" -}}
{{- $content = $content | replaceRE `(?m)^ >` ">" -}} {{- $content = $content | replaceRE `(?m)^ >` ">" -}}
{{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}} {{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
{{- $content = $content | replaceRE `(?m)^- ` "* " -}} {{- $content = $content | replaceRE `(?m)^- ` "* " -}}