|
3 months ago | |
---|---|---|
.github | 8 months ago | |
examples | 6 months ago | |
src | 3 months ago | |
.gitattributes | 8 months ago | |
.gitignore | 8 months ago | |
README.md | 3 months ago | |
build.zig | 6 months ago | |
build.zig.zon | 3 months ago |
This format is used for both the Hyper Wiki as well as the Gateway application to store and display hyperlinked documents.
The format is a rich-text format that can encode/store/display the following document blocks:
Regular text is assumed to use a proportional font, while preformatted text is required to be rendered as monospace.
HyperDocument is stored as a trivial-to-parse plain text format, not necessarily meant to be edited by humans, but still human readable.
Example:
hdoc "1.0"
p {
span "Hello, World!\n"
link "http://google.com" "Visit Google!"
span "\n"
emph "This is fat!"
span "\n"
mono "int main()"
span "\n"
}
enumerate {
item { p { span "first" } }
item { p { span "second" } }
item { p { span "third" } }
}
itemize {
item { p { span "first" } }
item { p { span "second" } }
item { p { span "third" } }
}
quote {
span "Life is what happens when you're busy making other plans.\n - John Lennon"
}
pre {
span "const std = @import(\"std\");\n"
span "\n"
span "pub fn main() !void {\n"
span " std.debug.print(\"Hello, World!\\n\", .{});\n"
span "}\n"
}
image "dog.png"