Skip to content

elm reactor web page is corrupt if README includes <script> tag #1780

@billstclair

Description

@billstclair

I was documenting how to set up ports for the soon-to-be-published billstclair/elm-websocket-client package, when I ran into this.

mkdir script-tag-bug
cd script-tag-bug
elm init
echo "    <script type='text/javascript' src='index.js'></script>" >README.md
elm reactor

Aim your browser at http://localhost:8000

My browser displays this:

\n", "project": { "type": "application", "source-directories": [ "src" ], "elm-version": "0.19.0", "dependencies": { "direct": { "elm/browser": "1.0.0", "elm/core": "1.0.0", "elm/html": "1.0.0" }, "indirect": { "elm/json": "1.0.0", "elm/time": "1.0.0", "elm/url": "1.0.0", "elm/virtual-dom": "1.0.0" } }, "test-dependencies": { "direct": {}, "indirect": {} } }, "exactDeps": { "elm/browser": "1.0.0", "elm/core": "1.0.0", "elm/html": "1.0.0", "elm/json": "1.0.0", "elm/time": "1.0.0", "elm/url": "1.0.0", "elm/virtual-dom": "1.0.0" } } });

Note that the <script> tag is indented by four spaces, meaning I expect it to be quoted code, rendered with a <pre> tag, or similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions