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] Is this still working? #146

Open
p3v9d5ui opened this issue Sep 25, 2023 · 9 comments
Open

[Question] Is this still working? #146

p3v9d5ui opened this issue Sep 25, 2023 · 9 comments
Labels

Comments

@p3v9d5ui
Copy link

This seems to have recently stopped working for us, though we have made no changes. Now the scrip just outputs a blank line.

Anyone else experiencing this?

@coreysciuto-toast
Copy link
Contributor

It's currently broken - this is the same as #143

I took a stab at fixing what I could figure out - does it help? #145

@p3v9d5ui
Copy link
Author

I used #144 from the discussion in #143. That fixed it for me.

@TravelingTice
Copy link

Glad it's fixed! Can it be released so we can curl the release content? That's how we have it setup in our github workflow 🙃

@kpedro88
Copy link

Even with #144 and #145 merged, I'm still getting the same behavior as in #143.

@ekalinin
Copy link
Owner

ekalinin commented Oct 10, 2023

Even with #144 and #145 merged, I'm still getting the same behavior as in #143.

Just checked:

❯ echo -e "# README\nfoo\n\n## Sub\nbar" > test.md
❯ wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc
--2023-10-10 17:46:03--  https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8001::154, 2606:50c0:8003::154, 2606:50c0:8002::154, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8001::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12769 (12K) [text/plain]
Saving to: ‘gh-md-toc’

gh-md-toc                                             100%[=======================================================================================================================>]  12,47K  --.-KB/s    in 0,001s

2023-10-10 17:46:03 (22,0 MB/s) - ‘gh-md-toc’ saved [12769/12769]

❯ chmod 755 gh-md-toc

❯ ./gh-md-toc test.md

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

* [README](#readme)
   * [Sub](#sub)

<!-- Created by https://github.com/ekalinin/github-markdown-toc -->

Debug info:

❯ ./gh-md-toc --version
0.8.0

os:     Darwin
arch:   arm64
kernel: 21.6.0
shell:  zsh 5.8.1 (x86_64-apple-darwin21.0)

curl : curl 8.1.2 (x86_64-apple-darwin21.0) libcurl/8.1.2 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.11 nghttp2/1.45.1
wget : GNU Wget 1.21.4 built on darwin21.6.0.
grep : grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
awk  : awk version 20200816
sed  : sed: illegal option -- -
usage: sed script [-Ealnru] [-i extension] [file ...]
	sed [-Ealnu] [-i extension] [-e script] ... [-f script_file] ... [file ...]

@kpedro88
Copy link

Still doesn't work on RHEL:

0.9.0

os:     Linux
arch:   x86_64
kernel: 3.10.0-1160.99.1.el7.x86_64
shell:  GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

curl : curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0
wget : GNU Wget 1.14 built on linux-gnu.
grep : grep (GNU grep) 2.20
awk  : GNU Awk 4.0.2
sed  : sed (GNU sed) 4.2.2

but does work on Cygwin:

0.9.0

os:     CYGWIN_NT-10.0
arch:   x86_64
kernel: 3.0.7(0.338/5/3)
shell:  GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

curl : curl 7.65.3 (x86_64-pc-cygwin) libcurl/7.65.3 OpenSSL/1.1.1c zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.0.4) libssh/0.8.7/openssl/zlib nghttp2/1.37.0
wget : GNU Wget 1.19.1 built on cygwin.
grep : grep (GNU grep) 3.0
awk  : GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.1.2)
sed  : sed (GNU sed) 4.4

@FrankRay78
Copy link

Unfortunately it doesn't work for me, see:

image

@rafa-munoz
Copy link

In a macOS system (x86_64-apple-darwin23.0), I was experiencing an empty TOC behavior for versions 0.8.0 and 0.9.0, but 0.10.0 solved this issue for me. Thanks.

@icct-galvarez
Copy link

I was experiencing an empty TOC behavior for versions 0.8.0 and 0.9.0, but 0.10.0 solved this issue for me. Thanks.

Same here (Mac with Intel chip), thank you!

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

8 participants