md

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtEveryone

func AtEveryone() string

func AtPerson

func AtPerson(id, name string) string

AtPerson @指定人

自定义机器人仅支持使用 open_id、user_id @指定人

https://open.feishu.cn/document/common-capabilities/message-card/message-cards-content/using-markdown-tags?lang=zh-CN#abc9b025

func Bold

func Bold(s string) string

func GreenText

func GreenText(s string) string

func GreyText

func GreyText(s string) string

func HorizontalRule

func HorizontalRule() string
func Hyperlink(s string) string

func Image

func Image(imgKey, hoverText string) string

Image

  • 仅支持 Markdown 组件
  • 不支持在 text 元素的 lark_md 类型中使用

func Italic

func Italic(s string) string

func LineBreak

func LineBreak() string

func RedText

func RedText(s string) string

func Strikethrough

func Strikethrough(s string) string
func TextLink(text, link string) string

Types

type TextTagColor

type TextTagColor string
const (
	TextTagColorNeutral   TextTagColor = "neutral"
	TextTagColorBlue      TextTagColor = "blue"
	TextTagColorTurquoise TextTagColor = "turquoise"
	TextTagColorLime      TextTagColor = "lime"
	TextTagColorOrange    TextTagColor = "orange"
	TextTagColorViolet    TextTagColor = "violet"
	TextTagColorIndigo    TextTagColor = "indigo"
	TextTagColorWathet    TextTagColor = "wathet"
	TextTagColorGreen     TextTagColor = "green"
	TextTagColorYellow    TextTagColor = "yellow"
	TextTagColorRed       TextTagColor = "red"
	TextTagColorPurple    TextTagColor = "purple"
	TextTagColorCarmine   TextTagColor = "carmine"
)

Jump to

Keyboard shortcuts

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