elm-explorations / elm-explorations/markdown

Links in markdown do not trigger onUrlRequest in Browser.application

Open
#1 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elm
Stars
31
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Hi @evancz! Thanks for great work with 0.19 - community was waiting for this for a long time, you know.

However, I've got an unexpected behaviour of interaction between `Browser.application` and `Markdown`. The problem is Markdown's links don't work like external links in case when they are linked with internal routes (`"/"` for example). Furthermore clicks to the links don't trigger neither `onUrlRequest` nor `onUrlChange` - browser just load a page from scratch.

I guess it happens because the module insert links as is and without handling of click event.

I've made an [Ellie example](https://ellie-app.com/3bH5tffcHcRa1) but it won't work inside of the sandbox so you should run it locally thru `elm reactor`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.