Repository navigation
mdastic@0.3.4
-
MDX errors now match remark's VFileMessage fully.
MdxParseErrorhas the sameurlas micromark, and errors from mdast-util-mdx-jsx andnon-esmerrors have a rangeplace, sonameandString(error)match remark:const error = parse('<a></a/>', { syntax: [mdx()] }) String(error) // '1:7-1:8: Unexpected self-closing slash `/` in closing tag, expected the end of the tag'
-
Fixed MDX error order for closing tags. An attribute or self-closing slash in a closing tag is reported after a missing opening tag and after later micromark errors, like remark (
a </a b> c). -
Fixed error ranges at container ends. An unclosed code fence inside an open JSX tag in a list or footnote now reports remark's container end.
-
Tree-shakable.
package.jsonsets"sideEffects": false, so bundles that do not callparseorstringifydrop mdastic and acorn.