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

Does not format/recognize inline code for offset in markdown #51

Open
rahulmlokurte opened this issue Jan 4, 2022 · 0 comments
Open

Comments

@rahulmlokurte
Copy link

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.

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

1 participant