[FEATURE]: Make it easier to copy selected formulas as LaTeX code in the Web UI

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

Start in the Web UI's markdown/message rendering path where math is rendered with KaTeX, and find where fenced latex/math code blocks get their copy button so you can see why it is dropped for formulas. Compare against KaTeX's copy-tex extension, which annotates rendered output with the original source. Done means selecting one or several rendered formulas and pasting yields their LaTeX source, and the code-block copy button survives. Note the reporter offers to open the PR himself.

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

説明

area/web type/feature version/v2
Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

I often copy formulas into my notes. Right now I have to extract the LaTeX from the whole reply or switch to the TUI. I'd like to select all or part of a rendered formula in the Web UI and copy its complete LaTeX source.

Cherry Studio already supports this via KaTeX's copy-tex extension. A review comment on #64380 also noted that latex and math code blocks lose their copy button when rendered as formulas.

The local patch shown below preserves and reads KaTeX's source annotations, which also fixes #54769. If this is welcome, I can open a single PR or split the annotation fix and the new copy behavior into two PRs.

Copying one formula
Copying one formula as LaTeX
Copying text and multiple formulas
Copying text and multiple formulas as LaTeX
主要言語
TypeScript
スター
227k
フォーク
30.7k
平均マージ
3時間 57分
マージ済み PR(30日)
484

環境構築

はじめの一歩

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

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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