terrafmt icon indicating copy to clipboard operation
terrafmt copied to clipboard

Does not format/recognize inline code for offset in markdown

Open rahulmlokurte opened this issue 4 years ago • 0 comments

terrafmt does not extract terraform files and does not do inline code formatting from the README.md file if, we start the Three backquotes after 4 spaces in the README.md file. It only works, if we start the Three backquotes at column 0.

Ex:

Works: works

terrafmt blocks README.md

####### B1 @ #587 resource "aws_lambda_function" "pass" { function_name = "test-env" role = "" runtime = "python3.8"

environment { variables = { AWS_DEFAULT_REGION = "us-west-2" } } } Does not work

Does not work

terrafmt blocks README.md

note: markdown format allows having an offset.

rahulmlokurte avatar Jan 04 '22 08:01 rahulmlokurte