Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ same stability guarantee.

## [Unreleased]

## [0.7.4] — 2026-07-03

## [0.7.3] — 2026-07-03

## [0.7.2] — 2026-07-03

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.name = .zigmark,
// This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication.
.version = "0.7.2",
.version = "0.7.4",
// Together with name, this represents a globally unique package
// identifier. This field is generated by the Zig toolchain when the
// package is first created, and then *never changes*. This allows
Expand Down
12 changes: 12 additions & 0 deletions src/markdown/renderers/typst.zig
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,18 @@ test "special char escaping" {
try ok("a $ b", "a \\$ b\n\n");
}

test "raw HTML is intentionally dropped (no Typst equivalent)" {
// Downstream (sc2in/policypress#117) relies on this: its build pre-flight
// flags raw HTML in policy bodies precisely because this renderer omits it
// while the HTML renderer keeps it, so the site and the PDF would diverge.
// If this behaviour ever changes, that validation rule should be revisited.
//
// Block HTML (`<div>` starts a type-6 HTML block) is dropped whole.
try ok("<div class=\"note\">\nhidden\n</div>", "");
// Inline HTML drops only the tags; the enclosed text survives as text.
try ok("before <span>kept</span> after", "before kept after\n\n");
}

fn okMermaid(src: []const u8, mfn: ?*const fn (std.mem.Allocator, []const u8) anyerror![]const u8, expected: []const u8) !void {
const allocator = tst.allocator;
var parser = Parser.init();
Expand Down
Loading