Giter Site home page Giter Site logo

Comments (5)

Potherca avatar Potherca commented on June 21, 2024

As far as I can tell, the first file is chosen (which might not be a markdown file).

This is because the used URL is https://gist.githubusercontent.com/${user}/${id}/raw rather than an API call. So as a work-around, making sure the desired markdown file is listed first resolves your issue.

The trick I use is naming the first file README.md and keeping all other filenames lowercase. That way the markdown file is always first.

Besides just markdown, other textual formats are also supported (like HTML and Restructured Text).

This would lead to addition logic being needed if this were to be implemented. For instance, if there are more than one format present in one gist, how would the logic know which one to pick?

Other issues aside, making an API call would allow implementing #43

from gistio.

Daenyth avatar Daenyth commented on June 21, 2024

Weird; when I load this I get a blank page, but the first file in it is markdown.

from gistio.

Daenyth avatar Daenyth commented on June 21, 2024

Aha, <noscript>You need to enable JavaScript to run this app.</noscript>

from gistio.

Daenyth avatar Daenyth commented on June 21, 2024

Actually that doesn't explain it, ublock says it blocked 0 requests on that page, and I don't have any blanket javascript blockers.

from gistio.

Potherca avatar Potherca commented on June 21, 2024

Looks like you missed the @ character in your link:

https://gist.io/Daenyth/28243952f1fcfac6e8ef838040e8638e
➡️ https://gist.io/@Daenyth/28243952f1fcfac6e8ef838040e8638e

from gistio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.