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

[Question] Hi,it had worked correctly before, but do not work now and prompt such information. #40

Closed
lewei50 opened this issue Nov 16, 2022 · 3 comments
Labels

Comments

@lewei50
Copy link

lewei50 commented Nov 16, 2022

laoliu@anonemous:/mnt/c/Users/laoliu/Documents$ ./gh-md-toc tmp.md

Table of Contents

Header: Vary=Accept
Header: Access-Control-Expose-Headers=ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
Header: Strict-Transport-Security=max-age=31536000; includeSubdomains; preload
Header: Referrer-Policy=origin-when-cross-origin, strict-origin-when-cross-origin
Header: Content-Type=text/html;charset=utf-8
Header: Cache-Control=public, max-age=60, s-maxage=60
Header: X-Frame-Options=deny
Header: X-Content-Type-Options=nosniff
Header: Etag=W/"8f02416ae1ffe52316586208420aa1472f865feba8e4f1a8ad86c2f4f78dd577"
Header: X-Ratelimit-Limit=60
Header: X-Github-Request-Id=27AF:64C2:4C8D70:4F9C04:637430A9
Header: X-Ratelimit-Reset=1668562617
Header: X-Ratelimit-Used=1
Header: X-Commonmarker-Version=0.23.6
Header: X-Github-Media-Type=github.v3; format=json
Header: X-Ratelimit-Remaining=59
Header: X-Ratelimit-Resource=core
Header: Access-Control-Allow-Origin=*
Header: X-Xss-Protection=0
Header: Server=GitHub.com
Header: Date=Wed, 16 Nov 2022 00:36:57 GMT
Header: Content-Security-Policy=default-src 'none'

Created by gh-md-toc
laoliu@anonemous:/mnt/c/Users/laoliu/Documents$

@cgrindel
Copy link

Is your issue that the Table of Contents is not populating? If so, try out the fix in this PR.

@ekalinin
Copy link
Owner

ekalinin commented Feb 3, 2023

Hi, could you provide tmp.md's source? And gh-md-toc's version?

Just tried with README of the current project and it worked well:

❯ go run cmd/gh-md-toc/main.go --version
1.2.0

❯ go run cmd/gh-md-toc/main.go README.md

Table of Contents
=================

* [github\-markdown\-toc](#github-markdown-toc)
* [Table of Contents](#table-of-contents)
* [Installation](#installation)
  * [Precompiled binaries](#precompiled-binaries)
  * [Compiling from source](#compiling-from-source)
  * [Go Install](#go-install)
  * [Homebew (Mac only)](#homebew-mac-only)
* [Tests](#tests)
* [Usage](#usage)
  * [STDIN](#stdin)
  * [Local files](#local-files)
  * [Remote files](#remote-files)
  * [Multiple files](#multiple-files)
  * [Combo](#combo)
  * [Starting Depth](#starting-depth)
  * [Depth](#depth)
  * [No escape](#no-escape)
  * [Github token](#github-token)
  * [Bash/ZSH auto\-complete](#bashzsh-auto-complete)
* [Alpine Linux](#alpine-linux)
* [LICENSE](#license)

Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)

❯ go version
go version go1.19.4 darwin/arm64

@ekalinin
Copy link
Owner

ekalinin commented Feb 3, 2023

Could you, please, try 1.2.1 version I just released:

https://github.com/ekalinin/github-markdown-toc.go/releases/tag/v1.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants