mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
Code blocks support for all formats. Single line break support (#123)
* HTML-ize code blocks inside a markdown table. Single line break. Add support for embedding markdown code blocks inside markdown tables Add support for single-line breaks: when the line ends with 2 spaces, place a single <br>. * Fix the testsuite, todo improve the escape code for document * Add the WithIndent testdata
This commit is contained in:
committed by
Khosrow Moossavi
parent
ec346a0fe8
commit
ab42f0d097
@@ -57,3 +57,18 @@ variable "input-with-pipe" {
|
||||
description = "It includes v1 | v2 | v3"
|
||||
default = "v1"
|
||||
}
|
||||
|
||||
variable "input-with-code-block" {
|
||||
description = <<EOD
|
||||
This is a complicated one. We need a newline.
|
||||
And an example in a code block
|
||||
```
|
||||
default = [
|
||||
"machine rack01:neptune"
|
||||
]
|
||||
```
|
||||
EOD
|
||||
default = [
|
||||
"name rack:location"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user