mdutils

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeBlock

func CodeBlock(language string, code string) string

CodeBlock returns a markdown code block.

Note that it expects the code to be a single line if it is used in list entry.

TODO: Add support for multi-line code in list entry.

func FormatResourceDescription

func FormatResourceDescription(description string, args ...any) string

func FormatSchemaDescription

func FormatSchemaDescription(description string, args ...any) string

func InlineCodeBlock

func InlineCodeBlock(code string) string

Types

type DescriptionFormatter

type DescriptionFormatter struct {
	// contains filtered or unexported fields
}

func NewDescriptionFormatter

func NewDescriptionFormatter() *DescriptionFormatter

func (*DescriptionFormatter) Format

func (f *DescriptionFormatter) Format(description string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL