MCPcopy
hub / github.com/docsifyjs/docsify / taskListItemCompiler

Function taskListItemCompiler

src/core/render/compiler/taskListItem.js:1–9  ·  view source on GitHub ↗
({ renderer })

Source from the content-addressed store, hash-verified

1export const taskListItemCompiler = ({ renderer }) =>
2 (renderer.listitem = text => {
3 const isTaskItem = /^(<input.*type="checkbox"[^>]*>)/.test(text);
4 const html = isTaskItem
5 ? `<li class="task-list-item"><label>${text}</label></li>`
6 : `<li>${text}</li>`;
7
8 return html;
9 });

Callers 1

_initRendererMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…