Skip to content

Panic in markdown-json-cite with non-ASCII input #100

@SamWilsn

Description

@SamWilsn

The following (also attached) causes a panic:

---
eip: 3
---

Some text somewhere that needs a citation. [^1]

[^1]:
    ```csl-json
    {
      "author": [
        {
          "family": "Mazières"
        }
      ]
    }
    ```

The panic:

$ eipw --config ../config/eipw.toml eip-3074.md
thread 'main' panicked at /home/sam/.cargo/registry/src/index.crates.io-6f17d22bba15001f/annotate-snippets-0.9.2/src/display_list/from_snippet.rs:275:9:
SourceAnnotation range `(0, 99)` is bigger than source length `98`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions