Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issuing an essay #28

Open
gabrielfalcao opened this issue Dec 3, 2020 · 3 comments
Open

Issuing an essay #28

gabrielfalcao opened this issue Dec 3, 2020 · 3 comments
Labels
Publish Add this label to an issue to publish it on the blog

Comments

@gabrielfalcao
Copy link

Today I found this project on HackerNews and decided to give it a try.

The idea of a blog that uses Github issues as posts is intriguing, I'm wondering if it supports Github-flavored Markdown in its entirety.

For instance, should the hash 431af35 should point to a commit of this repository ?

@gabrielfalcao gabrielfalcao added the Publish Add this label to an issue to publish it on the blog label Dec 3, 2020
@oneblog-bot
Copy link

@gabrielfalcao
Copy link
Author

This comment was created via github interface

@dwwoelfel
Copy link
Contributor

It won't pull in the some of the more GitHub-specific markdown add-ons because the GitHub API doesn't return those in the markdown.

The body field in the query below is what essay.dev uses to render the post. It is interesting that GitHub puts the hash link in the bodyHTML field, though.

query IssueQuery {
  gitHub {
    repository(name: "essay.dev" owner: "onegraph") {
      issue(number: 28) {
        bodyHTML
        body
      }
    }
  }
}
{
  "data": {
    "gitHub": {
      "repository": {
        "issue": {
          "bodyHTML": "<p>Today I found this project on <a href=\"https://news.ycombinator.com/\" rel=\"nofollow\">HackerNews</a> and decided to give it a try.</p>\n<p>The idea of a blog that uses Github issues as posts is intriguing, I'm wondering if it supports Github-flavored Markdown in its entirety.</p>\n<p>For instance, should the hash <a class=\"commit-link\" data-hovercard-type=\"commit\" data-hovercard-url=\"https://github.com/OneGraph/essay.dev/commit/431af3504780b1f69d74687715bd99e00cd8ac73/hovercard\" href=\"https://github.com/OneGraph/essay.dev/commit/431af3504780b1f69d74687715bd99e00cd8ac73\"><tt>431af35</tt></a> should point to a commit of this repository ?</p>",
          "body": "Today I found this project on [HackerNews](https://news.ycombinator.com/) and decided to give it a try.\r\n\r\nThe idea of a blog that uses Github issues as posts is intriguing, I'm wondering if it supports Github-flavored Markdown in its entirety.\r\n\r\nFor instance, should the hash 431af3504780b1f69d74687715bd99e00cd8ac73 should point to a commit of this repository ?\r\n\r\n"
        }
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Publish Add this label to an issue to publish it on the blog
Projects
None yet
Development

No branches or pull requests

3 participants