Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I insert code blocks in markdown and have the syntax highlighting work on Confluence?

John Larkin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2019

The prompt should state it all, but I'll provide a little bit more detail.

Normally, when I write markdown i can enable code comments with:

```

my code goes here

```

 

When I preview that markdown, everything looks fine. However, when I go onto my Confluence page, go to Insert More Content > Markup > Insert Markup

and copy and paste that totally valid markdown, it doesn't really format the code or do any type of nice code blocking. Is there anyway to get this to work?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events