An Example Markdown File

10/27/2023

Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in SvelteKit.

Here is a link

Headings

The following HTML <h1><h6> elements represent six levels of section headings. <h1> is the highest section level while <h6> is the lowest.

H2

H3

H4

H5
H6

Paragraph

Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.

Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.

Images

shiny lipped dog

Blockquotes

The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a footer or cite element, and optionally with in-line changes such as annotations and abbreviations.

Tiam, ad mint andaepu dandae nostion secatur sequo quae.

Note that you can use Markdown syntax within a blockquote.

Tables

Italics Bold Code
italics bold code

Code Blocks

here is a code block

html
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Example HTML5 Document</title>
        <title>A Better Title</title>
        <meta property="og:title" content="A Better Title" />
    </head>
    <body>
        <p>Test</p>
        <p>An extremely long line inside of a code block to test that the pre element scrolls on overflow</p>
    </body>
</html>

Some more code

We use string interpolation for a nice lil C# print

c#
var name = "Sam";
Console.WriteLine($"Hi {name}");

Here is some recursive typescript

typescript
function fib(n: number) {
    if (n === 0 || n === 1) return n;
    return fib(n - 2) + fib(n - 1);
}

function pow(n: number, x: number) {
    if (n === 0) return 1;
    return pow(n, n - 1) * n;
}

function factorial(n: number) {
    if (n === 0) return 1;
    return factorial(n - 1) * n;
}

List Types

We’ve got lists! Get your lists here!

Ordered List

  1. First item
  2. Second item
  3. Third item

Unordered List

  • List item
  • Another item
  • And another item

Nested list

  • Fruit
    • Apple
    • Orange
    • Banana
  • Dairy
    • Milk
    • Cheese

Other Elements — abbr, sub, sup, kbd, mark

Maybe common things that you can’t really express in markdown

Use <abbr> for abbreviations

GIF is a bitmap image format.

Use <sub> and <sup> for subscript and superscript

H2O

Xn + Yn = Zn

Use <kbd> for keyboard keys

Press Ctrl+Alt+Delete to end the session.

Press Ctrl+Alt+Delete to end the session.

Use <mark> for highlighted or “marked” text

Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.