parser: Arreglar títulos

This commit is contained in:
Cat /dev/Nulo 2022-07-18 16:23:04 -03:00
parent c12e89a3e5
commit 7c1887b8b0
2 changed files with 2 additions and 2 deletions

View file

@ -155,7 +155,7 @@ fn checkIfBlockStarts(allocator: std.mem.Allocator, line: *[]const u8) !?Block {
} else if (std.mem.startsWith(u8, line.*, "#")) {
const level = getHeadingLevel(line.*);
if (line.*[level..].len != 0) {
if (line.*[level] != ' ' or line.*[level] != '\t') return null;
if (line.*[level] != ' ' and line.*[level] != '\t') return null;
line.* = line.*[level + 1 ..];
}
return Block{ .heading = .{

View file

@ -19,7 +19,7 @@ Ver [cli.zig](cli.zig)
## CommonMark
Actualmente: `114 passed, 538 failed, 0 errored, 0 skipped`
Actualmente: `122 passed, 530 failed, 0 errored, 0 skipped`
Para correr los tests: