stencila / encoda

↔️ A format converter for Stencila documents
https://stencila.github.io/encoda/
Apache License 2.0
35 stars 9 forks source link

IPYNB: support importing of title and authors #13

Closed nokome closed 5 years ago

nokome commented 6 years ago

Currently, the R Markdown converter (DocumentRmdConverter) supports importing document title and authors from YAML metadata headers. It would be great to have similar functionality for Jupyter documents.

The Jupyter spec mentions an authors field in the notebook's metadata but seems to be permissive with respect to how that is represented (i.e. string v more complex objects). Other relevant discussions include:

At this stage, propose to add simple support for importing title and authors from the notebook metadata by generating a Pandoc YAML header. Once that is implemented as a 'proof-of-concept' consult with Jupyter community on long term preferred options for more detailed structure e.g. affiliations.

nokome commented 5 years ago

Done. See https://github.com/stencila/encoda/blob/ipynb/src/codecs/ipynb/README.md#metadata