function extractInlineConfigCommentsFromHTML(node) {
	if (!configCommentStart.test(node.value)) {
		return [];
	}
	const comments = [];

	let match;

	while ((match = htmlComment.exec(node.value))) {
		if (configCommentStart.test(match[0])) {
			const comment = match[0];

			// calculate location of the comment inside the node
			const start = {
				...node.position.start,
			};

			const end = {
				...node.position.start,
			};

			const {
				lineOffset: startLineOffset,
				columnOffset: startColumnOffset,
			} = findOffsets(node.value, match.index);

			start.line += startLineOffset;
			start.column += startColumnOffset;
			start.offset += match.index;

			const commentLineCount = comment.split("\n").length - 1;

			end.line = start.line + commentLineCount;
			end.column =
				commentLineCount === 0
					? start.column + comment.length
					: comment.length - comment.lastIndexOf("\n");
			end.offset = start.offset + comment.length;

			comments.push(
				new InlineConfigComment({
					value: match[1].trim(),
					position: {
						start,
						end,
					},
				}),
			);
		}
	}

	return comments;
}
Extracts inline configuration comments from an HTML node.
@param {HTMLNode} node The HTML node to extract comments from.
@returns {Array<InlineConfigComment>} The inline configuration comments found in the node.