Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML and Text formatting support #184

Merged
merged 10 commits into from
Oct 19, 2024

Commits on Oct 11, 2024

  1. Add support for XML.

    Add bindings to XMLFragment, XMLElement, XMLText, and XMLEvent. Allows
    reading and writing of XML fragments from the document, which rich text
    editors use heavily.
    
    Closes jupyter-server#151
    ColonelThirtyTwo committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f85190f View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Add support for formatting and embeds in Text

    Rich text editors often store their markup in attributes and embeds.
    ColonelThirtyTwo committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    c360dbb View commit details
    Browse the repository at this point in the history
  2. Allow apply_update in a transaction

    Currently trying to use apply_update in a transaction causes a deadlock,
    as apply_update tries to make its own new transaction but is locked out.
    This reuses the existing transaction, which also allows applying
    multiple updates in a single transaction.
    ColonelThirtyTwo committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    2c5627c View commit details
    Browse the repository at this point in the history
  3. Add __eq__ and __hash__ to XML types

    Allows comparing whether objects refer to the same element in a doc.
    Important since every access generates a new, unique Python wrapper
    instance.
    
    __eq__ is based directly from the underlying rust objects' `Eq`
    implementation. __hash__ is based off of the `Hash` implementation of
    the `BranchID` of the rust objects.
    ColonelThirtyTwo committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    77bba28 View commit details
    Browse the repository at this point in the history
  4. Add XmlText.diff

    Like Text, XmlText can contain embedded formatting, so make that
    available.
    ColonelThirtyTwo committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    655bdd0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    78e1598 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    12a4a99 View commit details
    Browse the repository at this point in the history
  7. Document XML types

    ColonelThirtyTwo committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    fb6ef77 View commit details
    Browse the repository at this point in the history
  8. More lint fixes

    ColonelThirtyTwo committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    4ae7e94 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d691f57 View commit details
    Browse the repository at this point in the history