Files
dealplustech/node_modules/micromark-extension-gfm-task-list-item/lib/html.js
Kunthawat 77ac4d2d05 feat: Upgrade to Astro with full PDPA compliance
PDPA Features:
 Cookie consent banner
 Consent logging API
 Admin dashboard
 Privacy Policy
 Terms & Conditions

Technical:
 Astro 5.x + Tailwind v4
 Docker on port 80
 SQLite database
 15 pages built

Ready for Easypanel deployment.
2026-03-12 10:01:04 +07:00

29 lines
657 B
JavaScript

/**
* @import {HtmlExtension} from 'micromark-util-types'
*/
/**
* Create an HTML extension for `micromark` to support GFM task list items when
* serializing to HTML.
*
* @returns {HtmlExtension}
* Extension for `micromark` that can be passed in `htmlExtensions` to
* support GFM task list items when serializing to HTML.
*/
export function gfmTaskListItemHtml() {
return {
enter: {
taskListCheck() {
this.tag('<input type="checkbox" disabled="" ');
}
},
exit: {
taskListCheck() {
this.tag('/>');
},
taskListCheckValueChecked() {
this.tag('checked="" ');
}
}
};
}