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

Robert Graf May 02, 2018

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

Robert Graf May 02, 2018 • edited

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

860 views 0 19
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