Skip to content

Commit 5f22e13

Browse files
authored
Move no url back to warning temporarily (#520)
1 parent 1f23af0 commit 5f22e13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Elastic.Markdown/Myst/InlineParsers/DiagnosticLinkInlineParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private bool ValidateBasicUrl(LinkInline link, InlineProcessor processor, string
119119
{
120120
if (string.IsNullOrEmpty(url))
121121
{
122-
processor.EmitError(link, "Found empty url");
122+
processor.EmitWarning(link, "Found empty url");
123123
return false;
124124
}
125125

tests/authoring/Inline/InlineLinks.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type ``empty link should result in an error`` () =
5454
"""
5555

5656
[<Fact>]
57-
let ``has no errors`` () = markdown |> hasError "Found empty url"
57+
let ``should warn`` () = markdown |> hasWarning "Found empty url"
5858

5959
[<Fact>]
60-
let ``has warning`` () = markdown |> hasNoWarnings
60+
let ``has no erros`` () = markdown |> hasNoErrors

0 commit comments

Comments
 (0)