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 not working

Hi, I try to import my wiki from github into confluence by copy / pasting the markdown content oof them into Insert -> Markup , but when I select markdown from the pop-up page, it import me as the markup format into confluence.
Even so, when I try to select the menu Insert -> Markup again, nothing show. I need to clean my cache to be able to do it again, I use Google chrome, I also tried with Firefox, and the same thing append.

Do you have any insight of what I do wrong ?

8 answers

Same here, the markdown is not imported as it should, though the preview shows the markdown being correcly interpreted (but when I publish, the result is not the same)

I'm experiencing the same issue.

Like # people like this

I have the same issue.

First I try to enter markdown, and it sort of works.

But when I want to try again, the bloody thing doesn't even show up...

Is there a possibility to import a document and it will be interpreted as markdown allowing me to write documents offline?

4 votes

Same here.

First time I try to open the Markdown window: I can see the popup, and can insert Markdown-formatted text. The Markdown-preview looks OK, but when clicking 'Insert', the page itself is a mess.

The second time I try to open the Markdown window I get this console error:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

in persistent-storage.js

And nothing happens.

When you click embed markup then cancel it persists an empty text (I guess). because then it starts to throw this error (all browsers).

Uncaught SyntaxError: Unexpected token M in JSON at position 0
at JSON.parse (<anonymous>)
at Object.get (persistent-storage.js:29)
at On (editor_plugin_src.js:97)
at UC.<anonymous> (editor_plugin_src.js:387)
at i.exec.<computed> (atlassian-editor.min.js:1)
at T.execCommand (atlassian-editor.min.js:1)
at UC.execCommand (atlassian-editor.min.js:12)
at UC.b [as execCommand] (batch.js?externals=__local-default__&locale=en-GB:508)
at adg3-plugin.js:160
at HTMLLIElement.<anonymous> (adg3-plugin.js:441)

 

And error is in

value = JSON.parse(persistedValue);

of the following function

function get(name, scope, defaultValue) {
const storageKey = getStorageKey(name, scope);
const persistedValue = storeManager.getItem(storageKey);
let value;
if (persistedValue !== null) {
// un-stringify the value
value = JSON.parse(persistedValue);
} else if (typeof defaultValue !== "undefined") {
value = defaultValue;
} else {
value = null;
}
return value;
}

I'm getting this issue as well, I can't even see the pop up any more.

I have the same issue

clear local storage to see the modal again. as per the answer above. I have a related issue though that even if I choose markdown from the dropdown in the modal and the preview looks good in the modal I always get 'wiki content' on clicking the CTA.

💯

Hi Paul,

If you are not able to import markdown, you can use add-on we released recently: All-in-one File Importer for Confluence

It supports importing markdown files as well as Word, ODT and many others. If you have Github wiki, you can clone (download) them to your PC and use our file importer plugin. It supports multiple files at once, so if you have many files, you can import at once.

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

https://marketplace.atlassian.com/apps/1221333/all-in-one-file-importer-for-confluence

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

229 views 1 2
Join discussion

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