Skip to content

bug: error: snippet id foo not defined when not running with -x #870

@eamonburns

Description

@eamonburns

Presenterm version: 0.16.1

Reproduction steps:
Create repro.md with the following contents:

```rust +exec +id:foo
fn main() {
    println!("hi");
}
```

<!-- snippet_output: foo -->

Run the following command:

presenterm repro.md

This is the error I got:

Error loading presentation:

error at repro.md:7:1:

  |
7 | <!-- snippet_output: foo -->
  | ^ snippet id 'foo' not defined

Note: This works:

presenterm -x repro.md

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