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

Mathematics node bloats the largest chunk including katex twice

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript

調査の方向性

まず、issue に記載されている数学の実装、カスタムノードビュー、3つの KaTeX import を追跡します。生成された最大の chunk とノードビューの読み込みパスを調べます。重複した KaTeX import が削除され、数学が使用される場合にのみ KaTeX が読み込まれ、レンダリング動作が変更されていなければ完了です。

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

説明

bug

Describe the bug
The current mathematics implementation imports katex three times:

  • via @tiptap/extension-mathematics

  • via markdown-it-katex

  • directly.

  • We add a custom node view so the katex part in the tiptap extension never gets used - it's imported never the less.

  • Markdown-it-katex will render the latex and then we extract its source from the annotation tag.
    We could avoid the entire rendering in the first place and thus also the katex dependency.

  • Make sure to lazy load katex our in the node view only if latex is actually used on the page.

主要言語
JavaScript
スター
665
フォーク
133
平均マージ
1日 17時間
マージ済み PR(30日)
172

環境構築

はじめの一歩

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

nextcloud/text のほかの issue

nextcloud/text の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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