mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
fix: Do not escape strings inside code blocks (#155)
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
/**
|
||||
* Usage:
|
||||
*
|
||||
* module "foo" {
|
||||
* Example of 'foo_bar' module in `foo_bar.tf`.
|
||||
*
|
||||
* ```hcl
|
||||
* module "foo_bar" {
|
||||
* source = "github.com/foo/bar"
|
||||
*
|
||||
* id = "1234567890"
|
||||
@@ -15,6 +18,7 @@
|
||||
* Date-Created = "20180101"
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
|
||||
resource "tls_private_key" "baz" {}
|
||||
|
||||
@@ -100,3 +100,8 @@ This description is itself markdown.
|
||||
It spans over multiple lines.
|
||||
EOF
|
||||
}
|
||||
|
||||
variable "no-escape-default-value" {
|
||||
description = "The description contains `something_with_underscore`. Defaults to 'VALUE_WITH_UNDERSCORE'."
|
||||
default = "VALUE_WITH_UNDERSCORE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user