Issue 933: Add translators to narrative parsing #937
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds translators to the narrative frontmatter parsing as described in #933.
Notes
authors
as arrays not being implemented yet. I decided that the best path forward would be to implementauthors
as arrays or strings, then share that code with thetranslators
parsing. The end result is thatauthors
andtranslators
have the same semantics, and can be given as either a single string, or an array.translators
also has atranslatorLinks
key, which can be used to link to translator (a personal blog, mailto, twitter account, etc).translatorLinks
are not necessary, and can be omitted for any/all translators.authors
attribute is a string, thenauthorLinks
must be a string. Ifauthors
is an array, thenauthorLinks
must be an array of the same size (null
can be used for any element that doesn't have a link).translators
andtranslatorLinks
.authors
andauthorLinks
appeared to be in a tutorial. I didn't see reference documentation. Because I didn't want to bog down a tutorial with a more obscure attribute, I didn't add documentation for this. If there’s reference documentation anywhere point me at it and I can the documentation for these new attributes.