Skip to content

Commit

Permalink
Simplify output of plaintext code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
skrysmanski committed Feb 25, 2024
1 parent 7a8d34c commit 64ed23c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions content/articles/hugo/test-pages/code-block-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,27 @@ namespace PInvokeTest {
}
```

### Plain Text (no line numbers or line highlights)

```
This is a simple text
that should be printed as is.
```

### Plain Text (line numbers but no line highlights)

``` {lineNos=true}
This is a text that requires highlighting
and thus must have the <span>s and classes.
```

### Plain Text (not line numbers but line highlights)

``` {hl_lines="2"}
This is a text that requires highlighting
and thus must have the <span>s and classes.
```

### Unsupported Language (line numbers and line highlights)

```looks-like-c#-but-is-not {lineNos=true,hl_lines="1 6 11 14 15"}
Expand Down
2 changes: 1 addition & 1 deletion themes/devlog-theme

0 comments on commit 64ed23c

Please sign in to comment.