Skip to content

feat(formulaCopy): add Notion-compatible formula copy format#526

Merged
Nagi-ovo merged 1 commit into
Nagi-ovo:mainfrom
POLARIS0824:feature/formula-copy-notion
Mar 21, 2026
Merged

feat(formulaCopy): add Notion-compatible formula copy format#526
Nagi-ovo merged 1 commit into
Nagi-ovo:mainfrom
POLARIS0824:feature/formula-copy-notion

Conversation

@POLARIS0824
Copy link
Copy Markdown
Contributor

@POLARIS0824 POLARIS0824 commented Mar 21, 2026

🚫 AI Policy / AI 政策

  • We explicitly reject AI-generated PRs that have not been manually verified.
  • 本项目拒绝接受任何未经人工复核的 AI 生成的 PR。
  • Low-quality AI PRs will be closed immediately. / 低质量的 AI PR 会被直接关闭。
  • You must understand and take responsibility for every line of code you submit. / 你必须理解并对你提交的每一行代码负责。
  • Workflow Proficiency / 协作能力: Ensure you are familiar with GitHub/Git workflows and maintain a clean Git history. Please learn the basics first if needed to avoid messy PR history. / 请确保你熟悉 GitHub/Git 工作流并保持 Git 历史整洁。如有必要请先学习相关知识,避免 PR 历史过于混乱。

Description / 描述

This PR adds a Notion-compatible formula copy format to Voyager.

Changes included:

  • add a new Notion option in popup settings for formula copy format
  • support copying formulas in a Notion-friendly wrapped format
  • keep existing LaTeX, UnicodeMath, and no-dollar options intact
  • update related i18n labels
  • add regression coverage for formula copy behavior

User impact:

  • users can choose a dedicated copy format when pasting formulas into Notion
  • existing formula copy behavior remains available for other workflows

本次PR为Voyager新增了兼容Notion的公式复制格式。

包含的变更:

  • 在弹窗设置中新增“Notion”选项作为公式复制格式
  • 支持以Notion的格式复制公式
  • 保留原有的“LaTeX”、“UnicodeMath”及“无美元符号”选项不变
  • 更新相关 i18n 标签
  • 为公式复制行为添加测试

用户影响:

  • 用户向Notion粘贴公式时,可选择专用复制格式
  • 现有公式复制功能仍适用于其他工作流程

Related Issue / 相关 Issue

#515

Visual Proof / 可视化证据

_1
_2

Browser Testing / 浏览器测试

  • [✅] Chrome / Edge (Chromium): Tested / 已测试
  • [✅] Firefox: Tested (Mandatory) / 已测试(必填)
  • Safari: Tested (Optional) or labeled as unsupported / 已测试(可选)或已标注为不支持

Checklist / 检查清单

  • [✅] I have manually verified that the feature works as intended. / 我已手动验证功能按预期工作。
  • [✅] I have confirmed that this PR does not break existing functionality. / 我已确认此 PR 不会破坏原有功能。
  • [✅] I have run bun run lint, bun run typecheck, bun run format and bun run build. / 我已运行代码校验、类型检查、格式化及构建。
  • [✅] I have added/updated necessary tests and they pass (bun run test). / 我已添加/更新了必要的测试并确保通过(bun run test)。

Open with Devin

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@Nagi-ovo
Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Nagi-ovo Nagi-ovo merged commit ea965cd into Nagi-ovo:main Mar 21, 2026
1 check passed
@Nagi-ovo
Copy link
Copy Markdown
Owner

Thanks so much!

@POLARIS0824
Copy link
Copy Markdown
Contributor Author

thanks lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants