-
Notifications
You must be signed in to change notification settings - Fork 94
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
[BUG] [Windows release] Doesn't output any TOC, just a list of HTTP headers #41
Comments
I forgot to mention earlier, I get the same result if I run it against the HTTP link to the readme without TOC link posted in the readme. Both the link as-is, and the raw-file version. So I'm pretty confident it's not an issue with the markdown file itself. |
I can confirm the error on my Windows machine:
|
@HappySeaFox @focustense I am not sure if it is the same issue. However, I have a pull request that fixes an issue with the TOC not generating properly due to the GitHub response having changed slightly. Can you give try building it and see if it fixes your issue? |
Hi, Could you provide Home.md's source? Just tried with README of the current project and it worked well:
|
Hi, FAQ: https://github.com/HappySeaFox/sail/blob/master/FAQ.md Version is 1.2.0 from the releases page. |
@HappySeaFox Could you, please, try 1.2.1 version I just released: |
Sure, I can try. I'm not at home currently, so it can take a couple of days. |
Yeah, 1.2.1 works fine! |
Great! Thank you very much! |
Describe the bug
I downloaded the Windows binary release to try out. It seems to succeed in converting the Markdown to HTML, but instead of printing a Markdown TOC, it prints a list of what appear to be HTTP response headers from GitHub.
To Reproduce
Example command:
gh-md-toc.exe Home.md --debug
I also tried using the
--token
argument with my GitHub token, did not see any difference.The file being used does have headings in the form of
#
,##
and so on.Expected behavior
Markdown TOC, like the examples in the readme.
Environment (please complete the following information):
Additional context
Here's a complete copy/paste of the command line:
I'd rather not post the entire converted HTML but I verified that it does have
<h1>
,<h2>
etc. tags.The text was updated successfully, but these errors were encountered: