Ensures temporary directories are cleaned up when the plugin loads and unloads, preventing potential issues from leftover files.
This addresses potential accumulation of temp files from previous sessions and on plugin disable.
Enhances security by validating output paths and executable paths.
This prevents path traversal attacks and command injection vulnerabilities
by ensuring that users can only specify valid relative paths within the vault
and safe executable paths. It also displays notices when the path is deemed unsafe.
Introduces a helper function to streamline the creation of margin input settings in the plugin settings tab. This improves code readability and reduces redundancy.
Uses a helper method to create the font dropdown settings, reducing code duplication and improving maintainability.
The shared logic for setting up font selection dropdowns is now encapsulated in a single function.
Replaces `child_process.exec` with `child_process.spawn` for both asynchronous and synchronous dependency checks.
This change mitigates potential command injection vulnerabilities by passing arguments separately, enhancing the security of the application.
Improves the font caching mechanism by using `child_process.spawn` instead of `child_process.exec` for enhanced security and reliability. This change also adds error handling for process spawning failures and includes the ability to set environment variables such as PATH.
Moves components and modules to more appropriate directories.
This change improves project organization and maintainability by grouping related files into logical directories, enhancing code discoverability and reducing potential naming conflicts.
Moves components and converters to more appropriate directories for better code organization.
Adds a dedicated function for copying images to the vault temp directory and generating relative paths, reducing code duplication and simplifying PDF embedding.
Introduces a helper function to generate Typst PDF embed syntax, including optional preview images and error handling.
This improves code readability and maintainability by centralizing the PDF embed logic.
Simplifies PDF embed processing by introducing a dedicated
`resolvePdfPath` method. This improves code readability and
maintainability by encapsulating the logic for finding PDF files
using different path resolution strategies. It also makes it easier to
test the path resolution logic independently.
Centralizes temporary directory creation and cleanup using a dedicated `TempDirectoryManager` class.
This change improves code maintainability and reduces redundancy by encapsulating temporary directory logic.
It also ensures that temporary directories are properly cleaned up after export operations, preventing potential disk space issues.
Introduces `ExportErrorHandler` to manage export-related errors, progress notices, and batch results.
This change provides a unified way to handle errors, display progress, and report results of export operations, improving code maintainability and user experience.
Introduces a helper class to encapsulate the logic for preparing the export configuration modal settings.
This improves code readability and maintainability by extracting the complex settings preparation logic from the main plugin file.
The helper handles both single and multi-file export scenarios, ensuring consistent settings across different export contexts.
Consolidates dependency checking logic into a dedicated `DependencyChecker` class.
This improves code organization and reusability.
It now uses a single method for checking all dependencies, both asynchronously (for displaying status) and synchronously (for startup checks).
It also augments the PATH environment variable to include common binary locations to improve detection.
The status modal now displays more detailed information about each dependency.
Ensures that the format specified in the export configuration
takes precedence over the default format specified in the settings
when populating template variables for PDF conversion.
Additionally, only uses the settings default for the export format
if one is not already provided.
Removes the CLAUDE.md file and adds it to .gitignore.
The CLAUDE.md file is no longer needed and is removed to clean up the repository.
Adding it to .gitignore prevents it from being accidentally re-added.
Extends the .gitignore file to exclude various temporary files, cache directories, and project-specific files, preventing them from being tracked by Git. This helps to keep the repository clean and focused on relevant source code.
Updates the minimum Obsidian version required to run the plugin
to 1.9.12 and marks the plugin as desktop only.
This ensures compatibility with newer Obsidian APIs and features,
and reflects that the plugin is intended for desktop use only.
Refines the naming and descriptions of the export commands
to better reflect their functionality and improve user
understanding. The "Export current note to PDF" command is
now "Export current note(s)", and "Export to PDF with
configuration" is now "Export with configuration…".
Refactors the export configuration modal to provide a better user experience and more accurate default values.
- Removes the batch export feature from the right-click menu.
- Updates the template variables to derive from the settings tab.
- Modifies the reset function in the export config modal to reset to plugin defaults.
- Improves font handling and font size settings in the TypographySection of the export config modal, including slider for font size.
- Enhances default template variable initialization in the ModalState.
Removes configurable heading and small font sizes, and calculates the heading font size based on the body font size to ensure consistency across templates.
Updates the paper size selection in settings and modals to use a predefined list of supported sizes, ensuring consistency across the plugin and compatibility with Typst.
It also maps the selected paper size to its Typst equivalent before passing it to the converter, preventing issues with unsupported sizes.
The change also ensures that template validation uses the correct paper sizes.
Updates the margin settings to directly use centimeters, removing unnecessary conversions to points.
This simplifies the configuration and improves accuracy in setting page margins for PDF exports.
The settings tab and modal now accept and display margins in centimeters.
Replaces hardcoded page margin values with the `page-margin`
variable in the default and modern templates. This promotes
consistency and makes it easier to adjust margins globally.
Improves the report template's visual structure by reorganizing the title page elements and removing redundant heading counters.
The title page layout is enhanced for better readability and visual appeal. Heading counters were removed from the body as they were redundant. Adds table of contents outline.
Refines font configurations in article and modern templates.
Removes redundant "serif" and "sans-serif" generic families from the font stacks.
This change results in cleaner and more efficient font declarations.
Adds sections to the export configuration modal for behavior, page setup, and typography.
These sections allow users to configure export behavior like opening the PDF after export and preserving folder structure, as well as page setup options like page size, orientation, and margins.
Additionally, typography options for font selection and size configuration are included.
Updates default settings for export format and adds default values for new settings.
Removes the old TypographySection file.
Implements a folder suggestion component that provides
autocomplete for existing vault folders in folder path inputs.
This enhances the user experience by making it easier to select
existing folders when specifying file paths.
Removes the "Afraty Stencil" font from the default font stacks in the templates.
This change ensures a more consistent and reliable font rendering across different systems, as "Afraty Stencil" may not be universally available. The font stacks now prioritize more common and widely supported fonts.
Updates the default and fallback fonts in the template.
If a font is specified, it now includes "Concourse OT 3" as a fallback option.
If no font is specified, it now defaults to "Afraty Stencil" with "Concourse OT 3" as a fallback.
Updates the list of built-in templates, replacing 'single-page.typ' with 'modern.typ'.
This change reflects a shift in the default template options, offering users a more contemporary template choice.
Marks several tasks and subtasks as complete, indicating that the implementation phase for these features is finished.
The completed tasks include dependency checking, callout conversion, and pandoc execution enhancements.
Reflects completion of MarkdownPreprocessor tasks.
Specifically, marks the initial class creation,
wikilink parsing, embed parsing, and frontmatter
processing tasks as 'done'. Also, marks callout
parsing as 'in-progress'. Updates the timestamp
for the task list.
Initializes project with core configuration files.
Adds memories for code style conventions, codebase structure,
development guidelines, project overview, suggested commands,
task completion checklist, and tech stack.
These memories will help guide development and ensure consistency.
Sets up the foundational structure for the Obsidian Typst
PDF Export plugin.
Removes sample plugin code and fixes initial TypeScript type
declarations, establishing a clean starting point.
Configures the plugin manifest and settings infrastructure,
laying the groundwork for future development.
Adds task complexity report.
Introduces a product requirements document (PRD) for the Obsidian Typst PDF Export plugin.
The PRD outlines the plugin's goals, core features, technical architecture, user experience, implementation phases, and success metrics. It also covers technical considerations, future enhancements, risks, and appendices detailing Obsidian syntax support, template variables, and CSS to Typst mapping examples.
Sets up the core structure and configuration
files for the Taskmaster AI project, including agents,
commands, configurations, and a project-specific
Claude integration guide.
Sets up the basic structure for an Obsidian plugin
designed to export notes to Typst-generated PDFs.
This commit includes:
- Initial plugin manifest and configuration.
- Placeholder plugin class and settings.
- Basic .gitignore to exclude common files.
- Claude.md file to guide Claude AI on development
Task Master is imported for dev workflow.