Skip to content

Commit

Permalink
docs: add code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Mar 17, 2024
1 parent 98c8abe commit 10500ed
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions content/posts/markup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ Surround large tables with `<figure></figure>` so they can scroll horizontally.

</figure>

## Code blocks

```c
#include <stdio.h>

int main() {
printf("Hello, World!\n");
return 0;
}
```

## Unordered Lists (Nested)

* List item one
Expand Down Expand Up @@ -150,20 +161,6 @@ This tag should denote <ins>inserted</ins> text.

This scarcely known <kbd>tag</kbd> emulates keyboard text.

### Preformatted Tag

This tag styles large blocks of code.

<pre>
.post-title {
margin: 0 0 5px;
font-weight: bold;
font-size: 38px;
line-height: 1.2;
and here's a line of some really, really, really, really long text, just to see how the PRE tag handles it and to find out how it overflows;
}
</pre>

### Quote Tag

<q>We have just gotten a wake-up call from the Nintendo Generation.</q> &#8211;Cereal Killer
Expand Down

0 comments on commit 10500ed

Please sign in to comment.