Skip to content

[Confluence] Executable Code Blocks don't pass languageValue to Writer #4489

@ghost

Description

For an executable code chunk like

```{python}
#| label: tbl-planets
#| tbl-cap: Planets

from IPython.display import Markdown
from tabulate import tabulate
table = [["Sun",696000,1989100000],
         ["Earth",6371,5973.6],
         ["Moon",1737,73.5],
         ["Mars",3390,641.85]]
Markdown(tabulate(
  table, 
  headers=["Planet","R (km)", "mass (x 10^29 kg)"]
))
```

python is not passed to the Writer

function CodeBlockConfluence(codeValue, attributes)
  local languageValue = attributes and attributes.class or ''
  dump(attributes, 'attributes')
  dump(codeValue, 'codeValue')
  dump(languageValue, 'languageValue')
languageValue	markdown
attributes	[("id",""),("class","markdown cell-code")]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpublishing-confluenceConfluence publishing of documents and projects

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions