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 much of an introduction, rather this post serves the purpose to demonstrate formatting, typography and features like code highlighting or embeds. 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
Links & Lists
- First
- 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
GFM
Autolink literals
www.example.com, https://example.com, and contact@example.com.
Footnote
A note1
Strikethrough
one or two tildes.
A Table with different text-alignments
Normal | Left | Right | Centered |
---|---|---|---|
1 | 2 | 3 | 4 |
Tasklist
- to do
- done
A Bigger Table With Harry Potter Characters
Characters with a different name in German are marked bold.
Gryffindor | Hufflepuff | Ravenclaw | Slytherin | Teachers | Muggles |
---|---|---|---|---|---|
Harry Potter | Cedric Diggory | Luna Lovegood | Draco Malfoy | Albus Dumbledore | Vernon Dursley |
Hermione Granger | Nymphadora Tonks | Cho Chang | Severus Snape | Minerva McGonagall | Petunia Dursley |
Ron Weasley | Pomona Sprout | Filius Flitwick | Pansy Parkinson | Severus Snape | Dudley Dursley |
Neville Longbottom | Newt Scamander | Gilderoy Lockhart | Blaise Zabini | Rubeus Hagrid | Marge Dursley |
Ginny Weasley | Ernie Macmillan | Sybill Trelawney | Horace Slughorn | Dolores Umbridge | Mr. Granger |
Sirius Black | Hannah Abbott | Marietta Edgecombe | Regulus Black | Remus Lupin | Mrs. Granger |
James Potter | Justin Finch-Fletchley | Michael Corner | Tom Riddle | Gilderoy Lockhart | Mrs. Figg |
Lily Potter | Bellatrix Lestrange | Horace Slughorn | Coldmirror |
Footnotes
-
Big note. ↩
Found a typo? Edit on GitHub