micromark / micromark-extension-mdx-jsx

micromark extension to support MDX or MDX.js JSX
https://unifiedjs.com
MIT License
8 stars 4 forks source link

Add a nice error on `<http:/`, `<example@` #3

Closed wooorm closed 3 years ago

wooorm commented 3 years ago

Subject of the feature

Because we’re in a markdown world, folks probably expect autolinks to work, but for MDX we don‘t because it’s ambiguous in several cases whether something is an autolink or a tag.

Problem

Folks are getting cryptic errors right now.

Expected behavior

The / directly after : (so, at the start of the local name) should probably crash nicely. We might also even do something for tel “links”: <tel:123> and <tel:+123>. Also encountering an @ in the primary name should crash nicely. “crash nicely” here means saying that this looks like a link but isn’t supported.