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 cross-references #49

Open
dwhieb opened this issue Oct 1, 2024 · 0 comments
Open

Support cross-references #49

dwhieb opened this issue Oct 1, 2024 · 0 comments

Comments

@dwhieb
Copy link
Member

dwhieb commented Oct 1, 2024

Support cross-references to labeled figures/examples.

This could perhaps be a markdown-it plugin, maybe using [@ex:1] syntax. Just make sure it doesn't conflict with the syntax for citations.

The plugin should only output the text of the referenced item's label (so just 1 and not Example 1).

Maybe allow a custom label as a second argument?

The plugin will not be able to handle cross-references to other documents.

Here's one implementation:

https://github.com/Renovamen/oh-my-cv/blob/main/packages/markdown-it-cross-ref/src/index.ts
https://lierdakil.github.io/pandoc-crossref/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant