add(zmd): parse markdown file contents and display the parsed contents
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 44s

Not everything can be parsed and displayed correctly yet, however this
will the default file format to use for adding page contents (i.e.
normal pages, blog entries, etc.)
This commit is contained in:
2024-10-13 12:57:44 +02:00
parent 2db1d55fcf
commit a01619911d
6 changed files with 184 additions and 50 deletions
+5
View File
@@ -25,6 +25,10 @@ pub fn build(b: *std.Build) void {
.target = target,
.timestamp = true,
});
const zmd_dep = b.dependency("zmd", .{
.optimize = optimize,
.target = target,
});
const exe = b.addExecutable(.{
.name = "tui-website",
@@ -34,6 +38,7 @@ pub fn build(b: *std.Build) void {
});
exe.root_module.addImport("vaxis", vaxis_dep.module("vaxis"));
exe.root_module.addImport("zlog", zlog_dep.module("zlog"));
exe.root_module.addImport("zmd", zmd_dep.module("zmd"));
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default