code: byte GetParaLevelAt(int pindex)
      {
          if (defaultParaLevel == 0 || pindex < paras_limit[0])
              return paraLevel;
          int i;
          for (i = 1; i < paraCount; i++)
              if (pindex < paras_limit[i])
                  break;
          if (i >= paraCount)
              i = paraCount - 1;
          return paras_level[i];
      }
docs: /* determine the paragraph level at position index