Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Proposal: Add options to use pre-processed content with `beforeEach` function

オープン
#1,898 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 8 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
tooling

調査の方向性

まず docsify のレンダリングステージと Marked との統合を確認し、次に提案されているライフサイクルについてプロジェクトメンテナと議論してください。この issue では API や実装箇所が指定されていないためです。完了条件は、合意された非破壊的な preprocessing hook、文書化された動作、およびプラグインの処理順序と前処理済みコンテンツの再利用を対象とするテストが用意されていることです。

索引モデルが issue の本文から書いたものです。

説明

Feature request

What problem does this feature solve?

For plugins, we have to do some pre-processing tasks, for example, we always need to ignore the code blocks, then start the processing of our plugins.
If this function not provided by docsify itself officially, then each plugin need to handle it by themselves, for users who want included many plugins, those pre-processing tasks will be executed repeatedly, which will affect the performance for loading pages.

What does the proposed API look like?

Haven't yet considered welly, but might can consider adding something like afterEachXXX for each stage of processing the markdown content, like afterEachCodeHandled.
I hope it should be a “new feature”, rather than a “break change”.

How should this be implemented in your opinion?

Haven't yet considered welly, waiting for project members to discuss this proposal, since docsify does not handle the render stages by itself other than using Marked.

Are you willing to work on this yourself?

Might will have some time to do this, but need helps and advices.

主要言語
JavaScript
スター
31.5k
フォーク
5.8k
平均マージ
7日 18時間
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docsifyjs/docsify のほかの issue

docsifyjs/docsify の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。