@@ -111,7 +111,6 @@ export function factoryAttributes(
code !== codes.greaterThan &&
code !== codes.graveAccent &&
code !== codes.rightParenthesis &&
- code !== codes.space &&
code !== codes.comma
) {
effects.consume(code);
@@ -63,7 +63,7 @@ export const remarkPlugin: Plugin = () => (tree) => {
firstAttrValue === '' &&
!SUPPORTED_ATTRIBUTES.includes(firstAttrKey)
- attributes.prefix = firstAttrKey;
+ attributes.prefix = firstAttrKey.trim();
}