@@ -66,23 +66,12 @@ pub const elements = [_]Element{
66
66
.{ .type = .ordered_list_item , .syntax = "1. " , .close = .linebreak , .clear = true },
67
67
};
68
68
69
- pub const toggles = if (@hasDecl (std , "ComptimeStringMap" ))
70
- std .ComptimeStringMap (
71
- Element ,
72
- .{
73
- .{ "code" , .{ .type = .code_close , .syntax = "`" } },
74
- .{ "block" , .{ .type = .block_close , .syntax = "```" } },
75
- },
76
- )
77
- else if (@hasDecl (std , "StaticStringMap" ))
78
- std .StaticStringMap (Element ).initComptime (
79
- .{
80
- .{ "code" , .{ .type = .code_close , .syntax = "`" } },
81
- .{ "block" , .{ .type = .block_close , .syntax = "```" } },
82
- },
83
- )
84
- else
85
- unreachable ;
69
+ pub const toggles = std .StaticStringMap (Element ).initComptime (
70
+ .{
71
+ .{ "code" , Element { .type = .code_close , .syntax = "`" } },
72
+ .{ "block" , Element { .type = .block_close , .syntax = "```" } },
73
+ },
74
+ );
86
75
87
76
pub const formatters = [_ ]Element {
88
77
.{ .type = .bold , .syntax = "**" , .close = .bold_close },
0 commit comments