mrkdwn

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

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

Converter converts Slack mrkdwn to standard markdown

func NewConverter

func NewConverter(service SlackService) *Converter

NewConverter creates a new Converter instance

func (*Converter) ConvertToMarkdown

func (c *Converter) ConvertToMarkdown(ctx context.Context, mrkdwn string) string

ConvertToMarkdown converts Slack mrkdwn to standard markdown

type SlackService

type SlackService interface {
	GetUserProfile(ctx context.Context, userID string) (string, error)
	GetChannelName(ctx context.Context, channelID string) (string, error)
	GetUserGroupName(ctx context.Context, groupID string) (string, error)
}

SlackService defines the interface for querying Slack data This interface matches the methods available in pkg/service/slack.Service

Jump to

Keyboard shortcuts

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