knowledgebase_law/node_modules/micromark/lib/postprocess.js

18 lines
314 B
JavaScript
Raw Normal View History

2025-04-11 23:47:09 +08:00
/**
* @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;
}