Function parsePage

  • Parse a page file's content into a WikiPage. id is the caller-known relative id. The front matter is read as data: a block marked as JavaScript is dropped, never evaluated. Blank lines between the front matter and the body are dropped, and the body's first line keeps its indentation.

    Parameters

    • id: string
    • raw: string

    Returns WikiPage