Test post for code
A test post exploring code highlighting
Published: 2022-07-20T07:15:27Z - 1 min read
Lead Front End Solution Architect
Some intro text
Some code:
const getPortableText = (elements: any[]): string => {
const sum = elements.reduce((total: number, currentElement) => {
let elementText = "";
if (currentElement.children) {
elementText += getPortableText(currentElement.children) + " ";
}
if (currentElement.text && currentElement.text.length > 0) {
elementText += currentElement.text + " ";
}
return total + elementText;
}, 0);
return sum;
};
After code
A image inline:
after image
- Bullets
- Bullets 2
Link: vg.no
italic bold
small img:
New line
Inline img:
Qoute:
I like next js, but dislike react
Tags
Your reaction?
Comments:
Greger (at 2022-07-25T10:17:02Z):
Hello I like this
Greger (at 2022-07-25T10:37:31Z):
fgbn
Greger (at 2022-07-25T10:38:14Z):
asdd
Greger (at 2022-07-25T10:38:29Z):
n,mm
Greger (at 2022-07-25T10:40:11Z):
dfrg
Greger (at 2022-07-25T11:58:17Z):
<script>
function myFunction() {
alert("Hello! I am an alert box!");
}
</script>
cloudone (at 2022-07-27T10:54:10Z):
this is a comment
cloudone (at 2022-07-27T10:54:26Z):
this is a comment
Greger (at 2022-07-27T11:00:47Z):
asd
cloudone (at 2022-07-27T11:48:37Z):
hello universe
seperate line
cloudone (at 2022-07-27T11:48:50Z):
sadfsadf
asdfsadfsdaf
Greger (at 2022-07-27T12:28:45Z):
one
two
three
Greger (at 2022-09-12T10:08:02Z):
123
Mike (at 2022-09-21T12:49:06Z):
test
Greger (at 2022-10-25T10:29:21Z):
Cool
hei (at 2022-10-25T10:38:52Z):
heisann!