Skip to content

Conversation

@kenlefeb
Copy link

@kenlefeb kenlefeb commented Dec 4, 2025

I added a few behaviors that make this plugin something I will use nearly every day!

  • Introduced a toggle in the settings tab to enable or disable Obsidian attachment settings, so the PDFs can be treated like every other attachment in my vault.
  • Implement support for template automation after PDF to Markdown conversion. One of the main reasons I want the markdown file wrapping my PDF is so I can add metadata to it, so I have a template that I use to define some standard frontmatter properties for my PDFs.

NOTE: This is the first time I've done any Obsidian plugin development, and I'm not especially proficient with TypeScript in general (I'm mostly a backend developer), so there's probably plenty of improvement that can be done to this!

- Introduced a new toggle setting to enable/disable the use of attachment settings.
- Updated the settings tab to reflect this new option.

test: add unit tests for PDF to Markdown conversion

- Created comprehensive tests for the `convertPDFsToMarkdown` function.
- Included scenarios for both enabled and disabled attachment settings.

chore: update dependencies and add testing framework

- Updated `@types/node` to version 20.11.30.
- Added `vitest` as a testing framework and configured it.
- Updated package.json scripts to include a test command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant