Use go-html-template code type

This commit is contained in:
Will Faught
2023-08-05 14:32:53 -07:00
parent 03604fd3ad
commit d3628e7c14
9 changed files with 118 additions and 118 deletions

View File

@@ -14,7 +14,7 @@ Paige provides a `paige/code` shortcode for displaying code.
Code:
```go-text-template
```go-html-template
{{</* paige/code */>}}
q = 'q = %r; print(q %% q)'; print(q % q)
{{</* /paige/code */>}}
@@ -30,7 +30,7 @@ q = 'q = %r; print(q %% q)'; print(q % q)
Code:
```go-text-template
```go-html-template
{{</* paige/code */>}}
---
- --
@@ -82,7 +82,7 @@ Result:
Code:
```go-text-template
```go-html-template
{{</* paige/code lang="c" */>}}
float Q_rsqrt( float number )
{
@@ -127,7 +127,7 @@ float Q_rsqrt( float number )
Code:
```go-text-template
```go-html-template
{{</* paige/code options="linenos=true,hl_lines=10" */>}}
float Q_rsqrt( float number )
{
@@ -171,7 +171,7 @@ float Q_rsqrt( float number )
Code:
```go-text-template
```go-html-template
{{</* paige/figure caption="Quine" */>}}
{{</* paige/code options="linenos=true,hl_lines=10" */>}}
q = 'q = %r; print(q %% q)'; print(q % q)