Skip to content

Duplicate label in translation only #357

Open
@jpmckinney

Description

@jpmckinney

Describe the bug

If you have content like this:


```{admonition} Example

Content
```

```{admonition} Example

Content
```

You get no warning when building in the source language.

However, if you translate the text and build, you get:

index.md:35:<translated>:1: WARNING: duplicate label index.md#ejemplo, other instance in index.md [myst.anchor]

Note that the label is itself translated, which is also unexpected.

To Reproduce

Follow the steps at https://github.com/jpmckinney/myst-parser-tests/blob/master/index.md#reproduction

Expected behavior

No warning. No translation of the label.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtopic/extensionissues regarding myst extension

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions