[Question] Is this still working?
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?
It's currently broken - this is the same as https://github.com/ekalinin/github-markdown-toc/issues/143
I took a stab at fixing what I could figure out - does it help? https://github.com/ekalinin/github-markdown-toc/pull/145
I used https://github.com/ekalinin/github-markdown-toc/pull/144 from the discussion in https://github.com/ekalinin/github-markdown-toc/issues/143. That fixed it for me.
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 🙃
Even with #144 and #145 merged, I'm still getting the same behavior as in #143.
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 ...]
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
Unfortunately it doesn't work for me, see:
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.
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!