smithy

commit 0f33f02cb983b3ff3a7a26ff4d6f63e84b48a0dd

Author: Honza Pokorny <honza@pokorny.ca>

template: add contrast to readme code blocks

Also, use classes instead of inline styles.

 include/repo-index.html | 2 +-
 include/style.css | 5 +++++
 pkg/smithy/smithy.go | 6 +++++-


diff --git a/include/repo-index.html b/include/repo-index.html
index d638267c3710864a6847b6e9d260eaa5e0cfb197..0277a5c2728989ea035b152603468e4fd9d4bf72 100644
--- a/include/repo-index.html
+++ b/include/repo-index.html
@@ -23,7 +23,7 @@     
   </div>
 </nav>
 
-<div class="row">
+<div class="row readme">
   <div class="col-xl-6 col-lg-6 col-md-12 col-sm-12">
     {{ .Readme }}
 




diff --git a/include/style.css b/include/style.css
index 54e81df060bb51e1fe028c0f8d89d132d583d914..e30af43ca9f6a6afd0e2207a9292afcf3d16f03e 100644
--- a/include/style.css
+++ b/include/style.css
@@ -20,6 +20,11 @@ pre {
   font-size: 18px;
 }
 
+.readme pre {
+  background-color: #f2f2f2;
+  padding: 10px;
+}
+
  .diff-add {
      color: green;
  }




diff --git a/pkg/smithy/smithy.go b/pkg/smithy/smithy.go
index c59d3d5b522b5902654ba67d8ee9f5cf6a198eae..6690a750c04b134fdc5565b80c35987125d44d50 100644
--- a/pkg/smithy/smithy.go
+++ b/pkg/smithy/smithy.go
@@ -166,7 +166,11 @@ func FormatMarkdown(input string) string {
 	var buf bytes.Buffer
 	markdown := goldmark.New(
 		goldmark.WithExtensions(
-			highlighting.Highlighting,
+			highlighting.NewHighlighting(
+				highlighting.WithFormatOptions(
+					html.WithClasses(true),
+				),
+			),
 		),
 	)