CanvasNative v1.0.3 CanvasNative.V0.LinkDefinitionType

A link definition in a v0 canvas native document.

iex> source = "[example]: https://example.com"
iex> match_native(source)
%LinkDefinitionType{source: "[example]: https://example.com",
                    content: "[example]: https://example.com",
                    label: "example", url: "https://example.com",
                    type: type_name}

Summary

Functions

Match a native string against @native_pattern, returning a struct or nil

Name for this type

Types

t :: %CanvasNative.V0.LinkDefinitionType{content: String.t, label: String.t, source: String.t, type: term, url: String.t}

Functions

match_markdown(markdown, ctx \\ %{has_title: false, in_code: false, last_line_blank: false})

Specs

Match a Markdown string and return a struct or nil.

match_native(native)

Specs

match_native(String.t) :: t | nil

Match a native string against @native_pattern, returning a struct or nil.

new(map)

Specs

new(map) :: t
type_name()

Specs

type_name :: String.t

Name for this type.