An easy way to edit MDX directly on your page.
npm install -D esqiaAdd esqia/remark after your other remark plugins and wrap your config.
// next.config.ts
import { withEsqia } from "esqia/next";
const withMDX = createMDX({
options: {
remarkPlugins: [
...(process.env.NODE_ENV === "development" ? ["esqia/remark"] : []),
],
},
});
export default withEsqia(withMDX(nextConfig));Then render it in your root layout.
// app/layout.tsx
import { Esqia } from "esqia";
{process.env.NODE_ENV === "development" && <Esqia />}Press ⌘⌥E, click into any markdown on the page and edit it. The change is saved to the .mdx file.
Esqia only runs in next dev and requires Next.js 15 and React 19 or later.
Options, shortcuts and a live demo are available at esqia.jakub.kr.
MIT