# L'aperçu Github avec des ancres devrait afficher l'ancre plutôt que le début du fichier

**URL:** <https://meta.discourse.org/t/github-preview-with-anchors-should-preview-the-anchor-rather-than-the-top-of-the-file/331474>\
**Category:** Bug\
**Tags:** onebox, pr-welcome\
**Created:** [Octobre 18, 2024, 5:37 UTC](https://meta.discourse.org/t/github-preview-with-anchors-should-preview-the-anchor-rather-than-the-top-of-the-file/331474 "2024-10-18T05:37:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Atemu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/atemu/32/456886_2.png) [@Atemu](https://meta.discourse.org/u/Atemu)\
**Post date:** [Octobre 18, 2024, 5:37 UTC](https://meta.discourse.org/t/github-preview-with-anchors-should-preview-the-anchor-rather-than-the-top-of-the-file/331474/1 "2024-10-18T05:37:33Z")

</div>

Lorsque vous liez un fichier Github avec une ancre, l’aperçu que Discourse rend est celui du haut du fichier plutôt que celui de l’ancre.\n\nVoir par exemple :\n\n[discourse/README.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/README.md#development%5Cn%5CnCet) aperçu devrait montrer la section développement, pas le haut du fichier readme.\n\n(Je ne suis pas sûr qu’il s’agisse réellement d’un bug.)

---

_[View the full topic](https://meta.discourse.org/t/github-preview-with-anchors-should-preview-the-anchor-rather-than-the-top-of-the-file/331474)._
