Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jakewies/hugo-theme-codex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel PROUST <gabriel.proust.astek@axa.fr>2021-03-26 11:58:42 +0300
committerGabriel PROUST <gabriel.proust.astek@axa.fr>2021-03-26 12:01:56 +0300
commit7eae9531b252d4a2cde4ff84413dd1576814a186 (patch)
tree04597a62aaea50e65bbf2cd536acc01a1aba10dc
parent81e0ba022799ab39a78999f36439cb9e7f5f5674 (diff)
fix(markup): remove forced whitespace after links
A whitespace was forced after ever link when the markdown was translated to HTML. For instance, something like this: ```md This is [some link](https://github.com), with a comma right after. ``` would be rendered like this: ``` This is some link , with a comma right after. ```
-rw-r--r--layouts/_default/_markup/render-link.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
index d445e88..f29f1b2 100644
--- a/layouts/_default/_markup/render-link.html
+++ b/layouts/_default/_markup/render-link.html
@@ -1,4 +1,4 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}" {{ end }}
{{ if strings.HasPrefix .Destination "mailto" }} target="_blank" {{ end }}
{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noreferrer noopener" {{ end }}
->{{ .Text | safeHTML }}</a>
+>{{ .Text | safeHTML }}</a> \ No newline at end of file