Files
llm-in-text/.build-check/assets/vendor-mdast-util-gfm-strikethrough-Cj9qKt6Q.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
624 B
JavaScript

const h=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];o.peek=s;function l(){return{canContainEols:["delete"],enter:{strikethrough:a},exit:{strikethrough:c}}}function g(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:h}],handlers:{delete:o}}}function a(e){this.enter({type:"delete",children:[]},e)}function c(e){this.exit(e)}function o(e,k,r,i){const n=r.createTracker(i),u=r.enter("strikethrough");let t=n.move("~~");return t+=r.containerPhrasing(e,{...n.current(),before:t,after:"~"}),t+=n.move("~~"),u(),t}function s(){return"~"}export{g as a,l as g};