export function getNoteContent() { return `

Markdown Test Document

Headers

H1 Header

H2 Header

H3 Header

H4 Header

H5 Header
H6 Header

Emphasis

This text is italicized. This text is also italicized.

This text is bold. This text is also bold.

This text is bold and italicized. This text is also bold and italicized.

Links

Link with title Link without title

Images

Blockquotes

This is a blockquote.

Nested blockquote.

Back to the outer blockquote.

Lists

Unordered List

Ordered List

  1. First item

    1. Subitem 1.1

      1. Subitem 1.1.1
  2. Second item

Code

Inline Code

Here is some inline code.

Code Block

def hello_world():
    print("Hello, world!")

Horizontal Rules


This is text between horizontal rules


Tables

Header 1

Header 2

Header 3

Row 1

Data 1.2

Data 1.3

Row 2

Data 2.2

Data 2.3

Math

Inline Math

This is an inline math equation: $E = mc^2$.

Block Math

Below is a block math equation:

$$\\\\int_a^b f(x) \\\\, dx = F(b) - F(a)$$

Complex Math

Solve the quadratic equation:

$$x = \\\\frac{-b \\\\pm \\\\sqrt{b^2 - 4ac}}{2a}$$

Nested Elements

Nested Code and Lists

  1. Ordered list item

    • Unordered subitem

      console.log("Nested code block");
      
  2. This is a nested math

    $$y=x^2$$
  3. This is a inline math$123$
  4. This is a line table

    1

    2

    3

    4

    5

    6

    7

    8

    9

Special Characters

Escape sequences for special characters: * _ \\\` [ ] ( ) # + - .

HTML in Markdown

This is a HTML block inside Markdown.

Highlight Text

Highlight text is here

Colored Text

Colored text is here

Task Lists

Strikethrough

This text is strikethrough.

Recursive Elements

Recursive Links and Emphasis

Bold link

Recursive Emphasis

Bold and nested italic within bold.

Image

IMAGE_PLACEHOLDER

Citation

CITATION_PLACEHOLDER

Edge Cases

Empty Link

Link

Zotero Link

Zotero Link

Lone Asterisk

Broken Lists

Long Text Wrapping

This is a very long paragraph that does not have any line breaks and is intended to test how the Markdown engine handles text wrapping when there are no explicit line breaks within the text.


Conclusion

This document contains a wide range of Markdown elements, including headers, lists, blockquotes, inline and block code, tables, images, links, math, and special characters. It also tests recursive and edge cases to ensure the Markdown engine is robust.

`; } export function parseTemplateString(input: string): string { return input .replace(/\\/g, "\\\\") // Escape backslashes .replace(/`/g, "\\`") // Escape backticks .replace(/\$/g, "\\$") // Escape dollar signs .replace(/{/g, "\\{") // Escape opening braces .replace(/}/g, "\\}"); // Escape closing braces }