From 1ada8f7dd4b175fc225b890d86cbc5b2e7781c5f Mon Sep 17 00:00:00 2001 From: Thomas Boby Date: Sun, 15 Sep 2024 15:03:15 +0100 Subject: [PATCH 1/2] Fix link (a) component --- Feliz.Markdown/Markdown.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Feliz.Markdown/Markdown.fs b/Feliz.Markdown/Markdown.fs index 867252db..9a3c86f2 100644 --- a/Feliz.Markdown/Markdown.fs +++ b/Feliz.Markdown/Markdown.fs @@ -65,7 +65,7 @@ module markdown = [] type components = static member inline p(render: IParagraphProperties -> ReactElement) = unbox (Interop.mkAttr "p" render) - static member inline linkReference(render: ILinkProperties -> ReactElement) = unbox (Interop.mkAttr "linkReference" render) + static member inline a(render: ILinkProperties -> ReactElement) = unbox (Interop.mkAttr "a" render) static member inline h1(render: IHeadingProperties -> ReactElement) = unbox (Interop.mkAttr "h1" render) static member inline h2(render: IHeadingProperties -> ReactElement) = unbox (Interop.mkAttr "h2" render) static member inline h3 (render: IHeadingProperties -> ReactElement) = unbox (Interop.mkAttr "h3" render) @@ -160,4 +160,4 @@ type Markdown = static member inline markdown (properties: IReactProperty list) = Interop.reactApi.createElement(importDefault "react-markdown", createObj !!properties) static member inline markdown (sourceMarkdown: string) = - Interop.reactApi.createElement(importDefault "react-markdown", createObj [ "children" ==> sourceMarkdown ]) \ No newline at end of file + Interop.reactApi.createElement(importDefault "react-markdown", createObj [ "children" ==> sourceMarkdown ]) From 66e4e5d5dfb7936cde3392a923a2dc15a4fcf028 Mon Sep 17 00:00:00 2001 From: Thomas Boby Date: Sun, 15 Sep 2024 15:08:27 +0100 Subject: [PATCH 2/2] Remove newline --- Feliz.Markdown/Markdown.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Feliz.Markdown/Markdown.fs b/Feliz.Markdown/Markdown.fs index 9a3c86f2..feda146a 100644 --- a/Feliz.Markdown/Markdown.fs +++ b/Feliz.Markdown/Markdown.fs @@ -160,4 +160,4 @@ type Markdown = static member inline markdown (properties: IReactProperty list) = Interop.reactApi.createElement(importDefault "react-markdown", createObj !!properties) static member inline markdown (sourceMarkdown: string) = - Interop.reactApi.createElement(importDefault "react-markdown", createObj [ "children" ==> sourceMarkdown ]) + Interop.reactApi.createElement(importDefault "react-markdown", createObj [ "children" ==> sourceMarkdown ]) \ No newline at end of file