Documents export limitations related to dynamic content
and styling in Obsidian notes. Includes details on plugins
that may not translate to PDF and suggests workarounds
for ensuring important content is included.
Updates the regex patterns in the dependency checks
to be case-insensitive, improving flexibility and reliability
when parsing version information from executables.
Aligned with improvements on the version_checker branch.
Updates the README with specific minimum version requirements
for dependencies. Implements logic to check installed
dependencies against these minimum versions, issuing
warnings for outdated versions. Introduces utilities to
compare version strings for accurate validation.
This ensures compatibility and stability by guiding users
to update necessary tools for optimal performance.
Relates to version control and dependency management.
Updates security check patterns to include brackets for improved command injection prevention. Enhances test reliability by mocking Node's fs module to replace custom mock functions, aligning test behavior closer to actual usage scenarios and ensuring consistent outcomes.
No specific issue reference.
Corrects inconsistent indentation in FrontmatterProcessor methods
to improve code readability. Adds debug logging for unexpected
types in frontmatter display formatting to aid troubleshooting.
Improves robustness of font settings handling by clarifying
fallback behavior on load failure in TypographySection.
Relates to obsidian-bot-review
Implements error handling for font settings creation to ensure
fallback to default fonts if loading fails. Reorders font size
settings setup to follow font dropdowns for logical flow.
Enhances robustness and improves user settings experience.
Introduces sanitization of frontmatter to remove citation fields,
enhancing data privacy and integrity. Adjusts logic to store
sanitized frontmatter in metadata and reconstruct content while
preserving frontmatter when required. Ensures title in metadata
reflects noteTitle when provided.
Enhances frontmatter processing and metadata handling.
Updates path normalization to disallow absolute paths, ensuring
exports remain within the vault. Enhances security by rejecting
path traversal attempts.
Aligns with obisidian-bot-review branch requirements.
Eliminates redundant methods for adding fallback fonts
and removes an unnecessary import, simplifying the
TypographySection code structure. This streamlines
the user interface logic by cleaning up unused
dropdown components.
Relates to task on branch obsidian-bot-review.
Disables sentence-case rule for UI elements where proper nouns
are used, ensuring intended capitalization is preserved for
acronyms and font names. Adds comments to justify each override
and re-enables the rule after relevant sections.
Enhances path handling by skipping normalization of absolute paths to preserve leading slashes. This prevents potential validation errors when checking output folder paths.
This change increases accuracy and reliability of the path validation logic.
Enhances export submission logic by adding error handling to
manage failures, logging errors for debugging, and providing
user feedback. Re-enables buttons post-failure for retry or
cancellation. Updates description to clarify output folder path
can be absolute or relative.
Relates to user feedback on error transparency.
Replaces manual conversion of absolute paths to vault-relative paths with a utility method to improve code readability and maintainability across various modules. Removes redundant code and streamlines path handling operations.
This refactoring helps ensure consistent path management and reduces potential errors related to path conversion.
Relates to obsidian-bot-review
Introduces toVaultRelativePath method to centralize path conversions,
reducing code duplication and improving maintainability. Extracts
image download completion logic into handleDownloadComplete for clarity.
Relates to obsidian-bot-review
Simplifies array item formatting by eliminating redundant
string manipulations. Enhances readability and maintains
consistent output for arrays with multiple items.
Relates to obsidian-bot-review
Updates method name from 'checkDependenciesAsync' to
'checkDependenciesOnStartup' to better reflect its purpose of
verifying dependencies during plugin startup.
Enhances code readability and maintainability.
Adds user notifications for export and dependency status
errors to improve feedback when operations fail. Utilizes
Obsidian's Notice to display error messages to users.
Relates to obsidian-bot-review branch improvements.
Changes log level 'info' to 'debug' in error handling
to improve granularity in log outputs. Enhances monitoring
capabilities by categorizing non-essential logs separately.
Enhances debugging output by including content length in log
messages, assisting in monitoring and troubleshooting frontmatter
parsing issues efficiently.
Reduces redundant debug information, focusing on concise logging
to maintain readability and effectiveness in error analysis.
Introduces a validation step to ensure the vault configuration directory is accessible. Throws a descriptive error if the directory is unavailable, improving error handling and initialization clarity for the plugin.
Enhances stability by ensuring TempDirectoryManager functions only when prerequisites are satisfied.
Updates plugin cleanup to utilize async handlers during onunload,
ensuring proper resource management and cleanup of temporary files.
Removes redundant process termination listeners and integrates lifecycle
methods for better maintainability and efficiency.
Improves robustness of plugin cleanup on unload.
Specifies Node.js version 18.20+ in package engines and README
to ensure compatibility and leverage latest features available
from this Node.js version.
Corrects capitalization inconsistencies in UI and documentation,
improving clarity and professionalism. Enhances error handling
in the image download function by properly rejecting promises
on errors, thus increasing reliability and maintainability.
Relates to obsidian-bot-review branch tasks.
Applies linting rules to the codebase and resolves identified issues.
Addresses:
- Renamed headings in settings tabs to improve UI consistency and style.
- Resolved require() style imports
- Added void operator to ensure correct promise handling.
- Replaced deprecated Obsidian API calls.
- Enforces sentence case to enhance UI text consistency.
Adds js-yaml as a dependency to support parsing YAML files.
This will allow the application to process YAML formatted data,
enhancing its data handling capabilities.
Ensures accurate determination of whether a directory is a temporary directory by explicitly matching the full path or a subdirectory.
This change prevents potential issues related to incorrect path comparisons, especially on Windows where path variations can occur.
Updates the executable path resolution logic to correctly identify executables on Windows systems by using the 'where' command instead of 'which', which is not available on Windows.
This change ensures that the application can locate and execute dependencies properly, regardless of the operating system. It also uses `path.isAbsolute` to accurately determine if a user-provided path is absolute, improving the reliability of path resolution.
Addresses a potential command injection vulnerability by tightening the validation of executable paths.
Removes brackets and curly braces from the list of disallowed shell metacharacters in paths on Windows to prevent issues when paths contain these characters. Only the metacharacters that can't appear in safe paths are disallowed.
Ensures correct protocol (HTTP/HTTPS) is used when downloading
remote images by using the parsed URL object for the request.
This fixes potential issues where the protocol might be incorrectly
determined, especially when dealing with case-insensitive URL schemes.
Enhances path validation to prevent issues caused by reserved Windows names.
The previous implementation only checked for reserved names
when the entire path matched a reserved name. This update extends
the check to ensure that no segment of the path, including the
base name without extension, matches a reserved name.
This prevents the use of reserved names, even with extensions or
within directory structures, mitigating potential security risks.
Ensures that the PATH environment variable is correctly augmented with
additional paths, especially on Windows systems. It uses platform-specific
path delimiters (';' on Windows, ':' on Unix) and filters out empty segments
to prevent PATH corruption.
Addresses potential resource leaks by ensuring that temporary
files and event listeners are properly cleaned up when the
converter is disposed. This prevents issues with multiple
conversions, especially on platforms like Windows where file
locking can occur.
The `uncaughtException` handler is removed to avoid
swallowing errors, and a flag is added to prevent double
cleanup.
Ensures that relative redirect URLs are resolved against the original image URL.
This prevents issues when downloading remote images from servers that return
relative redirect paths.
Ensures images without file extensions are properly handled by appending ".png" to the filename, preventing potential issues with image processing or display.
Preserves existing extensions for other image types (e.g., svg, ico, avif) without forcing a ".png" extension.
Adds comprehensive unit tests to improve code coverage for core functionalities: constants, paper size mapping, modal settings, security utilities, temporary directory management, and variable mapping.
This ensures that basic functionalities work as expected and enhances the reliability of the plugin.
Additionally, this commit includes a mock Obsidian API to facilitate testing in a non-Obsidian environment.
Removes unnecessary conditional logic when constructing paths for temporary directories.
The logic previously checked if the plugin directory was absolute before joining it with the directory name. This check is redundant as `path.join` correctly handles both absolute and relative paths.
Ensures that standard markdown images with remote URLs are processed for download after embeds and before wikilinks.
This ensures that remote URLs in the standard markdown format `` are correctly queued for download.
Consolidates local path resolution logic into a dedicated
`resolveLocalPath` method for improved code reuse and readability.
Improves image downloading by using the vault adapter to write
binary data, preventing potential data corruption.
This change addresses issues with image embed resolution,
especially for attachments in non-standard locations, and fixes
file overwriting during image downloads.
Simplifies the path joining logic by leveraging the built-in `path.join` method directly.
This change removes the manual iteration and absolute path handling, resulting in more concise and readable code.
Ensures correct path handling on Windows.
Refactors the code to leverage `path.join` for cross-platform path manipulation, especially improving handling of absolute paths on Windows.
Removes redundant normalizations and simplifies the logic for determining temporary directories. This change ensures consistent behavior across different operating systems and reduces code complexity.
Disables Pandoc's automatic citeproc filter to prevent errors
when processing documents without a bibliography file. This
resolves issues where Pandoc incorrectly detects citation-like
patterns in markdown and attempts to generate bibliographies,
leading to "document does not contain a bibliography" errors.
Addresses issues with path construction on Windows by using `path.isAbsolute()` to correctly handle absolute paths. Improves cross-platform compatibility in temp directory management and binary location.
Adds support for downloading and embedding remote images (http/https URLs) in markdown, enhancing content integration. Provides fallback mechanism with placeholder text upon download failure.
Updates the repository URLs in the README file to reflect the correct owner.
This ensures users are directed to the correct location for the project and its releases, especially for installation instructions.
Updates the downloads badge in README to link directly to releases instead of the Obsidian plugins page.
This provides a more direct path to the plugin's release notes and associated files.
Removes the `sharp` dependency from the esbuild configuration.
This dependency was not being used, and its removal reduces the bundle size and improves build performance.
Introduces three new Typst templates: "book," "sidebar," and "two-column."
The "book" template emulates a classic book style with serif fonts, alternating margins, and running headers. It also includes features such as drop caps, email block styling, and a title page.
The "sidebar" template uses a modern sans-serif font and a prominent sidebar for navigation and document information.
The "two-column" template is designed for academic papers or CVs, using a two-column layout, serif fonts, and compact paragraph spacing.
Updates the "modern" template to use a different color scheme for headings and title block.
Replaces intermediate Typst file generation with enhanced diagnostic options
Adds short diagnostic format for better error reporting during Typst PDF engine conversion
Removes complex intermediate file generation and debug file copying logic
Simplifies command builder by focusing on diagnostic improvements
Adds detailed explanation of the plugin's purpose, highlighting key advantages over native Obsidian PDF export
Provides insights into the motivation behind creating the plugin, emphasizing:
- Professional typesetting quality
- Flexible document generation
- Separation of content and styling
- Continuous reading experience
Illustrates how the plugin transforms Obsidian into a more robust document preparation system
Documents AI-assisted development approach with emphasis on quality control
Explains the methodology behind the plugin's development, highlighting:
- Controlled AI code generation
- Strict review and validation processes
- Tools used to prevent low-quality code
- Commitment to maintaining high code standards
Details the systematic approach to leveraging AI while preserving code quality and architectural integrity
Excludes local guidance documentation from version control
Prevents potential sensitive or personal guidance notes from being tracked in the repository
Fixes dynamic path detection for plugin resources
Updates version to 1.0.1 across manifest files
Adds version compatibility mapping
Resolves issues with hardcoded directory paths
Ensures more robust plugin directory detection and resource loading
Updates the plugin's name from "Obsidian Typst PDF Export" to "Typst PDF Export".
This change simplifies the plugin's identifier and display name,
making it more concise and user-friendly. It involves updates to
the manifest file, plugin configuration, and references within the
codebase.
Updates the badges in the README to reflect current project status, including download stats and license information.
Changes the project license to GNU GPL v3.0 and updates the license badge accordingly.
Removes console log statements related to template extraction.
These logs were primarily for debugging and are no longer needed in the production code.
Removes the redundant "v" prefix from the release name and body within the release workflow, resulting in a cleaner and more consistent naming convention.
Updates the export file function to utilize the new settings structure for page setup and typography.
This change ensures consistency with the modal settings and simplifies the configuration process.
Improves template resolution for Typst exports by adding the plugin's templates directory as a resource path. This allows Typst to correctly locate and utilize template files within the plugin.
Updates the template path handling to use relative paths from the vault root, ensuring proper import behavior within Typst.
Updates the plugin to comply with Obsidian's plugin submission requirements.
This includes removing debug logging, addressing path handling, and improving modal display logic. Also replaces the plugin license from MIT to GPLv3, adds PDF embedding controls, improves export progress display, and enhances resource path caching.
Removes default hotkeys and sharp dependency. Addresses cross-platform path compatibility and enhances security with path validation and sanitization.
Updates the export config modal to hide the form and show the progress container by modifying the display properties.
It ensures that only one section is visible at any given time for a cleaner user experience.
Adds CSS classes to control the visibility of the export modal and styles the progress bar.
This allows for dynamically showing and hiding the modal and provides a visual cue for export progress.
Removes the default hotkeys assigned to the export commands.
This allows users to define their own preferred hotkeys
without being restricted by default settings.