Skip to content

isMarkdownFile

Checks if the given file is a Markdown file.

Import:

import { isMarkdownFile } from '@mnaoumov/obsidian-lib/file-system';

Signature:

function isMarkdownFile(pathOrFile: PathOrAbstractFile | null): boolean

Parameters:

Parameter Type Description
pathOrFile PathOrAbstractFile | null The path or file to check.

Returns: boolean — A boolean indicating whether the file is a Markdown file.