message: Remove empty headings from ToC
diff: @@ -38,11 +38,15 @@ export const transformer = (ast: Node) => {
  };
  for (let i = 0; i < headings.length; i++) {
  + const value = getNodeValue(headings[i] as Node);
  +
  + if (value !== '') {
  const heading: TOCEntryItem = {
  depth: headings[i].depth,
  - value: getNodeValue(headings[i] as Node),
  + value: value,
  children: [],
  };
  +
  const parent = findParent(processed, heading);
  if (!isNull(parent)) {
  @@ -52,6 +56,7 @@ export const transformer = (ast: Node) => {
  }
  processed = [...processed, heading];
  }
  + }
  return entries;
  };
  