markdown.ts#
3 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
3
symbols
3
functions
5
parameters
3
returns
Reference#
fnisMarkdownModuleId(id: string, extensions: readonly string[] = DEFAULT_MARKDOWN_EXTENSIONS): booleanReturns true when a module id is a Markdown source that ox-content should compi…
Returns true when a module id is a Markdown source that ox-content should compile. An id with a query (?raw, ?url, ?inline, ...) is a different module owned by whichever plugin added the query, so it is left alone.
Signature
export function isMarkdownModuleId(id: string, extensions: readonly string[] = DEFAULT_MARKDOWN_EXTENSIONS): booleanParameters
-
idstring -
extensionsreadonly string[]optional · default: DEFAULTMARKDOWNEXTENSIONS
Returns
boolean
fnisMdxFilePath(filePath: string): booleanReturns true when a resource id points at an MDX source file.
Returns true when a resource id points at an MDX source file.
Signature
export function isMdxFilePath(filePath: string): booleanParameters
-
filePathstring
Returns
boolean
fnresolveMdxForFilePath(filePath: string, configured?: boolean): booleanExplicit configuration wins; otherwise MDX follows the source extension.
Explicit configuration wins; otherwise MDX follows the source extension.
Signature
export function resolveMdxForFilePath(filePath: string, configured?: boolean): booleanParameters
-
filePathstring -
configuredbooleanoptional
Returns
boolean