Support custom heading classes in addition to IDs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- markdown, typescript
調査の方向性
カスタム見出し ID がすでに処理されている packages/docusaurus-mdx-loader/src/remark/headings/index.ts から始めます。既存の見出しの動作を確認し、提案されている {#id .class1 .class2} 構文をどのように表現すべきか判断してください。ID もクラスも使用していない見出しを変更せずに、ID と合わせてカスタムクラスがサポートされれば作業は完了です。
索引モデルが issue の本文から書いたものです。
説明
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Description
In addition to custom heading IDs, also allow setting custom heading classes.
Has this been requested on Canny?
No response
Motivation
This allows custom styling via CSS or filtering via JS.
API design
For example, I can imagine a syntax as follows:
# Heading {#id .class1 .class2}
Have you tried building it?
This could be implemented in the heading remark plugin where custom IDs are already processed.
Self-service
- I'd be willing to contribute this feature to Docusaurus myself.
- 主要言語
- TypeScript
- スター
- 66.5k
- フォーク
- 10.1k
- 平均マージ
- 22時間 57分
- マージ済み PR(30日)
- 158
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
facebook/docusaurus のほかの issue
-
Add the mobile-web-app-capable meta tag to the website's PWA configuration対応中かも @anishagrawal25 が 5 日前に担当しました。 オープンbug status: needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
facebook/docusaurus#12743 ·
メンテナーはふだん 1 日以内に返信
-
Playground cards have inconsistent heights対応中かも @anishagrawal25 が 5 日前に担当しました。 オープンbug status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
facebook/docusaurus#12739 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Page title drops a trailing # from the heading, e.g. # Learn C# becomes "Learn C" (AI-assisted)対応中かも @lx3133584 が 12 日前に担当しました。 オープンbug status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
facebook/docusaurus#12644 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
docusaurus serve: static assets 404 when baseUrl is not "/" and trailingSlash is true対応中かも @Shashank01729 が 33 日前に担当しました。 オープンbug status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
facebook/docusaurus#12476 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Firefox clips descenders in documentation sidebar labels on Windows対応中かも @xusnitdinov が 100 日前に担当しました。 オープンbug status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
facebook/docusaurus#12299 ·
メンテナーはふだん 1 日以内に返信
facebook/docusaurus の issue をすべて見る
似ている issue
-
ready
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
wheresrhys/totf#1214 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CodeChefVIT/ffcs#281 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
endora-commerce/endora-commerce#451 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
vetro-protocol/vetro-monorepo#1007 ·
メンテナーはふだん 1 日以内に返信