Skip to content

Fix Notion inline equation import - #3227

Open
kentakom1213 wants to merge 2 commits into
anyproto:developfrom
kentakom1213:GO-0000-notion-inline-equation-import
Open

Fix Notion inline equation import#3227
kentakom1213 wants to merge 2 commits into
anyproto:developfrom
kentakom1213:GO-0000-notion-inline-equation-import

Conversation

@kentakom1213

Copy link
Copy Markdown

  • I understand that contributing to this repository will require me to agree with the CLA

Description

This PR fixes the Notion importer so that equations contained in rich text remain inline and preserve their original position.

Previously, inline equations were converted into standalone LaTeX blocks. This change serializes rich-text equations as $expression$ inside the surrounding text block.

Standalone Notion equation blocks continue to be imported as standalone LaTeX blocks.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Not tested through the desktop UI.
The importer behavior is covered by unit tests.

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help

Added tests covering:

  • A rich-text paragraph containing only an inline equation
  • Preservation of an inline equation between surrounding text
  • Preservation of standalone Notion equation blocks as standalone LaTeX blocks

The following test packages pass locally:

CGO_LDFLAGS=-Wl,-no_warn_duplicate_libraries go test -count=1 ./core/block/import/notion/api/block
CGO_LDFLAGS=-Wl,-no_warn_duplicate_libraries go test -count=1 ./core/block/import/notion/...

Added to documentation?

  • 📜 README.md
  • 📓 tech-docs
  • 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

No post-deployment tasks are required.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@kentakom1213

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

1 participant