Select language(s):

Hello World

Welcome to my first blog post! As is tradition in the world of programming and digital content creation, I am kicking things off with a mandatory "Hello, World!" article. But this isn't really an introduction. Rather, this post serves to demonstrate formatting, typography, and features like code highlighting or embeds, mostly for my own convenience. So rather check out any other article on the blog.

You might also notice the split view language feature. It presents the content side by side in different languages while each paragraph start vertically aligned with the translation. This is an experiment that explores if this layout could be used for learning a language. It's build with the CSS subgrid and content feature.

The rest of this post will demonstrate different elements and formatting. This is a living post, work-in-progress and will be updated continuously.

Formatting Showcase

  1. First
  2. Second

Code Blocks with Syntax Highlighting

Here is an inline piece of code and a code block:

let processor = unified()
    .use(remarkParse)    // parse into markdown syntax tree
    .use(remarkRehype)  // convert to html syntax tree
    .use(highlight) // adds class for syntax highlighting code blocks
    .use(rehypeStringify)      // turn html syntax tree to html

// process function will return the generated html string.
function processFile(filename) {
    // use vfile to read the file, could use fs if you like.
    return processor.processSync(vfile.readSync(filename));
}
/// file: svelte.config.js
import adapter from '@sveltejs/adapter-node';

export default {
	kit: {
-		adapter: adapter()
+		adapter: adapter({ out: 'my-output-directory' })
	}
};

Fun fact, on Jan 1st, 1970 time was invented:

https://en.wikipedia.org/wiki/Unix_time

Beautiful flag
Beautiful flag

GFM

www.example.com, https://example.com, and contact@example.com.

Footnote

A note1

Strikethrough

one or two tildes.

A Table with different text-alignments

NormalLeftRightCentered
1234

Tasklist

  • to do
  • done

A Bigger Table With Harry Potter Characters

Characters with a different name in German are marked bold.

GryffindorHufflepuffRavenclawSlytherinTeachersMuggles
Harry PotterCedric DiggoryLuna LovegoodDraco MalfoyAlbus DumbledoreVernon Dursley
Hermione GrangerNymphadora TonksCho ChangSeverus SnapeMinerva McGonagallPetunia Dursley
Ron WeasleyPomona SproutFilius FlitwickPansy ParkinsonSeverus SnapeDudley Dursley
Neville LongbottomNewt ScamanderGilderoy LockhartBlaise ZabiniRubeus HagridMarge Dursley
Ginny WeasleyErnie MacmillanSybill TrelawneyHorace SlughornDolores UmbridgeMr. Granger
Sirius BlackHannah AbbottMarietta EdgecombeRegulus BlackRemus LupinMrs. Granger
James PotterJustin Finch-FletchleyMichael CornerTom RiddleGilderoy LockhartMrs. Figg
Lily PotterBellatrix LestrangeHorace SlughornColdmirror

Footnotes

  1. Big note.


Found a typo? Edit on GitHub