Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for file internal paths in NodePath #109

Open
teodosin opened this issue Oct 10, 2024 · 0 comments
Open

Support for file internal paths in NodePath #109

teodosin opened this issue Oct 10, 2024 · 0 comments
Labels
enhancement New feature or request foundational A long-term decision or architectural implementation. Worth the extra effort.

Comments

@teodosin
Copy link
Owner

In anticipation of file parsing support, NodePath needs to be able to point to structures inside files. This can be done by implementing fragment identifiers:

"folder/file.md#heading/small/tiny"

Internally NodePath is just a newtype wrapper around PathBuf currently, so that needs to be modified. It could be turned into a struct with two fields: file_path and fragment or internal_path.

Use TDD for this so nothing breaks.

@teodosin teodosin added enhancement New feature or request foundational A long-term decision or architectural implementation. Worth the extra effort. labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request foundational A long-term decision or architectural implementation. Worth the extra effort.
Projects
None yet
Development

No branches or pull requests

1 participant