Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace MarkdownCodeBlocks

The namespace for code block functions which help in extract code from markdown text

Index

Variables

Const CODE_BLOCK_MARKER

CODE_BLOCK_MARKER: "```" = "```"

Functions

findMarkdownCodeBlocks

  • Construct all code snippets from current text (this could be potentially optimized if we can cache and detect differences)

    Parameters

    • text: string

      A string to parse codeblocks from

    Returns MarkdownCodeBlock[]

    An array of MarkdownCodeBlocks.

isMarkdown

  • isMarkdown(extension: string): boolean
  • Check whether the given file extension is a markdown extension

    Parameters

    • extension: string

      A file extension

    Returns boolean

    true/false depending on whether this is a supported markdown extension

Generated using TypeDoc