MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / getMarkdownLanguage

Function getMarkdownLanguage

src/code_embed_markdown.ts:142–144  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

140}
141
142function getMarkdownLanguage(ext: string): string {
143 return MARKDOWN_LANGUAGE_ALIASES[ext] ?? ext;
144}
145
146export function createFencedCodeBlock(content: string, ext: string): string {
147 const markdownLanguage = getMarkdownLanguage(ext);

Callers 1

createFencedCodeBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected