[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-02-01 12:39:11 +00:00
committed by GitHub
parent 54f1028e9a
commit cbe084469f
3 changed files with 18 additions and 17 deletions

View File

@@ -1078,15 +1078,6 @@ fn extractLanguage(src_text: []const u8, info_beg: u32) []const u8 {
return "";
}
const std = @import("std");
const bun = @import("bun");
const md = bun.md;
const jsc = bun.jsc;
const JSValue = jsc.JSValue;
const ZigString = jsc.ZigString;
// Cached tag string indices - must match BunMarkdownTagStrings.h
const TagIndex = enum(u8) {
h1 = 0,
@@ -1169,3 +1160,12 @@ fn getSpanTypeTag(span_type: md.SpanType) TagIndex {
.u => .u,
};
}
const std = @import("std");
const bun = @import("bun");
const md = bun.md;
const jsc = bun.jsc;
const JSValue = jsc.JSValue;
const ZigString = jsc.ZigString;

View File

@@ -47,7 +47,8 @@ extern "C" JSC::EncodedJSValue BunMarkdownTagStrings__getTagString(Zig::GlobalOb
// Use a switch to call the appropriate accessor
switch (tagIndex) {
#define MARKDOWN_TAG_STRINGS_CASE(name, str, idx) \
case idx: return JSC::JSValue::encode(tagStrings.name##String(globalObject));
case idx: \
return JSC::JSValue::encode(tagStrings.name##String(globalObject));
MARKDOWN_TAG_STRINGS_EACH_NAME(MARKDOWN_TAG_STRINGS_CASE)