Skip to content

Append code block results to markdown document #152

@daephx

Description

@daephx

As an extension to #50: Much like the the orgmode screenshot supplied,
is it possible to have a display option, specifically for source code blocks in markup where the result is printed to the document itself?

Example:

```python
print('Hello, World!')
```

_Result:_
```plain
Hello, World!
```

This way you can save the output for sharing/publishing, similar to Orgmode or Jupyter Notebooks.

You could keep virtual text on but have this as a compile step for your individual cells.
As I imagine such a feature should be exempt from REPL capabilities, otherwise it could cause some problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions