Skip to content

Link to Babeljs.io repl incorrect. #240

Closed
@ptrmelko10

Description

@ptrmelko10

The "See full expanded version" link to babeljs.io in content/tutorial/tutorial.md is not interpreting the html character codes for non-alphanumeric characters correctly in production. The link is working correctly when selected from within the markdown file in the repo.

This is what is loaded into babel in production:

<div className%3D"shopping-list">
  <h1>Shopping List for {props.name}<%2Fh1>
  <ul>
    <li>Instagram<%2Fli>
    <li>WhatsApp<%2Fli>
    <li>Oculus<%2Fli>
  <%2Ful>
<%2Fdiv>

Product URL snippet: className%253D%22shopping-list
Markdown URL snippet: className%3D%22shopping-list

Reproduced in:
Google Chrome Version 61.0.3163.100
Google Chrome Version 62.0.3202.75
Firefox 56.0.2

Work around:
Update the code in babel after following the link.

I can probably take a look at this later unless someone else wants to grab this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions