Markdown import - detection of code block

Robert Graf May 2, 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
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 2, 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 2, 2018

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
TAGS
AUG Leaders

Atlassian Community Events