Esc

COMARK1703 · warning

comark/critic/invalid-mode

Set comark-critic's mode to view, accept, or reject

mode is an option of the plugin, not of the Markdown: view shows every change, accept renders the document with the changes made, and reject without them. Any other value, such as merge, falls back to view, so a page meant to show the accepted text still shows every insertion and deletion.

Incorrect

import critic from "comark-critic";

const plugins = [critic({ mode: "merge" })];
ts
lint-comark example.mdexample.md:1:1 comark/critic/invalid-modecritic: mode must be "view", "accept", or "reject", not "merge"; until then it shows the changes.Change the block as the message says.✖ 1 problem

Correct

import critic from "comark-critic";

const plugins = [critic({ mode: "accept" })];
ts
lint-comark example.md✔ No problems