-
Notifications
You must be signed in to change notification settings - Fork 10
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
JATS: Decoding tag <table-wrap-foot> missing in <table-wrap> #667
Comments
Thanks for this @asisiuc . For reference, the JATS standard says that The main question is which property of a
If we were to go ahead with using description, it should be fairly straightforward to implement in const descriptionElem = child(elem, 'caption')
const description =
descriptionElem !== null && Array.isArray(descriptionElem.elements)
? decodeElements(descriptionElem.elements, state)
: undefined
...
return [
stencila.table({
id: decodeInternalId(attr(elem, 'id')),
label: textOrUndefined(child(elem, 'label')),
caption,
rows: [...headerRows, ...bodyRows],
description
}),
] cc @FAtherden-eLife |
|
Thanks for your replay @FAtherden-eLife @nokome , it is a very good solution, so we analyzed and came to the conclusion that |
Thanks @asisiuc . I'm having a look at your PR now. Can you please "Allow edits from maintainers" so that I can make changes to your PR directly: https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork |
Thanks for the quick reply @nokome, but we have some issue with allowing to edit PR because of ISSUE, so in order to make this work, please add me as a contributor.
|
Arrgh, sorry meant to close the PR, not this issue. Reopening. |
Jats lacks
<table-wrap-foot>
tag content when converting to format JSON:Steps to reproduce
This is captured in the jats as:
After running
In the converted result
<table-wrap-foot>
tag is missing content.The text was updated successfully, but these errors were encountered: