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

fix(Markdown): resolve citations within figure, table and chunk captions #673

Open
nokome opened this issue Sep 8, 2020 · 0 comments
Open

Comments

@nokome
Copy link
Member

nokome commented Sep 8, 2020

Currently, in Markdown Cite nodes in figure, table and chunk captions are not being resolved e.g.

image

This is likely because the decodeCite function does not get passed a context when called from within decodeCodeChunk etc. A quick fix would be to pass through the context. But I do wonder if it wouldn't be better to not pass the context around as we are currently doing and instead resolve the cite nodes separately using the transform function after doing the first decoding pass. I suspect that this would reduce the complexity of the code and make it easier to debug issues like this.

stencila-ci added a commit that referenced this issue Oct 29, 2020
# [0.100.0](v0.99.16...v0.100.0) (2020-10-29)

### Bug Fixes

* **Cite nodes:** Defere populating content until encoding ([02137d2](02137d2)), closes [#732](#732) [#673](#673)
* **HTML:** Encode url around title ([862ce14](862ce14)), closes [#733](#733)
* **HTML:** Ensure that CodeChunk ids are encoded ([5ddce03](5ddce03))
* **IPYNB:** Ignore empty code chunks ([d39a16f](d39a16f)), closes [#731](#731)
* **IPYNB:** Remove redundant name property when decoding authors ([0a1b4ef](0a1b4ef))
* **Markdown:** Make the first row of tables rowType:header ([54332bc](54332bc))

### Features

* **IPYNB:** Handle id, label and caption on code chunks ([2a387fa](2a387fa))
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