mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user