eipw icon indicating copy to clipboard operation
eipw copied to clipboard

Panic in `markdown-json-cite` with non-ASCII input

Open SamWilsn opened this issue 1 year ago • 3 comments

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

SamWilsn avatar Jul 04 '24 17:07 SamWilsn

Hey @SamWilsn , would like to work on this task - can you assign me that. Could you clarify the remaining tasks for this issue? Any additional context would be appreciated. Thanks!

0xshikhar avatar Nov 26 '24 01:11 0xshikhar

This is pretty much it. Take the attached input, and fix the panic. Any fixes would be very appreciated!

SamWilsn avatar Nov 26 '24 02:11 SamWilsn

got it. will like to work on it.

0xshikhar avatar Nov 26 '24 02:11 0xshikhar