Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[ BUG ] Works on Linux but finding place holders fail on Darwin

Đang mở
#152 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
shell
Lĩnh vực
cli

Hướng nghiên cứu

Start with the gh-md-toc entry point and reproduce the three failing commands on Darwin using the supplied README example. Inspect the placeholder-detection and sed-related paths, then verify that all commands handle README.md correctly on Darwin without regressing Linux behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

./gh-md-toc --insert --no-backup --hide-footer --skip-header README.md
./gh-md-toc --no-backup --hide-footer --skip-header README.md
./gh-md-toc --hide-footer --skip-header README.md

The above commands all work on Linux but not Mac.

➜ cat README.md
My readme: https://github.com/sourcenetwork/defradb/blob/c1b612ea28b866093da2d7d1f473ea9de1072a93/README.md

➜ ./gh-md-toc --insert --no-backup --hide-footer --skip-header README.md

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

   * [Table of Contents](#table-of-contents)
   * [Install](#install)
   * [Key Management](#key-management)
   * [Start](#start)
   * [Configuration](#configuration)
   * [External port binding](#external-port-binding)
   * [Add a schema type](#add-a-schema-type)
   * [Create a document](#create-a-document)
   * [Query documents](#query-documents)
   * [Obtain document commits](#obtain-document-commits)
   * [DefraDB Query Language (DQL)](#defradb-query-language-dql)
   * [Peer-to-peer data synchronization](#peer-to-peer-data-synchronization)
   * [Securing the HTTP API with TLS](#securing-the-http-api-with-tls)
   * [Access Control System](#access-control-system)
   * [Supporting CORS](#supporting-cors)
   * [Backing up and restoring](#backing-up-and-restoring)
   * [Community](#community)
   * [Licensing](#licensing)
   * [Contributors](#contributors)
You don't have <!--ts--> or <!--te--> in your file...exiting
make[1]: *** [toc] Error 1
make: *** [docs] Error 2

Moreover, even without the --insert the command fails: ./gh-md-toc --no-backup --hide-footer --skip-header README.md

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

   * [Table of Contents](#table-of-contents)
   * [Install](#install)
   * [Test Title](#test-title)
   * [Key Management](#key-management)
   * [Start](#start)
   * [Configuration](#configuration)
   * [External port binding](#external-port-binding)
   * [Add a schema type](#add-a-schema-type)
   * [Create a document](#create-a-document)
   * [Query documents](#query-documents)
   * [Obtain document commits](#obtain-document-commits)
   * [DefraDB Query Language (DQL)](#defradb-query-language-dql)
   * [Peer-to-peer data synchronization](#peer-to-peer-data-synchronization)
   * [Securing the HTTP API with TLS](#securing-the-http-api-with-tls)
   * [Access Control System](#access-control-system)
   * [Supporting CORS](#supporting-cors)
   * [Backing up and restoring](#backing-up-and-restoring)
   * [Community](#community)
   * [Licensing](#licensing)
   * [Contributors](#contributors)
You don't have <!--ts--> or <!--te--> in your file...exiting
make[1]: *** [toc] Error 1
make: *** [docs] Error 2

And lastly also without both --insert and --no-backup flags: ./gh-md-toc --hide-footer --skip-header README.md:

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

   * [Table of Contents](#table-of-contents)
   * [Install](#install)
   * [Test Title](#test-title)
   * [Key Management](#key-management)
   * [Start](#start)
   * [Configuration](#configuration)
   * [External port binding](#external-port-binding)
   * [Add a schema type](#add-a-schema-type)
   * [Create a document](#create-a-document)
   * [Query documents](#query-documents)
   * [Obtain document commits](#obtain-document-commits)
   * [DefraDB Query Language (DQL)](#defradb-query-language-dql)
   * [Peer-to-peer data synchronization](#peer-to-peer-data-synchronization)
   * [Securing the HTTP API with TLS](#securing-the-http-api-with-tls)
   * [Access Control System](#access-control-system)
   * [Supporting CORS](#supporting-cors)
   * [Backing up and restoring](#backing-up-and-restoring)
   * [Community](#community)
   * [Licensing](#licensing)
   * [Contributors](#contributors)
You don't have <!--ts--> or <!--te--> in your file...exiting

➜ ./gh-md-toc --version

0.10.0

os:     Darwin
arch:   arm64
kernel: 23.4.0
shell:  GNU bash, version 5.2.26(1)-release (aarch64-apple-darwin23.2.0)
Copyright (C) 2022 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 8.4.0 (x86_64-apple-darwin23.0) libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0
wget : not installed
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 ...]
Ngôn ngữ chính
Shell
Star
3.3k
Fork
2.7k
Merge trung bình
20 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ekalinin/github-markdown-toc

Tất cả issue của ekalinin/github-markdown-toc

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.