Skip to content

Markdown editor for API docs

Runs in your browser. Nothing is uploaded.

Write API documentation visually or in source, with callouts, tabs and steps, and preview it as a docs site shows it.

Images you paste stay in this browser: the Markdown names them images/<name>. The preview renders the page as a published APIGit docs site does.

How it works

Write in the visual view, where the page looks as readers will see it, or in the source. The preview beside the editor renders the text with the published viewer's renderer, so a callout, a set of tabs or numbered steps look as they will on an APIGit docs site. Load a file by upload or URL, or start from the sample, then copy or download the result as .md.

The sample is a getting-started guide for a pet store API. It opens with a callout, written as a directive in the source:

:::tip[Use the sandbox first]
Every account has a sandbox at `https://sandbox.petstore.example`. Requests there never touch real data.
:::

and walks through three steps:

<Steps>
  <Step title="Create an API key">
    Open **Settings → API keys** and select **New key**. Copy the key: it is shown once.
  </Step>
  <Step title="Send the key with each request">
    Put the key in the `Authorization` header as a bearer token.
  </Step>
  <Step title="List the pets">
    Call `GET /pets`. The answer is a page of pets, newest first.
  </Step>
</Steps>

The visual view shows both as boxes you type into; the preview shows them as the published page will.

What it does not do

  • It does not upload pasted images. The preview shows them from memory; the Markdown names each images/<name>.
  • It does not commit or publish. Download the .md file, or keep the guide in an APIGit repository.
  • It does not render your OpenAPI file inside the guide; the docs site shows specs and guides side by side.
  • It does not show embedded frames or icons. An iframe (a YouTube video, a CodeSandbox) and an icon component show empty in the preview here; a published APIGit docs site renders them.
  • A page the visual view cannot open is edited in the source view.
  • Nothing is sent anywhere, and nothing is kept outside this browser.

This tool and APIGit

This toolWith APIGit
One page, in your browserGuides in .md or .mdx next to the specs of a repository, with Visual, Code, Diff and Preview tabs
Pasted images in memoryA pasted or dropped image committed to assets/images/ on the branch you are on
Download a fileCommit, review in a pull request, publish a version from any commit
A preview of one pageA docs site with your navigation (apigit.json), theme and domain, and the API reference beside the guides
No local preview of a folderapigit preview renders a whole repository on your machine and reloads on save

Questions and answers

Which components can I use?
The components of a published APIGit docs site, in the same syntax: callouts (:::tip, :::warning and the others), tabs, steps, cards, accordions, code groups, columns and more. The preview renders them as the published site does.
Is my text uploaded?
No. The editor and the preview run in a sandboxed frame in your browser. The page keeps your last text in this browser's storage until you click Clear.
What happens to images I paste?
They stay in the frame's memory and show in the preview; nothing is uploaded. The Markdown names each one images/<name>, so put the file next to the page when you publish it.
Can I switch between the visual editor and the source?
Yes. Both edit the same text. A page the visual view cannot open (very large, or with a syntax it does not know) opens in the source view, with a note.
Can I share the preview?
Yes, for a Markdown file loaded from a public URL, such as a README on GitHub: Share makes a link that renders it on tools.apigit.com. A pasted text has no link; download it as .md instead.
Is this the editor of the APIGit app?
It is a copy of the app's visual Markdown editor and of the published viewer's renderer. In the app, the same editor commits to Git and uploads pasted images to the repository.