CanvasNative v1.0.3 CanvasNative.V0.OrderedListType
An item in an ordered list in a v0 canvas native document.
iex> source = wrap(type_name <> "-1") <> "2. OLLI"
iex> OrderedListType.match_native(source)
%OrderedListType{content: "OLLI",
source: wrap("ordered-list-item-1") <> "2. OLLI",
type: type_name, level: 1, number: 2}
Summary
Functions
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
.