mirror of
https://github.com/rwinkhart/glamour-temp-MUTN.git
synced 2026-09-01 14:37:28 -04:00
Don't abort when encountering invalid URLs
This commit is contained in:
+1
-2
@@ -2,7 +2,6 @@ package ansi
|
||||
|
||||
import (
|
||||
"io"
|
||||
"log"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
@@ -147,7 +146,7 @@ func isChild(node ast.Node) bool {
|
||||
func resolveRelativeURL(baseURL string, rel string) string {
|
||||
u, err := url.Parse(rel)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
return rel
|
||||
}
|
||||
if u.IsAbs() {
|
||||
return rel
|
||||
|
||||
Reference in New Issue
Block a user