Manjunath Mohan 2024-06-19 09:57:27 +05:30
parent 0a91156191
commit e8dfdfe528
2 changed files with 3 additions and 3 deletions

View file

@ -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 }}

View file

@ -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 }}