CanvasNative v1.0.3 CanvasNative.V0.ChecklistType
A checklist item in a v0 canvas native document.
iex> source = wrap(type_name <> "-1") <> "- [ ] Checklist"
iex> ChecklistType.match_native(source)
%ChecklistType{content: "Checklist",
source: wrap("checklist-item-1") <> "- [ ] Checklist",
type: type_name, checked: false, level: 1}
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
.