Atemu
18 oktober 2024 om 05:37
1
When you link a Github file with an anchor, the preview which Discourse renders is of the top of the file rather than from the anchor on.
See for instance:
<a href="https://www.discourse.org/">
<img src="images/discourse-readme-logo.png" width="300px">
</a>
The online home for your community.
<img width="1920" height="1135" alt="github-readme" src="https://github.com/user-attachments/assets/abaaf30f-0cfb-4505-a530-6f8e5a43d24b" />
> You can self-host Discourse on your own infrastructure. But if you'd rather skip the setup, maintenance, and server management, we offer official Discourse hosting.
>
> 👉 Learn more about [Discourse hosting](https://discourse.org/pricing)
Discourse is a 100% open-source community platform for those who want complete control over how and where their site is run.
Our platform has been battle-tested for over a decade and continues to evolve to meet users’ needs for a powerful community platform.
**With Discourse, you can:**
* đź’¬ **Create discussion topics** to foster meaningful conversations.
This file has been truncated. show original
This should preview show the development section, not the top of the readme.
(Not sure whether this is actually a bug.)
3 likes
nat
(Natalie T)
25 oktober 2024 om 09:41
2
I’ve added a pr-welcome here if you’d like to help improve this.
1 like
I reviewed this PR and noticed that Discourse attempts to serve content directly from the repository using https://raw.githubusercontent.com , which provides a plain, unstyled raw file (e.g., https://raw.githubusercontent.com/discourse/discourse/main/README.md#development ). For line-specific references (like #L-{line-number} ), it jumps directly to the specified line in the file to display the content. To preview a specific section (e.g., #development , #requirements ), you can specify the line number as shown below:
Discourse is a 100% open-source community platform for those who want complete control over how and where their site is run.
Our platform has been battle-tested for over a decade and continues to evolve to meet users’ needs for a powerful community platform.
**With Discourse, you can:**
* đź’¬ **Create discussion topics** to foster meaningful conversations.
* ⚡️ **Connect in real-time** with built-in chat.
* 🎨 **Customize your experience** with an ever-growing selection of official and community themes.
* 🤖 **Enhance your community** with plugins, from chatbots powered by [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214) to advanced tools like SQL analysis with the [Data Explorer](https://meta.discourse.org/t/discourse-data-explorer/32566) plugin.
To learn more, visit [discourse.org](https://www.discourse.org/) and join our support community at [meta.discourse.org](https://meta.discourse.org/).
Here are just a few of the incredible communities using Discourse:

1 like