Skip to content

fix: ignore traversal and UTF-8 export handling#3

Merged
hyle merged 1 commit intomainfrom
fix-misc-bugs
Mar 14, 2026
Merged

fix: ignore traversal and UTF-8 export handling#3
hyle merged 1 commit intomainfrom
fix-misc-bugs

Conversation

@hyle
Copy link
Owner

@hyle hyle commented Mar 14, 2026

This tightens export behavior around ignore handling, encoding validation, and language detection.

It stops descending into directories that remain ignored, which keeps recursive export aligned with Git's ignored-parent semantics.

It also validates full-file UTF-8 before writing content, so invalid legacy-encoded text no longer produces malformed markdown output.

Finally, it fixes language detection for dotless scripts inside dotted directories by basing extension checks on the basename, allowing shebang fallback to work as expected.

@hyle hyle self-assigned this Mar 14, 2026
@hyle hyle added the bug Something isn't working label Mar 14, 2026
@hyle hyle merged commit 355ca05 into main Mar 14, 2026
@hyle hyle deleted the fix-misc-bugs branch March 14, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant