Skip to content

Bugs with new mathematics node types #7977

@mejo-

Description

@mejo-

Describe the bug

Follow-up issue for #7957.

  • Inline formulas enforce a newline at their end, which is unexpected for inline nodes.
  • When inserting an inline formula at the end of the document, it seems impossible to position the cursor after the node, so impossible to insert content behind it.
  • When inserting a block type formula and placing the cursor in the next line, typing will remove the added formula.
  • In menubar, "Display formula" seems a bit unclear to me as node type. Maybe "block math formula" or just "block math" would be better? Similarly, "inline formula" could be changed to "inline math formula" or just "inline math".
  • In menubar, "Inline formula" is placed in the block node submenu, next to blockquotes, codeblocks and callouts. I would not expect it there. Not sure though what would be the best alternative place 🤔
  • Probably we should use and expand https://tiptap.dev/docs/editor/extensions/nodes/mathematics instead of re-implementing it all ourselves.
  • Simple playwright tests to add both node types would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developbugSomething isn't workingfeature: formattingFeatures related to text formatting and node types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions