postprocess.js 295 B

12345678910111213141516
  1. /**
  2. * @typedef {import('micromark-util-types').Event} Event
  3. */
  4. import {subtokenize} from 'micromark-util-subtokenize'
  5. /**
  6. * @param {Array<Event>} events
  7. * @returns {Array<Event>}
  8. */
  9. export function postprocess(events) {
  10. while (!subtokenize(events)) {
  11. // Empty
  12. }
  13. return events
  14. }