Skip to content

getMarkdownFence

Gets a Markdown code fence that the given content cannot close.

Import:

import { getMarkdownFence } from '@mnaoumov/obsidian-lib/bug-report-diagnostics';

Signature:

function getMarkdownFence(content: string): string

Parameters:

Parameter Type Description
content string The content to fence.

Returns: string — A run of backticks longer than the longest run in the content, and at least three long.