Commit graph

12 commits

Author SHA1 Message Date
JK
ba4689aa28 fix: cast types to unknown for compatibility in TikzJaxLoader and worker functions 2026-06-06 12:04:08 +02:00
JK
ba4f64eeb4 Refactor documentation and enhance features for TeXcore plugin
- Updated PDF export documentation to clarify features and settings.
- Improved quick preview functionality with detailed technical architecture.
- Enhanced equation search and autocomplete sections for better user guidance.
- Streamlined snippets documentation for command usage and text transformations.
- Revamped TikZ diagrams section to include graphical editor details and usage instructions.
- Revised getting started guide for clearer step-by-step setup instructions.
- Added new navigation and configuration options in the documentation structure.
- Updated plugin manifest files with improved descriptions for clarity.
2026-06-06 11:50:35 +02:00
JK
bea33c7cac feat(tikz): decouple TikZJax loader and assets for fully offline, worker-based rendering
- Extracted 214 TeX libraries, packages, core formats, and WebAssembly binaries from monolithic `tikzjax.js` into local `tikzjax-assets/` folder.
- Replaced monolithic 7MB runtime JS asset download from GitHub with a lightweight loader and Web Worker compilation engine.
- Implemented `tikzjax.worker.ts` to execute the TeX engine in a background Web Worker thread using modern Web standard APIs, preventing main-thread UI locks.
- Implemented `TikzJaxLoader` to parse code block preambles, lazily load/decompress assets synchronously via native `zlib`, cache core buffers in memory, and compile diagrams via the worker.
- Refactored `renderer.ts` and `live-preview-overlay.ts` to utilize the async loader, removing DOM-polluting `<script>` tags, global mutation observers, and custom window hooks.
- Swapped unsafe `.innerHTML` DOM writes with secure browser `DOMParser` APIs for SVG parsing.
- Configured `esbuild` and `package.json` to recursively copy `tikzjax-assets/` to both development and production release locations.
- Removed temporary extraction scripts to keep runtime codebase clean.
- Added asset origin citations to module README, project root README, and MkDocs features documentation.
- Fixed all 111 ESLint type check and style errors, ensuring clean linter execution.
2026-06-05 15:19:32 +02:00
JK
4aa6d9cdac Updated Naming Convention 2026-06-05 14:50:35 +02:00
JK
b6392a5523 refactor: reorganize src into modular structure and increase test coverage 2026-06-04 20:50:07 +02:00
JK
0f00ee5f90 setting up prod release 2026-06-04 20:26:28 +02:00
JK
bcc1be7933 updating the plugin 2026-06-04 20:12:07 +02:00
JK
80f7042a57 feat(snippets): streamline snippet management and introduce text transformation features 2026-06-04 20:12:05 +02:00
JK
94cd23a4c3 Added docs 2026-06-04 20:12:04 +02:00
JK
02da857384 Docs updating 2026-06-04 20:12:04 +02:00
JK
230193aa1d refactor: remove legacy styles and enhance search functionality
- Deleted unused CSS/SCSS files: generated-styles.css, obsidian-styles.css, styles.scss, framed.scss, plain.scss, mathwiki.scss, vivid.scss, and main.css.
- Introduced new `main.css` with optimized styles for equation numbering, theorem callouts, and dependency validation.
- Updated esbuild.config.mjs to copy `main.css` to the development vault.
- Simplified `renderSuggestion` in `core-search.ts` and removed redundant class logic in `modal.ts`.
- Streamlined styling and improved maintainability while enhancing search behavior.
2026-06-04 20:12:03 +02:00
JK
7e75089cb2 initializing 2026-06-04 20:11:56 +02:00