CanvasNative v1.1.0 CanvasNative.V0.ImageType
An image in a v0 canvas native document.
iex> source = wrap("image") <> "https://example.com"
iex> match_native(source)
%ImageType{content: "https://example.com", url: "https://example.com",
metadata: %{}, type: "image",
source: wrap("image") <> "https://example.com"}
Summary
Functions
Format a line as a JSON object
Match a Markdown string and return a struct or nil
Match a native string against @native_pattern
, returning a struct or
nil
Name for this type
Types
Functions
Specs
match_markdown(String.t, CanvasNative.V0.MarkdownParser.context) ::
t |
nil
Match a Markdown string and return a struct or nil
.
Match a native string against @native_pattern
, returning a struct or
nil
.