Lists
Introduction
This plugin adds support for ordered and unordered lists.
Installation
npm install commajs-lists
In commajs-core options add:
import CommaLists from "commajs-lists";
options = {
...,
plugins: [
...,
{ pClass: CommaLists },
]
}
Usage
To add a list to a document:
commajsInstance.InsertPluginAtSection(CommaLists.GetName(), "ordered");
If text is selected by the user on the document while invoking .InsertPluginAtSection, CommaLists will convert each line in an item of the list.
For ordered lists, right clicking on a number will open a panel to edit the start number of the list.