Code

Sep 26, 2024

Inline code

inline code and more inline code

Block code

fn plus_one(x: Option<i32>) -> Option<i32> {
    match x {
        None => None,
        Some(i) => Some(i + 1),
    }
}

let five = Some(5);
let six = plus_one(five);
let none = plus_one(None);
--- /path/to/original	timestamp
+++ /path/to/new	timestamp
@@ -1,3 +1,9 @@
+This is an important
+notice! It should
+therefore be located at
+the beginning of this
+document!
+
 This part of the
 document has stayed the
 same from version to
@@ -8,13 +14,8 @@
 compress the size of the
 changes.

-This paragraph contains
-text that is outdated.
-It will be deleted in the
-near future.
-
 It is important to spell
-check this dokument. On
+check this document. On
 the other hand, a
 misspelled word isn't
 the end of the world.
@@ -22,3 +23,7 @@
 this paragraph needs to
 be changed. Things can
 be added after it.
+
+This paragraph contains
+important new additions
+to this document.
git submodule add -b latest https://github.com/isunjn/serene.git themes/serene

Line number

1fn plus_one(x: Option<i32>) -> Option<i32> {
2 match x {
3 None => None,
4 Some(i) => Some(i + 1),
5 }
6}
7
8let five = Some(5);
9let six = plus_one(five);
10let none = plus_one(None);
93fn plus_one(x: Option<i32>) -> Option<i32> {
94 match x {
95 None => None,
96 Some(i) => Some(i + 1),
97 }
98}
99
100let five = Some(5);
101let six = plus_one(five);
102let none = plus_one(None);

Highlight

1fn plus_one(x: Option<i32>) -> Option<i32> {
2 match x {
3 None => None,
4 Some(i) => Some(i + 1),
5 }
6}
7
8let five = Some(5);
9let six = plus_one(five);
10let none = plus_one(None);

Filename

src/main.rs
fn plus_one(x: Option<i32>) -> Option<i32> {
    match x {
        None => None,
        Some(i) => Some(i + 1),
    }
}

let five = Some(5);
let six = plus_one(five);
let none = plus_one(None);
src/main.rs
1fn plus_one(x: Option<i32>) -> Option<i32> {
2 match x {
3 None => None,
4 Some(i) => Some(i + 1),
5 }
6}
7
8let five = Some(5);
9let six = plus_one(five);
10let none = plus_one(None);
https://serene-demo.pages.dev/posts/feed.xml