Generate HTML identifier from section title
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- html
- 領域
- web-dev
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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;
}
- 主要言語
- C++
- スター
- 5.9k
- フォーク
- 499
- 平均マージ
- 4時間 4分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pbek/QOwnNotes のほかの issue
-
Type: Upstream-problem
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Type: Support
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
-
Effort: Very high Type: Feature Type: Upstream-problem
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
Type: Feature
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
Severity: Low Type: Upstream-problem
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ionut-mihalache/aqua#31 · コメント 1 件 ·
-
LWG
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
needs-kind
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
villagesql/villagesql-server#1702 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/vcpkg-tool#2191 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信