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

feature request: add a flag to specify path prefix for wikilinks #144

Open
khimaros opened this issue Jan 12, 2023 · 1 comment
Open

feature request: add a flag to specify path prefix for wikilinks #144

khimaros opened this issue Jan 12, 2023 · 1 comment

Comments

@khimaros
Copy link

proposed command line usage:

$ obsidian-export --wikilink-prefix="/posts/" /path/to/input/ /path/to/output/

for given input markdown:

[[example]]

generated markdown would be:

[example](/posts/example.md)

this would be another solution to the hugo relative link problem and would generally allow more flexibility for people working with alternative publishing mechanisms.

main code touch points seem to be be https://github.com/zoni/obsidian-export/blob/main/src/lib.rs#L650

@khimaros
Copy link
Author

khimaros commented Jan 13, 2023

i've prepared a draft branch which implements this feature request:

https://github.com/khimaros/obsidian-export/tree/wikilink-prefix

it is currently lacking tests which cover this use case, but all existing tests are passing.

please let me know if there's a better approach.

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

No branches or pull requests

1 participant