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

Auto-convert links between spec MD files to be internal links #43

Open
swcurran opened this issue Jul 13, 2022 · 0 comments
Open

Auto-convert links between spec MD files to be internal links #43

swcurran opened this issue Jul 13, 2022 · 0 comments

Comments

@swcurran
Copy link
Contributor

In "normal" Markdown, when you create a link across different MD files, you reference the file and the internal link within the file, such as: [link to another spec file](other_spec.md#header-in-that-other-file). However, since spec-up merges the files together. Would it be possible to automatically convert the link in the generated spec to remove the file reference? E.g. convert the example above to [link to another spec file](#header-in-that-other-file).

I can see that there would be limits on that -- e.g. rules for when/when not to do the conversion for any given link. I would think a relative reference (no leading "/" on the file name, or perhaps no "/" at all in the file name segment).

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