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" })]; lint-comark example.mdexample.md:1:1 comark/critic/invalid-modeChange the block as the message says.✖ 1 problem
Correct
import critic from "comark-critic";
const plugins = [critic({ mode: "accept" })]; lint-comark example.md✔ No problems