Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I pass a multiline document into the body? #1

Open
augustgerro opened this issue Apr 30, 2020 · 1 comment
Open

How can I pass a multiline document into the body? #1

augustgerro opened this issue Apr 30, 2020 · 1 comment

Comments

@augustgerro
Copy link

augustgerro commented Apr 30, 2020

I try to past:

resource confluence_content "default" {
  space = "DO"
  title = "Example Page"
  body  = <<HERE
1.  create Dockerfile

2.  create docker-compose.yaml

2.1  define: parametrs, volumes


3. docker-compose up -d

Right     | Left   | Center 
---------:| :----- |:-----:
Computer  |  $1600 | one
Phone     |    $12 | three
Pipe      |     $1 | eleven

  HERE
}

But in confluence page:
image

or

resource confluence_content "default" {
  space = "DO"
  title = "Example Page"
  body = templatefile("${path.module}/doc.md", {
  })
}
❯ cat doc.md             
# Header 1 

1.  create Dockerfile

2.  create docker-compose.yaml

2.1  define: parametrs, volumes


3. docker-compose up -d

## Header 2

|    Right | Left  | Center |
|---------:|:------|:------:|
| Computer | $1600 |  one   |
|    Phone | $12   | three  |
|     Pipe | $1    | eleven |

Result:
image

Expected result:
image

Are you there any way to insert the structure of the document?

@chickenandpork
Copy link

Did you consider structuring your document as an HTML? Asking, not accusing, but if you did a here-doc as you have, but with HTML markup, you might get what you're looking for.

Extra markup in here for confluence-specific things: https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants