Polyman Documentation - v3.1.0
    Preparing search index...

    Function tailLines

    • The end of text that fits in maxLines terminal lines at width columns, cut at a line start. When the cut falls inside a code block, the fence is opened again so the markdown still draws it as code. hidden is the number of source lines that were cut.

      Parameters

      • text: string
      • maxLines: number
      • width: number

      Returns { text: string; hidden: number }