refactor: add markdown service

This commit is contained in:
Steven
2024-04-29 08:00:37 +08:00
parent 4338234641
commit 155c5baf2c
46 changed files with 5479 additions and 2084 deletions

View File

@ -32,7 +32,7 @@ func GetHTMLMeta(urlStr string) (*HTMLMeta, error) {
return nil, err
}
if mediatype != "text/html" {
return nil, errors.New("Wrong website mediatype")
return nil, errors.New("not a HTML page")
}
htmlMeta := extractHTMLMeta(response.Body)