import { type Attempt } from "https://deno.land/x/dendron_exports@v0.1.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.