UNPKG

micromark

Version:

small commonmark compliant markdown parser with positional info and concrete tokens

18 lines (16 loc) 314 B
/** * @import {Event} from 'micromark-util-types' */ import { subtokenize } from 'micromark-util-subtokenize'; /** * @param {Array<Event>} events * Events. * @returns {Array<Event>} * Events. */ export function postprocess(events) { while (!subtokenize(events)) { // Empty } return events; }