import { tokenizeAttributes } from './tokenizeAttributes.js' export function parseShortcodeAttributes(attrString: string): Record { const attributes: Record = {} tokenizeAttributes(attrString, 'shortcode').forEach(token => { if (token.type === 'keyValue') { attributes[token.name] = token.value } }) return attributes }