Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Markdown link (a) component #622

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tboby
Copy link

@tboby tboby commented Sep 15, 2024

This confused me for a while as I thought I was using components wrong!

 Markdown.markdown [
      markdown.children rel.Description
      markdown.components [
          unbox<IComponent> (
              Interop.mkAttr "a" (fun (x: ILinkProperties) ->
                  Html.a [
                      prop.children x.children
                      prop.className "link"
                      prop.href x.href
                  ])
          )
      ]
  ]

works, which I assume is what linkReference is supposed to be overriding.

The table at https://github.com/remarkjs/react-markdown/blob/main/changelog.md#600---2021-04-15 implies that trow/tcell may be wrong too, but I didn't check that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant