Bumps [github.com/hashicorp/terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) from 0.14.1 to 0.15.0. - [Release notes](https://github.com/hashicorp/terraform-plugin-docs/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-docs/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-docs/compare/v0.14.1...v0.15.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-docs dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
16 lines
391 B
Go
16 lines
391 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package mdplain
|
|
|
|
import "github.com/russross/blackfriday"
|
|
|
|
// Clean runs a VERY naive cleanup of markdown text to make it more palatable as plain text.
|
|
func PlainMarkdown(md string) (string, error) {
|
|
pt := &Text{}
|
|
|
|
html := blackfriday.MarkdownOptions([]byte(md), pt, blackfriday.Options{})
|
|
|
|
return string(html), nil
|
|
}
|