Test2!! Is a very long title

Published: 2026-04-14

Markdown: Syntax

Note: This document is itself written using Markdown; you can see the source for it by adding ‘.text’ to the URL.


Column1Column2Column3Column4
Item1.1Item2.1Item3.1Item4.1
Item1.2Item2.2Item3.2Item4.2
Item1.3Item2.3Item3.3Item4.3
#include <algorithm> 
#include <string_view>
#include <vector>
using Path = std::filesystem::path;

int rank(const Path &p)
{
    using namespace std::filesystem;
    if (is_directory(p)) { return 0; }
    else if (is_regular_file(p)) { return 1; }
    else if (is_block_file(p)) { return 2; }
    else if (is_other(p)) { return 3; }
    else if (is_symlink(p)) { return 4; }
    else if (is_socket(p)) { return 5; }
    return 99;
}

std::string_view fileType(const Path &p)
{
    using namespace std::filesystem;
    if (is_directory(p)) { return "Dir"; }
    else if (is_regular_file(p) || is_block_file(p)) { return "File"; }
    else if (is_other(p)) { return "Other"; }
    else if (is_symlink(p)) { return "Symlink"; }
    else if (is_socket(p)) { return "Socket"; }
    return "Unknown";
}

bool changeDir(Path &curPath, const Path &p)
{
    using namespace std::filesystem;
    if (!exists(curPath / p) || !is_directory(curPath / p))
    {
        std::println("Path doesn't exist or is not a directory.\nPath: {}", (curPath / p).string());
        return false;
    }

    curPath = (curPath / p).lexically_normal();
    return true;
}

maths

Overview

Markdown’s syntax has been influenced by several existing text-to-HTML filters — including Setext, atx, Textile, reStructuredText, Grutatext, and EtText — the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.

This is great

this is double graet


  • This is okay

  • This is also okay

    • is this okay?
    • we’ll see
      • wow
  • wow

  • wow

  • wow

  • wow