---
title: "Importing a Markdown File"
description: "Upload a Markdown file once to make it an article, and upload a new version whenever it changes."
url: "https://www.contito.com/docs/content-sources/importing-a-markdown-file"
published: "2026-11-16T06:04:37.917Z"
modified: "2026-11-16T06:04:37.917Z"
---

# Importing a Markdown File

An imported file becomes a **content** (an article) that Contito owns.

Nothing stays connected: a change to the file on your computer reaches the site only when you upload it again.

| Limit | Value |
| --- | --- |
| File types | `.md`, `.markdown`, `.mdx` |
| Size | 2 MB at most |
| Files per import | One |

## Import a file

1. Open the collection the article belongs in.
2. Click **\+** next to **Contents**.
3. Set **Content Source** to **(None)**.
4. Under **Import from File**, drop the file on the box or click it to choose one.
5. Click **Save**.

![The Add Content dialog with (None) picked, a Markdown file chosen and Save marked](https://www.contito.com/__asset/10ri474)

| \# | What it does |
| --- | --- |
| 1 | **Content Source**: **(None)** shows the import box. |
| 2 | The chosen file. **Remove** clears it. |
| 3 | **Save**: imports the file as a new article. |

The article's title comes from the `title` in the file's front matter, or else from the file name.

Type a **Name** to use a different one.

A collection synced from a Drive folder, a doc or GitHub has no **\+**. Import into a collection of your own.

After the import, keep editing the article in its **Write** tab, with no file needed. See [Writing in Contito](https://www.contito.com/writing-content/writing-in-contito).

## Upload a new version

1. Click the article to open it.
2. Under **Content File**, click **Replace from file** and choose the new version.
3. Click **Replace content**.

![The Content File box in the edit dialog, asking to replace the article with a new file, with Replace content marked](https://www.contito.com/__asset/sfacvx)

| \# | What it does |
| --- | --- |
| 1 | **Replace content**: swaps the article's text for the new file. |

The new file replaces the text, description, tags and cover image from the file.

What you changed in Contito stays: the name, address, authors and dates.

## What the file can hold

The same Markdown as a GitHub file, with front matter for the title, description, tags and authors. See [Writing in Markdown](https://www.contito.com/writing-content/writing-in-markdown).

Images need a full address that starts with

`https://`

. A path to a file on your computer, like

`./images/photo.png`

, doesn't load. For files with local images, connect them from

[GitHub](https://www.contito.com/content-sources/github)

instead.
