From f7b18ba94ea08414cb1f1f93954e7527a23a5a54 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Tue, 28 Jun 2022 06:37:06 -0600 Subject: [PATCH] Refresh test fixtures for chroma v2.2.0 Missing semicolons have been added since chroma v2.0.1 --- blorg/testdata/public.md5 | 2 +- blorg/testdata/public/about.html | 176 +++++++++++++++---------------- go.mod | 2 +- go.sum | 4 +- 4 files changed, 92 insertions(+), 92 deletions(-) diff --git a/blorg/testdata/public.md5 b/blorg/testdata/public.md5 index a9abe17..3b653b8 100644 --- a/blorg/testdata/public.md5 +++ b/blorg/testdata/public.md5 @@ -1,4 +1,4 @@ -8a40ba056a514e37926f908c65f76ffe testdata/public/about.html +2ca8531fdbcfcae02959ba8c810dda76 testdata/public/about.html b93d8331258932e6bb18d866329b5e4e testdata/public/another-post.html a4e5753838107f8cf44f8dfabc577c04 testdata/public/index.html 6e770ea67bb154191530585cc60c8c2f testdata/public/some-post.html diff --git a/blorg/testdata/public/about.html b/blorg/testdata/public/about.html index c7e6abf..d19d1e6 100644 --- a/blorg/testdata/public/about.html +++ b/blorg/testdata/public/about.html @@ -29,110 +29,110 @@ This site is generated from go-org/blorg/testdata/content using the configuration in blorg.org

-
#+AUTHOR: testdata
-#+TITLE: blorg
-#+BASE_URL: /go-org/blorg
-#+OPTIONS: toc:nil title:nil
-#+CONTENT: ./content
-#+PUBLIC: ./public
+
#+AUTHOR: testdata
+#+TITLE: blorg
+#+BASE_URL: /go-org/blorg
+#+OPTIONS: toc:nil title:nil
+#+CONTENT: ./content
+#+PUBLIC: ./public
 
-* templates
-** head
-#+name: head
-#+begin_src html
-<head>
-  <meta charset="utf-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1" />
-  <link rel="stylesheet" href="/go-org/blorg/style.css" type="text/css" />
-  <title>{{ .Title }}</title>
-</head>
-#+end_src
-** header
-#+name: header
-#+begin_src html
-<header class='header'>
-  <a class="logo" href="/go-org/blorg">home</a>
-  <nav>
-    <a href="https://www.github.com/niklasfasching/go-org">github</a>
-  </nav>
-</header>
-#+end_src
-** item
-#+name: item
-#+begin_src html
-<!doctype html>
-<html>
+* templates
+** head
+#+name: head
+#+begin_src html
+<head>
+  <meta charset="utf-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1" />
+  <link rel="stylesheet" href="/go-org/blorg/style.css" type="text/css" />
+  <title>{{ .Title }}</title>
+</head>
+#+end_src
+** header
+#+name: header
+#+begin_src html
+<header class='header'>
+  <a class="logo" href="/go-org/blorg">home</a>
+  <nav>
+    <a href="https://www.github.com/niklasfasching/go-org">github</a>
+  </nav>
+</header>
+#+end_src
+** item
+#+name: item
+#+begin_src html
+<!doctype html>
+<html>
   {{ template "head" . }}
-  <body>
+  <body>
     {{ template "header" . }}
-    <div class="container">
-      <h1 class="title">{{ .Title }}
-        <br>
-        <span class="subtitle">{{ .Subtitle }}</span>
-      </h1>
-      <ul class="tags">
+    <div class="container">
+      <h1 class="title">{{ .Title }}
+        <br>
+        <span class="subtitle">{{ .Subtitle }}</span>
+      </h1>
+      <ul class="tags">
         {{ range .Tags }}
-        <li><a href="/go-org/blorg/tags/{{ . | Slugify }}">{{ . }}</a></li>
+        <li><a href="/go-org/blorg/tags/{{ . | Slugify }}">{{ . }}</a></li>
         {{ end }}
-      </ul>
+      </ul>
       {{ .Content }}
-    </div>
-  </body>
-</html>
-#+end_src
+    </div>
+  </body>
+</html>
+#+end_src
 
-** list
-#+name: list
-#+begin_src html
-<!doctype html>
-<html>
+** list
+#+name: list
+#+begin_src html
+<!doctype html>
+<html>
   {{ template "head" . }}
-  <body>
+  <body>
     {{ template "header" . }}
-    <div class="container">
-      <h1 class="title">{{ .Title }}</h1>
-      <ul class="posts">
+    <div class="container">
+      <h1 class="title">{{ .Title }}</h1>
+      <ul class="posts">
         {{ range .Pages }}
-        <li class="post">
-          <a href="{{ .PermaLink }}">
-            <date>{{ .Date.Format "02.01.2006" }}</date>
-            <span>{{ .Title }}</span>
-          </a>
-        </li>
+        <li class="post">
+          <a href="{{ .PermaLink }}">
+            <date>{{ .Date.Format "02.01.2006" }}</date>
+            <span>{{ .Title }}</span>
+          </a>
+        </li>
         {{ end }}
-      </ul>
-      <ul>
-    </div>
-  </body>
-</html>
-#+end_src
+      </ul>
+      <ul>
+    </div>
+  </body>
+</html>
+#+end_src
 
-** index
-#+name: index
-#+begin_src html
-<!doctype html>
-<html>
+** index
+#+name: index
+#+begin_src html
+<!doctype html>
+<html>
   {{ template "head" . }}
-  <body>
+  <body>
     {{ template "header" . }}
-    <div class="container">
-      <h1 class="title">{{ .Title }}</h1>
-      <p>Only pages that have a date will be listed here - e.g. not <a href="about.html">about.html</a>
-      <ul class="posts">
+    <div class="container">
+      <h1 class="title">{{ .Title }}</h1>
+      <p>Only pages that have a date will be listed here - e.g. not <a href="about.html">about.html</a>
+      <ul class="posts">
         {{ range .Pages }}
-        <li class="post">
-          <a href="{{ .PermaLink }}">
-            <date>{{ .Date.Format "02.01.2006" }}</date>
-            <span>{{ .Title }}</span>
-          </a>
-        </li>
+        <li class="post">
+          <a href="{{ .PermaLink }}">
+            <date>{{ .Date.Format "02.01.2006" }}</date>
+            <span>{{ .Title }}</span>
+          </a>
+        </li>
         {{ end }}
-      </ul>
-      <ul>
-    </div>
-  </body>
-</html>
-#+end_src
+
</ul> + <ul> + </div> + </body> +</html> +#+end_src
diff --git a/go.mod b/go.mod index f9e22e4..656b2d1 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/niklasfasching/go-org go 1.18 require ( - github.com/alecthomas/chroma/v2 v2.0.1 + github.com/alecthomas/chroma/v2 v2.2.0 github.com/pmezard/go-difflib v1.0.0 golang.org/x/net v0.0.0-20201224014010-6772e930b67b ) diff --git a/go.sum b/go.sum index f121474..cb17237 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/alecthomas/chroma/v2 v2.0.1 h1:dyR7d3Dj5r3FoVabR91FTdM7SKc8RrJJ1KBTke+ipG4= -github.com/alecthomas/chroma/v2 v2.0.1/go.mod h1:vf4zrexSH54oEjJ7EdB65tGNHmH3pGZmVkgTP5RHvAs= +github.com/alecthomas/chroma/v2 v2.2.0 h1:Aten8jfQwUqEdadVFFjNyjx7HTexhKP0XuqBG67mRDY= +github.com/alecthomas/chroma/v2 v2.2.0/go.mod h1:vf4zrexSH54oEjJ7EdB65tGNHmH3pGZmVkgTP5RHvAs= github.com/alecthomas/repr v0.0.0-20220113201626-b1b626ac65ae h1:zzGwJfFlFGD94CyyYwCJeSuD32Gj9GTaSi5y9hoVzdY= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dlclark/regexp2 v1.4.0 h1:F1rxgk7p4uKjwIQxBs9oAXe5CqrXlCduYEJvrF4u93E=