Skip to content

Commit 6f65f6f

Browse files
stefanvjarrodmillman
authored andcommitted
Render code markup more similarly to PDST
1 parent febf704 commit 6f65f6f

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

assets/theme-css/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ table th {
2020
background-color: var(--pst-color-surface);
2121
border: 1px solid var(--pst-color-border);
2222
border-radius: 0.25rem;
23+
font-size: 0.875em;
2324
}
2425

2526
a > code {
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{ if transform.CanHighlight .Type }}
2+
{{/* Supported Chroma Language*/}}
3+
<div class="highlight">
4+
<pre class="chroma"><code>
5+
{{- with transform.HighlightCodeBlock . -}}
6+
{{ .Inner | safeHTML }}
7+
{{- end -}}</code></pre>
8+
</div>
9+
{{- else -}}
10+
{{/* Unsupported Language */}}
11+
<div class="highlight">
12+
<pre>{{ .Inner }}</pre>
13+
</div>
14+
{{ end }}

0 commit comments

Comments
 (0)