* Copyright 2020 The Go Authors. All rights reserved.* Use of this source code is governed by a BSD-style* license that can be found in the LICENSE file.

package postgres

import (
	
	
	
	
	
	
)
ASTTransformer is a default transformer of the goldmark tree.
type ASTTransformer struct{}
HTMLRenderer is a renderer.NodeRenderer implementation that renders pkg.go.dev readme features.
type HTMLRenderer struct {
	html.Config
}
Transform transforms the given AST tree to remove an unnecessary child node from the image node. This is so that the summary generated doesn't the text content of an image block.
func ( *ASTTransformer) ( *ast.Document,  text.Reader,  parser.Context) {
	_ = ast.Walk(, func( ast.Node,  bool) (ast.WalkStatus, error) {
		if ! {
			return ast.WalkContinue, nil
		}
		switch v := .(type) {
remove KindText childnode from image
			.RemoveChild(, .FirstChild())
		}
		return ast.WalkContinue, nil
	})
}
NewHTMLRenderer creates a new HTMLRenderer for a readme.
func ( ...html.Option) renderer.NodeRenderer {
	 := &HTMLRenderer{
		Config: html.NewConfig(),
	}
	for ,  := range  {
		.SetHTMLOption(&.Config)
	}
	return 
}
RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.