mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 02:01:54 +02:00
Merge pull request #1550 from mnjm/fix-1549-url-encoding
🐛 fix: https://github.com/nunocoracao/blowfish/issues/1549
This commit is contained in:
commit
2d3fa0185d
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{{ $url := .Get "url" }}
|
||||
{{ $type := .Get "type" }}
|
||||
{{ with resources.GetRemote (printf $url) }}
|
||||
{{ with resources.GetRemote (urls.Parse $url) }}
|
||||
{{ $codeBlock := printf "```%s\n%s\n```" $type .Content }}
|
||||
{{ $codeBlock | markdownify }}
|
||||
{{ else }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{ $url := .Get "url"}}
|
||||
{{ with resources.GetRemote (printf $url) }}
|
||||
{{ with resources.GetRemote (urls.Parse $url) }}
|
||||
{{ .Content | markdownify }}
|
||||
{{ else }}
|
||||
{{ errorf "Mardown Importer Shortcode - Unable to get remote resource" . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue