Skip to content

Usage of "" in header-args of Org src-block breaks export to Jupyter notebook #8869

@torfjelde

Description

@torfjelde

Problem
org -> ipynb is seemingly unable to handle usage of "" in the header args of a src-block, e.g. the following works just fine:

#+begin_src jupyter-julia :exports both
1 + 2
#+end_src

resulting in

{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "exports": "both"
   },
   "outputs": [],
   "source": [
    "1 + 2\n"
   ],
   "id": "a2b36dc3-128b-4f98-a97f-0ff4b4a9ba0f"
  }
 ],
 "nbformat": 4,
 "nbformat_minor": 5,
 "metadata": {}
}

But if I do

#+begin_src jupyter-julia :exports "both"
1 + 2
#+end_src

then we get an empty notebook:

{
 "cells": [],
 "nbformat": 4,
 "nbformat_minor": 5,
 "metadata": {}
}

So it seems like something strange is going on when parsing the header args. Just for the record, usage of "" is completely valid Org format.

Pandoc version?

pandoc 3.1.2
Features: +server +lua
Scripting engine: Lua 5.4

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions