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

Markdown import - detection of code block

Why isn't it possible to use/import typical specified markdown code block syntax which starts with

1) 4 spaces

Normal paragraph

    A Code-Block
    which starts with
    4 spaces

2) or with back-ticks

as described here https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code

 

Or do I something wrong?

We are using Confluence 6.5.1

1 answer

0 votes
Ann Worley Atlassian Team May 02, 2018

Hi Robert, 

Confluence Wiki Markup reviews what you can do with mark-up in Confluence. You can type wiki markup directly into the editor, and Confluence will convert it as you type. 

Thanks,

Ann

I know the link but there is no solution!

I have my complete program documentation as ReadMe.txt files with Markup-Syntax and parts of the documentation include command lines, e.g.

cd ~/test
copy a to b

So how do I write the markup in my ReadMe files so that Confluence can auto-detect a "code block" during markup-insert?

I know I can write

{code:language=text}
cd ~/test
copy a to b
{code}

but this is not a typical readable markdown in a ReadMe file as e.g.

```
cd ~/test
copy a to b
```

Suggest an answer

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

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

3,744 views 15 37
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