Skip to main content
Module

x/dendron_exports/deps/micromark.ts>Attempt

Export your Dendron vault into SSG compatible markdown
Latest
type alias Attempt
import { type Attempt } from "https://deno.land/x/dendron_exports@v0.2.2/deps/micromark.ts";

Attempt deals with several values, and tries to parse according to those values.

If a value resulted in ok, it worked, the tokens that were made are used, and ok is switched to. If the result is nok, the attempt failed, so we revert to the original state, and nok is used.

definition: (
construct: Array<Construct> | Construct | ConstructRecord,
ok: State,
nok?: State | undefined,
) => State