Skip to content

[Bug] Documentation parsing error of backtics to spaces #32

@bensonce

Description

@bensonce

Backtic characters are being parsed incorrectly around code blocks from the documentation.

Current Behavior

Given the JSON string

"Checks if active IAM access keys are rotated (changed) within the number of days specified in`maxAccessKeyAge`. The rule is NON_COMPLIANT if access keys are not rotated within the specified time period. The default value is 90 days."

The result in HCL looks like this

"Checks if active IAM access keys are rotated (changed) within the number of days specified in maxAccessKeyAge . The rule is NON_COMPLIANT if access keys are not rotated within the specified time period. The default value is 90 days."

The backtic () character is being replaced by a whitespace character at the end of the maxAccessKeyAge` word.

Expected Behavior

Given the JSON string

"Checks if active IAM access keys are rotated (changed) within the number of days specified in`maxAccessKeyAge`. The rule is NON_COMPLIANT if access keys are not rotated within the specified time period. The default value is 90 days."

The result in HCLshould look like this

"Checks if active IAM access keys are rotated (changed) within the number of days specified in maxAccessKeyAge. The rule is NON_COMPLIANT if access keys are not rotated within the specified time period. The default value is 90 days."

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions