Generate HTML identifier from section title
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
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- html
- Lĩnh vực
- web-dev
Hướng nghiên cứu
Start by finding the HTML export code that assigns section identifiers and the tests covering exported sections; compare its current numeric IDs with the title-based behavior described here. Done means exported section IDs reflect their titles and can be used as fragment links, with tests verifying the generated HTML.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Expected behaviour
I can link to a specific section in a exported HTML document using an identifier generated from its title.
eg. <h4 id="my-section">My section</h4> in generated html, in order to be able to use my_note.html#my-section to access "My section"
Actual behaviour
The identifier for sections exist, but are numerically incremented, and do not reflect the title of the section.
example: <h4 id="toc_6">My section</h4>
Possible implementation
This is how it's done in the insert-toc script, in order to work well with GitHub flavored Markdown:
function extractLink(title) {
var lowercase = title.toLowerCase()
var spaceReplaced = lowercase.replace(/ /g, "-")
var invalidCharsRemoved = spaceReplaced.replace(/[^A-Za-zÀ-ÿ-_]/g, "")
return invalidCharsRemoved;
}
- Ngôn ngữ chính
- C++
- Star
- 5.9k
- Fork
- 499
- Merge trung bình
- 4 giờ 4 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pbek/QOwnNotes
-
Type: Upstream-problem
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Type: Support
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 42/100
-
Effort: Very high Type: Feature Type: Upstream-problem
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Type: Feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Severity: Low Type: Upstream-problem
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Tất cả issue của pbek/QOwnNotes
Issue tương tự
-
bug introduced: 4.2.0 or earlier P2 ready-for-agent S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
open-astro/AlpacaBridge#3057 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
least_squares returns a nonfinite objective for an invalid initial residualCó thể đã có người làm @sylvesterkaczmarek đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
google-deepmind/mujoco#4023 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
管理器:卡片副标题去掉 mas_N,挪到悬停提示Đang mởarea:manager enhancement P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ModAVD/ModAVD#377 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
envoyproxy/envoy#49711 ·
Maintainer thường phản hồi trong vòng 1 ngày