function getRulesTableRange(text) {
	const tree = fromMarkdown(text);
	const htmlNodes = tree.children.filter(({ type }) => type === "html");
	const startComment = htmlNodes.find(
		({ value }) => value === "<!-- Rule Table Start -->",
	);
	const endComment = htmlNodes.find(
		({ value }) => value === "<!-- Rule Table End -->",
	);

	return startComment && endComment
		? [startComment.position.end.offset, endComment.position.start.offset]
		: null;
}
Returns start and end offset of the rules table as indicated by "Rule Table Start" and
"Rule Table End" HTML comments in the markdown text.
@param {string} text The markdown text.
@returns {Range | null} The offset range of the rules table, or `null`.