summary refs log tree commit diff stats
path: root/gmi2html.awk
diff options
context:
space:
mode:
authorjwinnie <jwinnie@tilde.institute>2021-11-30 11:17:05 -0800
committerjwinnie <jwinnie@tilde.institute>2021-11-30 11:17:05 -0800
commit538501df2ccb80d3ddf910e989e87762d320e9c2 (patch)
treec5d6172ed35f8e09a7e28459e3bcfb152892b456 /gmi2html.awk
parent6a480e6bddbbc91e288063e511dfcf6c7d463e63 (diff)
parent29cdd995bec13064b7dbf9f36b5831388fb6d93c (diff)
downloadgmi2html-master.tar.gz
Merge branch 'master' of tilde.institute:public_repos/gmi2html HEAD master
Diffstat (limited to 'gmi2html.awk')
-rwxr-xr-xgmi2html.awk10
1 files changed, 5 insertions, 5 deletions
diff --git a/gmi2html.awk b/gmi2html.awk
index 0193e6e..cba6c20 100755
--- a/gmi2html.awk
+++ b/gmi2html.awk
@@ -21,12 +21,12 @@
 #   $ awk -f gmi2html.awk \
 #       -v title=<title> \
 #       -v css=<css> \
-#       -v url=<url> < path/to/gmi > path/to/html
+#       -v original=<original> < path/to/gmi > path/to/html
 #
 # parameters:
 #   <title>: the title of the document, used in the HTML <title>
 #   <css>: relative path to a CSS stylesheet
-#   <url>: URL of the original Gemini document, linked in the footer
+#   <original>: URL of the original Gemini document, linked in the footer
 
 # Begin HTML document
 BEGIN {
@@ -119,7 +119,7 @@ BEGIN {
 /^&gt;/ {
     sub(/^&gt;[ \t]*/, "")
 
-    printf "<blockquote><p>&ldquo;%s&rdquo;</p></blockquote>", $0
+    printf "<blockquote>%s</blockquote>", $0
     next
 }
 
@@ -147,7 +147,7 @@ BEGIN {
         text = url
     }
 
-    printf "<p><code>=&gt;</code> <a href=\"%s\">%s</a></p>", url, text
+    printf "<p><a href=\"%s\">%s</a></p>", url, text
     next
 }
 
@@ -174,5 +174,5 @@ Also available on <a href=\"gemini://%s\">Gemini</a>\
 </small>\
 </footer>\
 </body>\
-</html>", url
+</html>", original
 }