Extend htmlSerializer to add additional params

@tgalpin, you can extend the functionality of the HTML Serializer by making your HTML Serializer a closure. That is, make it a function that returns an HTML Serializer function. This will allow you to pass whatever you need to your HTML Serializer. In this case you can pass your starting number.

Then you could do something like this:

const anotherHtmlSerializer = (startingNumber) => {
  return function(type, element, content, children) {
    if (type === Elements.oList) {
      return `<ol start=${startingNumber}>${children.join('')}</ol>`;
    }
    return null;
  }
}

Does this make sense? Give this a try and let me know if you manage to get it working!