Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eats numbers immediately following inline code #169

Closed
oprypin opened this issue Nov 1, 2020 · 0 comments · Fixed by #175
Closed

Eats numbers immediately following inline code #169

oprypin opened this issue Nov 1, 2020 · 0 comments · Fixed by #175
Labels
unconfirmed This bug was not reproduced yet

Comments

@oprypin
Copy link
Member

oprypin commented Nov 1, 2020

Repro markdown file:

[foo][]

`bar`5
"mkdocstrings/references.py", line 84, in _replace_id_with_value
    return self._store[int(match.group(1))]
IndexError: list index out of range

Root cause:

https://github.com/pawamoy/mkdocstrings/blob/9815d5a7ecc497085a61e3486f16c01e080cb46b/src/mkdocstrings/references.py#L90 https://github.com/pawamoy/mkdocstrings/blob/9815d5a7ecc497085a61e3486f16c01e080cb46b/src/mkdocstrings/references.py#L53 https://github.com/pawamoy/mkdocstrings/blob/9815d5a7ecc497085a61e3486f16c01e080cb46b/src/mkdocstrings/references.py#L81

@oprypin oprypin added the unconfirmed This bug was not reproduced yet label Nov 1, 2020
oprypin added a commit to oprypin/mkdocstrings that referenced this issue Nov 1, 2020
oprypin added a commit to oprypin/mkdocstrings that referenced this issue Nov 1, 2020
pawamoy added a commit that referenced this issue Nov 3, 2020
Fixes #169.
PR #175.

Co-authored-by: Timothée Mazzucotelli <pawamoy@pm.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed This bug was not reproduced yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant