Amazon holiday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Confluence Import Markdown: 10 Ways to Do It

Bringing Markdown into Confluence is a task almost every team hits eventually—whether you’re migrating from GitHub, Notion, or a local docs folder. This list covers the practical methods, from built-in options to third-party tools, and is for anyone who needs clean, editable Confluence pages without manual copy-paste. You’ll find the right approach for your file size, formatting needs, and budget.

1. Native Confluence Markdown Import (Cloud)

Confluence Cloud now has a built-in Markdown import option under Space settings > Import content. It converts .md files into pages, preserving headings, lists, code blocks, and basic tables. It’s free and works well for simple files, but it doesn’t handle complex nested lists or images reliably. You can import multiple files at once, but each becomes a separate page—there’s no folder hierarchy mapping.

2. Copy-Paste with the Markdown Plugin

If you only have a few snippets, install the free Markdown for Confluence plugin from the Atlassian Marketplace. It adds a toolbar button that lets you paste raw Markdown and convert it to Confluence’s editor format in place. It’s ideal for quick, one-off conversions without leaving your page. The plugin supports most common syntax, but it may mangle inline code or links with special characters.

3. Use the Confluence REST API with a Script

For developers, the Confluence REST API allows you to create pages programmatically. You can write a Python or Node.js script that reads a .md file, converts it to Confluence storage format (XHTML) using a library like markdown-it or turndown, then POSTs it to /rest/api/content. This gives you full control over page titles, parent pages, and labels. It’s the most flexible method, but it requires coding skills and API token setup.

4. Pandoc as a Conversion Bridge

Pandoc is a command-line tool that converts Markdown to many formats, including Confluence’s storage format (via the --to confluence option). Run pandoc input.md -t confluence -o output.txt to get XHTML you can paste into Confluence’s HTML editor. It handles tables, footnotes, and even math better than most plugins. The downside is you still need to manually paste the output into each page.

5. Third-Party Migration Tools (e.g., Content Tool, Exalate)

Tools like Content Tool for Confluence or Exalate offer bulk import from Markdown files with mapping of spaces, parent pages, and attachments. They’re paid but save hours when migrating a large documentation repository. They also preserve metadata like creation dates and authors, which native import doesn’t. These tools often have trial versions, so you can test with a few files first.

6. Use a Markdown Editor with Confluence Integration

Some desktop Markdown editors, like Typora or Obsidian, have community plugins that export to Confluence. For example, Obsidian’s Confluence Sync plugin pushes notes directly to a space via API. This is great for teams that write in Markdown daily and want a one-way sync. However, these plugins are community-maintained and may break with Confluence updates.

7. Convert Markdown to Word First

If you have a legacy Confluence Server instance, you can convert Markdown to a .docx file using Pandoc or an online converter, then use Confluence’s built-in Word import. This works because Confluence’s Word importer handles headings, lists, and tables well. It’s a clunky workaround but requires no extra plugins. Be aware that code blocks and inline code may lose syntax highlighting.

8. Use a Cloud Migration Service (e.g., Cloudvault)

Services like Cloudvault specialize in migrating content from various sources, including Markdown files, to Confluence Cloud. They handle large volumes, preserve attachments, and even convert internal links. This is the most hands-off approach, but it’s costly and overkill for small projects. It’s best for enterprises with thousands of files and strict compliance needs.

9. Manual Paste into Confluence’s Editor

For a single page, you can simply copy Markdown and paste it into Confluence’s editor—it will auto-convert basic formatting like bold, italics, and headers. This works surprisingly well for simple content, but it fails on code blocks, tables, and nested lists. It’s the fastest method when you’re in a hurry and don’t mind fixing a few things manually. You can also switch to the + menu and insert a Markdown block if you have the plugin.

10. Use a Custom HTML Export from Your Markdown Tool

Many Markdown editors (like StackEdit or Dillinger) can export to HTML. Once you have HTML, you can paste it into Confluence’s HTML editor (via in the toolbar). This preserves most formatting, including code highlighting if you include CSS classes. It’s a reliable fallback when plugins fail. Just remember to strip any external scripts or styles that Confluence might block.

How to Choose

First, consider the volume: for a handful of files, copy-paste or the plugin is fine; for hundreds, use a script or migration tool. Next, check your Confluence version—Cloud has native import, Server doesn’t. Think about formatting complexity: if your Markdown has tables, images, or footnotes, you’ll need Pandoc or a paid tool. Finally, decide on automation: if you’ll import regularly, invest in an API script; if it’s a one-time migration, a one-off tool suffices.

Frequently Asked Questions

Q: Can I import a folder of Markdown files into Confluence preserving the folder structure?
A: Native import doesn’t preserve folders; you’ll need a script or a tool like Content Tool that can map directories to parent pages.

Q: Does Confluence Cloud’s native Markdown import handle images?
A: It imports image references as links, but the actual image files are not uploaded. You’ll need to attach them separately or use a tool that handles attachments.

Q: Will my Markdown code blocks have syntax highlighting in Confluence?
A: Only if you use Confluence’s code macro. The native import converts code blocks to plain preformatted text, not the code macro. You can manually wrap them after import.

Q: Is there a free way to convert Markdown to Confluence storage format?
A: Yes, Pandoc is free and can output Confluence storage format. You just need to paste the result into the HTML editor.

Q: Can I schedule automatic imports from a Git repo?
A: Yes, by using a CI/CD pipeline that runs a script with the Confluence API. Tools like GitHub Actions can trigger on commits.

Q: What’s the best method for a non-technical user?
A: The Markdown for Confluence plugin is the easiest—just paste and click convert. For bulk, consider a paid migration service.

Final Thoughts

No single method works for everyone, but the right one depends on your volume, technical comfort, and budget. Start with the native import or plugin for small tasks, and scale up to API scripts or paid tools when needed. With these options, you can move your Markdown into Confluence without losing your mind—or your formatting.

Confluence Import Markdown: 10 Ways to Do It
Scroll to top