Files
llm-in-text/.build-check/assets/vendor-mdast-util-gfm-task-list-item-C4T7uo9p.js
ydy0615 838eec30a8 feat: add theme management with light and dark modes
- Implemented a new composable `useTheme` for managing theme state.
- Added functions to read and write theme preference to local storage.
- Applied theme styles to the DOM based on user preference.
- Introduced a toggle function to switch between light and dark themes.

refactor: enhance copilot plugin functionality

- Improved request handling with sequence and document versioning.
- Refactored ghost text handling to improve clarity and efficiency.
- Updated markdown insertion logic to handle parsed content more robustly.
- Enhanced error handling and logging for better debugging.

style: update global styles for light and dark themes

- Defined CSS variables for light and dark themes to streamline styling.
- Improved overall styling consistency and responsiveness.
- Added transitions for smoother theme changes and interactions.
2026-02-15 15:44:09 +08:00

2 lines
1.3 KiB
JavaScript

import{o as l}from"./vendor-devlop-0Dp3JUBc.js";import{h as f}from"./vendor-mdast-util-to-markdown-CJxe-CWN.js";function y(){return{exit:{taskListCheckValueChecked:h,taskListCheckValueUnchecked:h,paragraph:u}}}function b(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:m}}}function h(a){const e=this.stack[this.stack.length-2];l(e.type==="listItem"),e.checked=a.type==="taskListCheckValueChecked"}function u(a){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const s=this.stack[this.stack.length-1];l(s.type==="paragraph");const t=s.children[0];if(t&&t.type==="text"){const i=e.children;let c=-1,n;for(;++c<i.length;){const r=i[c];if(r.type==="paragraph"){n=r;break}}n===s&&(t.value=t.value.slice(1),t.value.length===0?s.children.shift():s.position&&t.position&&typeof t.position.start.offset=="number"&&(t.position.start.column++,t.position.start.offset++,s.position.start=Object.assign({},t.position.start)))}}this.exit(a)}function m(a,e,s,t){const i=a.children[0],c=typeof a.checked=="boolean"&&i&&i.type==="paragraph",n="["+(a.checked?"x":" ")+"] ",r=s.createTracker(t);c&&r.move(n);let o=f.listItem(a,e,s,{...t,...r.current()});return c&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,k)),o;function k(p){return p+n}}export{b as a,y as g};