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

RMarkdown: Resolve Figure references in Bookdown syntax #613

Open
alex-ketch opened this issue Jul 7, 2020 · 0 comments
Open

RMarkdown: Resolve Figure references in Bookdown syntax #613

alex-ketch opened this issue Jul 7, 2020 · 0 comments
Assignees

Comments

@alex-ketch
Copy link
Contributor

alex-ketch commented Jul 7, 2020

We're already using Bookdown syntax for encoding Figure captions, we should also handle encoding/decoding of figures (and other nodes) given in Bookdown syntax e.g. \@ref(fig:label).

The full specification can be found at https://bookdown.org/yihui/bookdown/cross-references.html

Encoding to RMD is a little more complex than in the MD as we need to look up the reference node type and alter the encoding accordingly:

As a first step we can translate MDAST LinkReferences into Bookdown \@ref(label) format. Haven't quite figured out how Bookdown treats reference text as in the equivalent of [some text][label].

@alex-ketch alex-ketch self-assigned this Jul 7, 2020
@alex-ketch alex-ketch added this to the ERA: v1 milestone Aug 5, 2020
@alex-ketch alex-ketch modified the milestones: ERA: v1, ERA: v2 Aug 26, 2020
@alex-ketch alex-ketch removed this from the ERA: v2 milestone Aug 26, 2020
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