ocaisa / translate_md

MIT License
0 stars 0 forks source link

Link anchors can be messed up #5

Open ocaisa opened 2 weeks ago

ocaisa commented 2 weeks ago

When you have an anchor like

[operating system]{#operating-system}

this can be translated as, for example,

[Betriebssystem]{#Betriebssystem}

which breaks the anchor. Not sure if those anchors are standard MD.

ocaisa commented 2 weeks ago

In general, I have seen in references that the Glossary seems to use non-standard syntax. This means

[command shell]{#command-shell}
:   See [shell](#shell)

get's "translated" as

[command-shell]{#command-shell} : Siehe [shell](#shell) 

which seems to mess with the final rendering

ocaisa commented 2 weeks ago

This is also an issue with an anchor is a reference to a heading, e.g.,

[Andere Verzeichnisse erforschen](#exploring-other-directories)

where the heading is now

### Erforschung anderer Verzeichnisse

(in this case it is even worse as the title is not even consistently translated)