-
Notifications
You must be signed in to change notification settings - Fork 535
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
0.8.0-alpha - poor formatting #138
Comments
Thank you @grimm26 for the feedback, and specially for providing the full config example to work with. I'll take a look later today. |
Sorry for the delayed response. I found something interesting. It seems the issue is not with the way terraform-docs generates the result, rather than the different markdown engines processes them, which unfortunately makes it even harder to solve. I've used your example config to generate the table output, and
I tried something else to generate fully html based table rather than mixing html tags inside markdown table, which unfortunately didn't make any difference. So at the moment I'm a bit out of options and trying to understand the difference between these markdown renderer engines. But I wanted to ask you, in the meantime, to give it a try with |
@khos2ow I added the output using the document option to my gist. The result is definitely cleaner, but I'd much rather have a table format. |
@grimm26 yeah I completely understand, I was only trying to see if the issue is within the |
@grimm26 Can you take a look at this? This seems to be rendered properly. https://gist.github.com/khos2ow/2dea709aac2b5b3d02198130dc3160e2 and its raw file. I took the same approach as you did, but instead of removing |
@khos2ow Yes, that is MUCH better! |
Great, I'm going to open a PR and cut another RC today, please test it out and give us the feedback. |
Feel free to reopen this ticket if you still face the issue after using the |
Prerequisites
Put an
x
into the box that applies:For more information, see the Contributing Guidelines.
Description
I tried out 0.8.0-alpha and the formatting was less than ideal. The content in the Type and Default columns are wrapped with
code
andpre
so the rows are very long when there are complex types and defaults. I removed thepre
tags to avoid this. I also had a default that was a one element list of "*" which should be escaped.The variables file, the original generated md table, and my modified md table are in this gist https://gist.github.com/grimm26/a0ced6cdfb0f8d6ec5377abe2ca5ba3f
Version
terraform-docs version v0.8.0-alpha darwin/amd64 BuildDate: 2019-12-23T10:16:00-06:00
The text was updated successfully, but these errors were encountered: