Documentation
    Preparing search index...

    Function splitLines

    • Split the contents of the first allowed element in pre into one span per line (denoted source by \n). Each individual line is wrapped using [makeLine], which also nests another -content span inside the main span. The line number is stored in the data-line attribute of the outer span. The containing element gains a data-digits attribute. options will be shallowly merged with DEFAULT_OPTIONS.

      Parameters

      • pre: Element
      • options: Partial<Options> = {}

      Returns void