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.
| Column1 | Column2 | Column3 | Column4 |
|---|---|---|---|
| Item1.1 | Item2.1 | Item3.1 | Item4.1 |
| Item1.2 | Item2.2 | Item3.2 | Item4.2 |
| Item1.3 | Item2.3 | Item3.3 | Item4.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;
} 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