* Update OUTGOING_LINK_REGEXP to support pipe syntax
Captures the alias of Obsidian links if it exists. e.g.:
[[My note|A special note]] becomes A special note, if removeOutgoingLinkBrackets is activated.
* fix: update OUTGOING_LINK_REGEXP to capture in group named alias,
inspired from ATTACHMENT_URL_REGEXP
Fixes#95 where embedded markdown files were being missed when dealing
with large documents. The previous code used `getActiveFile()` which
could return undefined or the wrong file during async processing,
especially in batch export scenarios.
Now uses the `file.path` parameter which is the correct file being
exported, ensuring consistent behavior regardless of active file state.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Previously, embedded content was extracted from rendered HTML which
converted code blocks (like mermaid) to their rendered form. This
made it impossible to preserve the original code block syntax.
Now reads raw markdown directly from source files, preserving all
code blocks in their original format.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
- Add new setting "Inline Block Embeds" to replace block refs with content
- Fix execution order: process embeds before WikiLinks conversion
- Add getBlockContent() to extract block content using Obsidian API
- Add parseEmbedLink() to parse file path and block reference ID
- Prevent "undefined" output when embed content is not found
Fixes#114
When exporting notes with embedded content, if the embed map doesn't
contain a corresponding key (due to async loading timing), the replace
operation would insert the string "undefined" into the exported content.
This fix adds a check to only replace when the embed content exists,
otherwise preserving the original ![[...]] marker.
Fixes#116🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* Added support for absolute attachment paths
* Extended `includeFileName` to support attachment directories
* Simplified attachment directory logic
* Created global OUTPUT_FORMATS enum
Mainly a cosmetic change; did this because "Export to markdown" was really bugging me
* Cleaned up TypeScript errors