@automerge/automerge - v3.0.0
    Preparing search index...

    Function spans

    • Return the text + block markers at a given path

      Type Parameters

      • T

      Parameters

      Returns Span[]

      Rich text in automerge is represented as a sequence of characters with block markers appearing inline with the text, and inline formatting spans overlaid on the whole sequence. Block markers are normal automerge maps, but they are only visible via either the block function or the spans function. This function returns the current state of the spans