Merge branch 'dev' into 1474-long-tocs-not-shown-fully

This commit is contained in:
Nuno Coração
2024-06-19 17:23:50 +01:00
committed by GitHub
4 changed files with 23 additions and 4 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 }}