site/node_modules/micromark/lib/postprocess.js
2024-10-14 08:09:33 +02:00

17 lines
295 B
JavaScript

/**
* @typedef {import('micromark-util-types').Event} Event
*/
import {subtokenize} from 'micromark-util-subtokenize'
/**
* @param {Array<Event>} events
* @returns {Array<Event>}
*/
export function postprocess(events) {
while (!subtokenize(events)) {
// Empty
}
return events
}