Files
llm-in-text/.build-check/assets/vendor-micromark-extension-gfm-task-list-item-BZuxQwYN.js
T

2 lines
980 B
JavaScript
Raw Normal View History

import{f as h}from"./vendor-micromark-factory-space-BM4zcA-B.js";import{j as m,m as C,f as c}from"./vendor-micromark-util-character-Cn8n62xE.js";const l={name:"tasklistCheck",tokenize:L};function g(){return{text:{91:l}}}function L(n,i,r){const a=this;return e;function e(t){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(t):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(t),n.exit("taskListCheckMarker"),s)}function s(t){return m(t)?(n.enter("taskListCheckValueUnchecked"),n.consume(t),n.exit("taskListCheckValueUnchecked"),k):t===88||t===120?(n.enter("taskListCheckValueChecked"),n.consume(t),n.exit("taskListCheckValueChecked"),k):r(t)}function k(t){return t===93?(n.enter("taskListCheckMarker"),n.consume(t),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),u):r(t)}function u(t){return C(t)?i(t):c(t)?n.check({tokenize:o},i,r)(t):r(t)}}function o(n,i,r){return h(n,a,"whitespace");function a(e){return e===null?r(e):i(e)}}export{g};