diff --git a/pkg/tfgen/docs.go b/pkg/tfgen/docs.go index 67e1ab158..c9e7f64fd 100644 --- a/pkg/tfgen/docs.go +++ b/pkg/tfgen/docs.go @@ -1085,6 +1085,12 @@ func (g *Generator) convertExamples(docs, name string, stripSubsectionsWithError return "" } + if strings.Contains(docs, "{{% examples %}}") { + // The provider author has explicitly written an entire markdown document including examples. + // We'll just return it as is. + return docs + } + if strings.Contains(docs, "```typescript") || strings.Contains(docs, "```python") || strings.Contains(docs, "```go") || strings.Contains(docs, "```yaml") || strings.Contains(docs, "```csharp") || strings.Contains(docs, "```java") {