MCPcopy Create free account
hub / github.com/cogentcore/core / ReadMDString

Function ReadMDString

htmlcore/md.go:42–44  ·  view source on GitHub ↗

ReadMDString reads MD (markdown) from the given string and adds corresponding Cogent Core widgets to the given [core.Widget], using the given context.

(ctx *Context, parent core.Widget, s string)

Source from the content-addressed store, hash-verified

40// ReadMDString reads MD (markdown) from the given string and adds
41// corresponding Cogent Core widgets to the given [core.Widget], using the given context.
42func ReadMDString(ctx *Context, parent core.Widget, s string) error {
43 return ReadMD(ctx, parent, []byte(s))
44}

Callers 2

mainFunction · 0.92
TestMDFunction · 0.85

Calls 1

ReadMDFunction · 0.85

Tested by 1

TestMDFunction · 0.68