elm-css icon indicating copy to clipboard operation
elm-css copied to clipboard

Media Query documentation should not use `@` symbols in links

Open MiracleBlue opened this issue 7 years ago • 2 comments

Hi there,

The rendered documentation page for Media.elm has a couple of links to MDN's @media documentation pages, and due to the @ symbol appearing in these URLs, the Markdown parser seems to be turning them into mailto links instead of normal web links.

One specific case can be found here: http://package.elm-lang.org/packages/rtfeldman/elm-css/13.1.1/Css-Media#MediaType

The link it references https://developer.mozilla.org/en-US/docs/Web/CSS/@media#Media_types becomes mailto:https://developer.mozilla.org/en-US/docs/Web/CSS/@media#Media_types

Not sure if this should be a bug filed with elm-markdown or not, but I thought I'd start here.

MiracleBlue avatar Apr 05 '18 05:04 MiracleBlue

The URL without @ seems to redirect to the same page. It could simply be removed: https://developer.mozilla.org/en-US/docs/Web/CSS/media#Media_types

tolgap avatar Apr 05 '18 07:04 tolgap

Thanks for the report @MiracleBlue, and thanks for identifying a fix @tolgap! I edited the title to reflect what we should do about this.

rtfeldman avatar Jun 10 '18 19:06 rtfeldman