You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The export map supports the development condition.
Run node --conditions development module.js to get instrumented dev code.
Without this condition, production code is loaded.
gfmTaskListItem()
Create an HTML extension for micromark to support GFM task list items
syntax.
Returns
Extension for micromark that can be passed in extensions, to enable GFM
task list items syntax (Extension).
gfmTaskListItemHtml()
Create an HTML extension for micromark to support GFM task list items when
serializing to HTML.
Returns
Extension for micromark that can be passed in htmlExtensions to support GFM
task list items when serializing to HTML
(HtmlExtension).
Authoring
It is recommended to use lowercase x (instead of uppercase X), because in
markdown, it is more common to use lowercase in places where casing does not
matter.
It is also recommended to use a space (instead of a tab), as there is no benefit
of using tabs in this case.
GitHub itself uses slightly different markup for task list items than they
define in their spec.
When following the spec, as this extension does, only inputs are added.
They can be styled with the following CSS:
The check is only allowed at the start of the first paragraph, optionally
following zero or more definitions or a blank line, in a list item.
The check must be followed by whitespace ([\t\n\r ]*), which is in turn
followed by non-whitespace.
Types
This package is fully typed with TypeScript.
It exports no additional types.
Compatibility
Projects maintained by the unified collective are compatible with maintained
versions of Node.js.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line,
micromark-extension-gfm-task-list-item@^2, compatible with Node.js 16.
This package works with micromark version 3 and later.