CanvasNative v1.1.0 CanvasNative.V0.CodeType
A code line in a v0 canvas native document.
iex> source = wrap(type_name <> "-ruby") <> "class Foo"
iex> CodeType.match_native(source)
%CodeType{content: "class Foo",
source: wrap(type_name <> "-ruby") <> "class Foo",
type: type_name, language: "ruby"}
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
.