import { normalizeChannelId } from "../channels/plugins/index.js"; import { listChannelPlugins } from "../channels/plugins/registry.js"; import { getActivePluginChannelRegistryVersion } from "../plugins/runtime.js"; import { resolveAccountEntry } from "../routing/account-lookup.js"; import { normalizeAccountId } from "../routing/session-key.js"; import type { ResolveMarkdownTableModeParams } from "./markdown-tables.types.js"; import type { MarkdownTableMode } from "./types.base.js";
type MarkdownConfigEntry = {
markdown?: {
tables?: MarkdownTableMode;
};
};
type MarkdownConfigSection = MarkdownConfigEntry & {
accounts?: Record<string, MarkdownConfigEntry>;
};
const EMPTY_DEFAULT_TABLE_MODES = new Map<string, MarkdownTableMode>();
function bindDefaultTableModesMethod<TValue>(value: TValue): TValue { if (typeof value !== "function") { return value;
} return value.bind(getDefaultTableModes()) as TValue;
}
const isMarkdownTableMode = (value: unknown): value is MarkdownTableMode =>
value === "off" || value === "bullets" || value === "code" || value === "block";
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.