Update image extension regex to match emacs image-file-name-extensions
See #117
This commit is contained in:
parent
f7c2b120f7
commit
d4f684b248
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ type Macro struct {
|
|||
|
||||
var validURLCharacters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;="
|
||||
var autolinkProtocols = regexp.MustCompile(`^(https?|ftp|file)$`)
|
||||
var imageExtensionRegexp = regexp.MustCompile(`(?i)^[.](png|gif|jpe?g|svg|tiff?)$`)
|
||||
var imageExtensionRegexp = regexp.MustCompile(`(?i)^[.](png|gif|jpe?g|svg|tiff?|webp|x[bp]m|p[bgpn]m)$`)
|
||||
var videoExtensionRegexp = regexp.MustCompile(`(?i)^[.](webm|mp4)$`)
|
||||
|
||||
var subScriptSuperScriptRegexp = regexp.MustCompile(`^([_^]){([^{}]+?)}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue