Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Import markdown into Confluence

According to the Confluence documentation on http://Importing Content Into Confluence, there is no supported way of importing markdown. Is this the case?

3rd party solutions seem not to work with current, self-hosted versions.

15 answers

in days where markdown is basically the goto language for documentation of developers, not supporting it is insane. 

Everyone here around me hates confluence, our devs write docs in markdown or, preferably, asciidoctor.

The management insists of having documents in  confluence. And no, we can not install addons since this is done by different division/people and it requires process no one wants to go. A quite common situation. 
So guess what, confluence gets more and more negative feelings. All the mentioned work arounds are crap. It seams Atlassian is on a suicide trip by making developers hating their solution.

I agree. In our organization we have some users who like Confluence and we are keeping some of our documents there. The problem is much of my work includes documents using Markdown format. I find it hard to believe that Markdown is not supported out of the box.

Michael Uman
Lead S/W Engineer

Like # people like this

What other app would your developers recommend?

for devs,

something like with asciidoctor
or some home made stuff

or sphinx, with rst docs, python devs like it

then there is the 'just add markdown' to the wiki (github / lab have wikis)

whatever allows to write doc without to leave the IDE/editor currently in use

Like # people like this

Thank you. I don't think Alassian is for us. Too big bloated and crazy to get going here. We're on but have outgrown it. I'll take a look Antora and Sphinx. :)

There are a number of ways.

A. To insert markdown in the editor:

  1. Choose Insert > Markup 
  2. Select Markdown
  3. Type or paste your text - the preview will show you how it will appear on your page
  4. Choose Insert.

B. Use the Mardown macro which renders Markdown from a URL 

C. Use HTML Macro

  1. Use pandoc to convert your markdown file to html
    • e.g.  pandoc -f markdown -s -o myfile.html
  2. On your confluence page insert a HTML macro which allows the use of HTML code within a Confluence page.
    • Note that HTML macros are disabled by default.

This doesn't work at all for me. It just pastes my text as regular body text in the page, and removes a lot of whitespace. We're using Confluence hosted by Atlassian.

Like # people like this

Me too. The preview is fine, but then it's just a big block of regular text.

Like # people like this

I get the same.  Preview looks good, but text on actual page not rendered correctly. Example:  inserted markdown has a '# HeadingExample'.  Preview looks great.  On the page, this is rendered as plain text 'h1. HeadingExample'.

Like # people like this

Same for me. Furthermore, the markup button doesn't work a second time and I have to clear my browser's "Local Storage" to be able to display it again.

But to no avail as even using it a second time accomplishes nothing.

Like # people like this

About A) 

For me the Insert/Markup(Markdown) Macro sometimes works as expected, but sometimes *not at all*  (maybe with too large contents, or missing new lines ??)

If it's not working, trying to fix it in the form also often fails (vs fixing in external editor, and re-copy&pasting into the form)  

IMO It would be great if that tool would be more powerful and robust. At least providing some 'reparse' button (in case the live editing is too tricky for large contents') or maybe it could give some hints, about issues detected while parsing the MD?!

The macro doesn't seem to exist anymore, neither does there exist an "Insert" menu anymore. When I copy *some* HTML from a page, some of it imports correctly, but things like `abc_*_foo` turn into bullet points... And when I paste the whole content, the editor acts like the clipboard is empty.

Like # people like this

works like a dream.


thanks you

Mark up > Markdown is it working at all? I mean quoting, code inserting, lists, tables e.t.c.?! Looks useless for anything more then simple headings.

This solution may not work for everyone, but I wrote a tool to do just this. It takes a markdown file and uploads it to confluence. I use it to sync my notes daily. It's not perfect, but it works:

Another importer script, written in Python (haven't tested yet):

Like # people like this

I actually just copied, and pasted the rendered Markdown. Seems to work alright. The marcos were not working for me.

Indeed, copying the rendered Markdown ( from VS-code "Markdown Preview") works *quite* well, BUT/except code blocks (rendered via ``` code ``` sections) are not properly migrated (just as normal text)

Does anybody know a way to also get code-blocks migrated (in a MD file)?

Like # people like this

I just copied the plain text of the markdown file into the editor, and it formatted it correctly.  Have you tried that?

Ooooh gash, I found the problem. The visual studio code is forcing my text with some info to behave like a code. I copy and paste it to sublime text and paste it to Jira and it works perfectly!

If you copy markdown from VS Code and use Chrome or the Chromium based version of Edge, then you can right-click and choose "Paste as Plain Text"......contrary to how it sounds, it will render the markup correctly!

Like # people like this

Simply pasting markdown into the document works for me as well.

Using pandoc, I just converted a page of Markdown (exported from the Notion app) into org-mode (an Emacs organizer/markup/task-management/everything "app"), and then used an export module to export that page to JIRA (Confluence) format. I could then paste that into a comment.

I wouldn't recommend it as a regular thing, but it did the job in this case, and I'm fairly fluent in all three markup languages, so I could fix something if it broke along the way.

If you have Notion, you can copy your markdown in it and then copy/paste it from Notion to Confluence.

Hi, for everyone that has come to this topic looking for answers or wanting enhancements, it's been my experience that Atlassian doesn't prioritize work on feature requests unless there is an issue filed that generates community interest.

But since their bug/issue tracking system is buried in their website, it may be hard to find.  For Confluence Server in general, you can go here:

There is a separate project for Confluence Server, if that is what you are using but I think features tend to make it into the Cloud version first.

I found an open Suggestion ticket here:

Given that I have come across numerous Atlassian Community posts lamenting about this for several years, I think that there is significant demand that hasn't been given proper visibility to Atlassian.

If you want this feature, please go vote for it.

Hi Jason,

These are the markdown add-ons that support server installations.  Of these, the only one that appears to do something close to an import is Marked, which is free and has very good reviews.  It allows you to point to a markdown file and show it in a Confluence page.

If this is a one time transfer of .md files, you might want to consider spinning up a free trial version of Confluence Cloud, installing the trial version of one of the Cloud markdown import add-ons (e.g. Confluence Pandoc), performing the import and then exporting the space and importing it into your server instance. (I've never tried this, so I don't know if it's possible, but it's worth exploring if you've got a large amount to import.)


If you you have intermediate familiarity with Python, you may be able to create a simple utility that takes as input a MarkDown file, and creates a Confluence page (as a child of an existing ancestor) that is consistently styled. The utility will use Confluence Remote API, Python Requests, and Python Markdown.

Here are some resources for you:

Python Requests:

Python Markdown:

Confluence Server REST API:

Page Information:

The Page Information link is there because the Confluence Server REST API uses Page IDs, and you can use the Page Information menu item to obtain the Page ID of the Confluence page you're viewing.

Hi Jason,

We released an add-on which allows importing documents from different file formats like Markdown, Word, ODT and many others: All-in-one File Importer for Confluence

Please give it a try and give us feedback if you see any issues. You can install from here:

Currently this add-on works on Confluence cloud. If there is enough interest from Atlassian community, we are more than happy to release server version.

We've been long-time users of Confluence. Personally I've always been frustrated with the WYSIWYG editor.

But then again, I've yet to see any product or plugin for any platform, successfully crack the web-based WYSIWYG editor nut. You'd think by now someone would have. But once you get to a certain level of formatting complexity, Confluence and every other web-based WYSIWYG editor starts soiling the bed. (E.g. in the case of Confluence, at some point you can't position the cursor with the keyboard, without skipping over entire sections. Or formatting one section will format whole chunks or even the entire document, the same way. Again - not unique problems to Confluence.) I think part of the problem is that if you make the mistake of changing the formatting of a section (e.g. to bullets and back to normal paragraph), rather than replacing formatting directives, it keeps adding ways that confuses itself. If web-based WYSIWYG editors would just do self-linting, that would probably be a big help.

It's similar to the problem of exporting a Word document to HTML. Even if you choose "simplified", the HTML is an absolute rat's nest. Running it through HTMLTidy is usually the only way to turn it into sensible HTML, but even that's often not enough.

When we (and specifically I) really started using Markdown, it was like a revelation. Finally, a way to do reasonably sophisticated formatting in a way that you have total control over the formatting directives, and it never gets confused. I use Markdown everywhere now.

But I was shocked to learn that Confluence can't to Markdown!

Suddenly, Confluence feels stone-age and very limited. Thinking of other possible shared documentation repository solutions...

My team developed a plugin that can help you, check out Markdown Extensions for Confluence.

. Here's a list of what it supports:

  • Import markdown from Github, Bitbucket, Gitlab, and generic URLs
  • Edit and preview markdown inline
  • Support for HTML within markdown
  • Offers extended markdown formatting

I just figured out that you can do the following:

  1. Write your markdown document
  2. Open it up in Chrome or any other MD viewer. You can use an extension like this to view MD files in Chrome.
  3. Copy all content
  4. Paste on your Confluence Documentation Page.


It worked for me. 

This is great, my solution is similar.

  1. Write markdown in Visual Studio Code
  2. Open preview `ctrl + shift + v`
  3. Copy contents and paste into Confluence
Like 23 Studios likes this

Hi there, appreciate everyone's input on this. I'm adding some clarification on what's possible OOTB today with Confluence.

Confluence Cloud:

Our Confluence Cloud editor (sites hosted on supports markdown on the fly, so text with markdown formatting that is pasted directly into the editor will be converted. You can see more on supported markdown in Confluence's keyboard shortcuts.

We don't yet offer a plain text markdown editor so you can edit in markdown, but we're tracking interest on our feature request, Edit in Markdown with the new editor for Confluence Cloud.


With self-hosted Confluence, this can be done OOTB with the Markup macro (select Insert > Markdown from the drop-down).

You also have the option of adding a Marketplace app - Markdown Macro for Confluence is a free one, but you can browse apps specific to Confluence Server and Data Center in addition.

As for native support in self-hosted Confluence, we're collecting feedback at our feature requests for: 

Along with a bug that has since been resolved as of Confluence 6.14 and up:

You can see how feature requests are considered in our New Features Policy.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

558 views 19 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you