markdown-it-to-comark
Vite Doctor
Report the migration's findings as part of a Vite Doctor run.
Install the global Vite+ CLI before running this command. Without it, replace vp dlx with pnpm dlx.
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 markdownItToComark from "markdown-it-to-comark/doctor";
export default defineDoctorConfig({
extends: ["markdown-it-to-comark/recommended"],
extensions: [markdownItToComark()],
});Each rule covers one kind of finding and reports the same text as markdown-it-to-comark check, with a link to Diagnostics. vite-doctor . --format agent adds the fix and the command to rerun.
vite-doctor . --fixescapes the Markdown in eachMIC0302file, likemarkdown-it-to-comark content --write.vite-doctor . --unsafe-fixalso rewrites eachMIC0202setup, likemarkdown-it-to-comark rewrite --write. Install @comark/html and markdown-it-to-comark afterwards, since the new code imports them.
Every other finding is report-only.