Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to paste markdown using new editor?

How does one paste markdown into the new editor and NOT get it formatted as a code block but rather as properly formatted text?

 

I have already gone through these resources:

https://jira.atlassian.com/browse/CONFCLOUD-65663

https://jira.atlassian.com/browse/CONFCLOUD-65756

Updated keyboard shortcuts, autocomplete, and full Markdown support

5 answers

1 accepted

1 vote
Answer accepted
Diego Atlassian Team Apr 19, 2019

Hello there!

Tyler, I have tried this procedure on our new Fabric Editor and it worked as expected.

I copied the text from a plain text editor (notepad, or in my case Sublime). And then, pasted it straight into the page I was creating.

We could try the following:

  1. Create some markdown text in a plain text editor
  2. Copy it
  3. Paste into Confluence
  4. Check if it gets converted

I have tried the following text:

*TEXT*

_TEXT_

**TEXT**

__TEXT__

* LIST
* LIST

1. LIST
2. LIST

> QUOTE QUOTE

Right upon pasting, the text was displayed as formatted text.

I have also tried to copy directly from the text above (from browser) and paste it into Confluence Editor. It did not work. However, If I paste it back in a plain text editor and then copy it, Confluence recognizes the markdown.

With this issue in mind, I have filed this report:

CONFCLOUD-66301 | Copying and Pasting markdown from webpage on Fabric Editor renders unformatted text

So, you could go over there to vote and watch this issue. Voting helps to increase the issue visibility and watching will keep you up to date with everything posted there!

 Further, Could you help us understand things a little better?

  1. Has this worked at some point?
  2. Is this behaviour affecting you regardless of browser being used?
  3. Is this affecting other users as well?
  4. Is this happening on already existing pages?
  5. Is this happening on newly created pages?

Let us know from you Tyler!

Thank you @Diego for the thorough testing.  Answers to your questions:

 

  1. Has this worked at some point?
    • No as it relates to the NEW editor.
  2. Is this behaviour affecting you regardless of browser being used?
    • Per my comments in CONFCLOUD-65756, my original copy source of markdown was coming from the VS Code editor where the markdown would be interpreted as a code block rather than being formatted properly when pasted.  This is quite the opposite of what you experienced, which I have not tried yet, in CONFCLOUD-66301 where the text pasted is not formatted at all.
  3. Is this affecting other users as well?
  4. Is this happening on already existing pages? No, but since the markdown macro is not supported anymore per CONFCLOUD-65663 using the old editor it is difficult to get large amounts of markdown text imported.
  5. Is this happening on newly created pages?
    • Yes using the new editor.

Curious why this answer is accepted if the bug is still open?

Like # people like this

Markdown has now been changed since the update. So what used to work will again look like a code snippet. I've not yet found a resolution to this yet.

The workaround is to go into the 'Old view', Click to edit description, Paste, Save and switch to the new view again.

Come on Atlassian, this is seriously annoying.

Like # people like this

Yeah it's really silly.

I have a README file in a repo that has simply outgrown, it needs to be moved here so we can have child pages. Being unable to straight up copy and paste markdown into a markdown editor is just....like wtf.

Like # people like this

i normally write my md files in vs code and push them to a azure devops git repo on because the devops wiki can be deployed directly from git.  (amazing btw)

i tried copy and paste from vs code into confluence cloud and it was formatting as a code snippet. So I pasted into a notepad and then copy and paste again into confluence and it formatted correctly. 

Like # people like this

When you paste, make sure to select "Paste and Match Style" from your browser. 

Like # people like this

Right click, then select 'Paste as plain text'. It works in Chrome v89

Paste from VS Code into Notepad works in Firefox.
As far as I can tell, VS Code should behave no differently to notepad. I even tried switching the doc in VS Code from UTF-8 to Windows 1252 codepage, and it still pasted as code!

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 found a good workaround:

Instead of copying the markdown source code, let the markdown be rendered (for example using the "Preview" functionality of Visual Studio Code or some other markdown editor).

Then copy the rendered HTML and paste it into Confluence.

This means that the markdown editor is better at converting HTML to markdown, than markdown to markdown.

/me blinks

Right click, then select 'Paste as plain text'. It works in Chrome v89

The new editor will apply any styles that are part of the clipboard contents. If you copied the text from a webpage or your IDE it will likely have formatting such as font and text color.

Visual Studio and JetBrains will both copy with an indicator that the text is code. When pasting Confluence correctly formats it as a code block.

 

When pasting markdown that you want Confluence to interpret you must paste it as plain text. (CTRL+SHIFT+V)

Suggest an answer

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

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. We la...

204 views 2 13
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