Esc

remark-to-comark

Report the migration's findings as part of a Vite Doctor run.

Add the migration's findings to a Vite Doctor run, so they show up in the same report as comark-linter.

// doctor.config.ts
import { defineDoctorConfig } from "vite-doctor/config";
import remarkToComark from "remark-to-comark/doctor";

export default defineDoctorConfig({
  extends: ["remark-to-comark/recommended"],
  extensions: [remarkToComark()],
});
ts

Each rule covers one kind of finding and reports the same text as remark-to-comark check, with a link to Diagnostics. vite-doctor . --format agent adds the fix and the command to rerun.

  • vite-doctor . --fix escapes the Markdown in each RTC0302 file, like remark-to-comark content --write.
  • vite-doctor . --unsafe-fix also rewrites each RTC0202 chain, like remark-to-comark rewrite --write. Install @comark/html and remark-to-comark afterwards, since the new code imports them.

Every other finding is report-only.