Skip to content

Table copying loses cell line breaks and inline math delimiters #992

Closed

Description

@Yash-Singh1

Copying a table drops two pieces of cell content:

  • HTML export emits explicit line separators as whitespace, which receiving apps can collapse into a space.
  • Copy as Markdown omits $...$ around inline equations, so pasting the copied Markdown renders x_1 as ordinary text rather than math. The existing inline Markdown extractor already restores these delimiters outside tables.

The proposed fix preserves inline line breaks as <br> and restores inline math delimiters in table Markdown serialization. Code-block newlines remain literal. Regular Copy and HTML math export retain their existing bare-TeX behavior.

The earlier proposal also added delimiters to HTML math export. That change has been removed because the existing bare-TeX fallback may be intentional.

The retained regressions fail on the unchanged upstream base and pass with the fix in Android Robolectric and iOS XCTest through the React Native example app.

Generated by GPT 6.1 Sol using the Codex harness.

Activity

  1. changed the title [-]HTML copying loses formula delimiters and inline line breaks[/-] [+]Table copying loses cell line breaks and inline math delimiters[/+] on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions