Equation Citator v1.3.7 Documentation
    Preparing search index...

    Function parseFirstImageInMarkdown

    • Parse the first image with the given tag in the markdown content

      Parameters

      • markdown: string

        The markdown content to parse

      • tag: string

        The tag to search for (without prefix, e.g., "3.1" not "fig:3.1")

      • imagePrefix: string = "fig:"

        The prefix to match (e.g., "fig:"), default is "fig:"

      Returns ImageMatch | undefined

      The first ImageMatch with the matching tag, or undefined if not found

      we don't process quote here since its handled by parseImageLine, also quote block recognition will handle quote automatically, so there's no need.