diff --git a/src/Elastic.Markdown/Myst/InlineParsers/DiagnosticLinkInlineParser.cs b/src/Elastic.Markdown/Myst/InlineParsers/DiagnosticLinkInlineParser.cs index a350aa533..e8cdedbbd 100644 --- a/src/Elastic.Markdown/Myst/InlineParsers/DiagnosticLinkInlineParser.cs +++ b/src/Elastic.Markdown/Myst/InlineParsers/DiagnosticLinkInlineParser.cs @@ -119,7 +119,7 @@ private bool ValidateBasicUrl(LinkInline link, InlineProcessor processor, string { if (string.IsNullOrEmpty(url)) { - processor.EmitWarning(link, "Found empty url"); + processor.EmitError(link, "Found empty url"); return false; } diff --git a/tests/authoring/Inline/InlineLinks.fs b/tests/authoring/Inline/InlineLinks.fs index cb599316c..479e222df 100644 --- a/tests/authoring/Inline/InlineLinks.fs +++ b/tests/authoring/Inline/InlineLinks.fs @@ -45,7 +45,7 @@ type ``inline link with mailto not allowed external host`` () = let ``has no errors`` () = markdown |> hasNoErrors [] - let ``has warning`` () = markdown |> hasWarning "mailto links should be to elastic.co domains." + let ``has error`` () = markdown |> hasWarning "mailto links should be to elastic.co domains." type ``empty link should result in an error`` () = @@ -54,7 +54,7 @@ type ``empty link should result in an error`` () = """ [] - let ``should warn`` () = markdown |> hasWarning "Found empty url" + let ``has error`` () = markdown |> hasError "Found empty url" [] - let ``has no erros`` () = markdown |> hasNoErrors + let ``has no warnings`` () = markdown |> hasNoWarnings