E2FD GitHub - jakubkrehel/esqia: An easy way to edit MDX directly on your page. · GitHub
[go: up one dir, main page]

Skip to content
jakubkrehelPublic

About

An easy way to edit MDX directly on your page.

Resources

Stars

23 stars

Watchers

0 watching

Forks

Repository files navigation

esqia

An easy way to edit MDX directly on your page.

npm install -D esqia

Add 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.

License

MIT

About

An easy way to edit MDX directly on your page.

Resources

Stars

23 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0