MCPcopy
hub / github.com/github/awesome-copilot / renderPlainText

Function renderPlainText

website/src/scripts/modal.ts:227–233  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

225}
226
227function renderPlainText(content: string): void {
228 const pre = ensurePreContent();
229 const codeEl = pre?.querySelector("code");
230 if (codeEl) {
231 codeEl.textContent = content;
232 }
233}
234
235const EXTENSION_LANGUAGE_MAP: Record<string, string> = {
236 bicep: "bicep",

Callers 3

renderHighlightedCodeFunction · 0.85
renderCurrentFileContentFunction · 0.85
openFileModalFunction · 0.85

Calls 1

ensurePreContentFunction · 0.85

Tested by

no test coverage detected