Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Remove the safelink option, it breaks empty links.

Matt Robertsd3b3fec48dbc
diff --git a/app/pkg/markdown/markdown.go b/app/pkg/markdown/markdown.go
index 758c6b88a..d7d1e6afe 100644
--- a/app/pkg/markdown/markdown.go
+++ b/app/pkg/markdown/markdown.go
@@ -29,7 +29,6 @@ var htmlFlags = 0 |
htmlrenderer.SmartypantsFractions |
htmlrenderer.SmartypantsDashes |
htmlrenderer.SmartypantsLatexDashes |
- htmlrenderer.Safelink |
htmlrenderer.NofollowLinks |
htmlrenderer.NoreferrerLinks
diff --git a/app/pkg/markdown/markdown_test.go b/app/pkg/markdown/markdown_test.go
index 33525ae7c..f76249f5a 100644
--- a/app/pkg/markdown/markdown_test.go
+++ b/app/pkg/markdown/markdown_test.go
@@ -75,6 +75,7 @@ How are you?`: `Hello World
How are you?`,
"### Hello World": `Hello World`,
"Check this out: `HEEEY`": "Check this out: `HEEEY`",
+ "Bad links should be OK [link without actual link]()": "Bad links should be OK link without actual link",
} {
output := markdown.PlainText(input)
Expect(output).Equals(expected)