-
Notifications
You must be signed in to change notification settings - Fork 16
Spacing around markdown links #45
Comments
@nate-double-u I have gone through the issue and I have certain doubts. |
Hi @GauravSarkar, thanks for looking into this!
Because it's test content, you can only see it when you run the site locally: http://localhost:1313/test-content/pod-overview/#pod-templates
I believe that the issue is with the template itself. When you run the site locally you can see the extra spaces. I linked to the Dex IdP site as an example because it's generated from this template, and hasn't had many changes made to the styling. Any fix made here will likely be copied downstream. You can also replicate this bug by copying the code snippet above into the home page and running it locally. |
Just a note @GauravSarkar, I've removed the pod-templates page entirely now in favour of a smoke test page (https://cncf-hugo-starter.netlify.app/docs/test/). I think that for testing this, we'll need to recreate the issue locally. |
@nate-double-u I am still looking into the matter. I have not been able to find the solution for it. Thanks for the update. |
@nate-double-u I wanted to understand this project completely. So I was studying the code base. If you can suggest like how should I continue so that I can properly understand what is going on in the overall project. |
Hi @GauravSarkar -- you bring up a good point, I should open a ticket to more clearly explain what this project's goals are. With this project, we are trying to build a template that can be used, quickly and easily, by any CNCF Sandbox Project that needs one. |
This spacing issue can be seen live on the smoke test page in the images section. (Note: PR #73 is moving the smoke test page to demo. https://deploy-preview-73--cncf-hugo-starter.netlify.app/docs/demo/) |
It seems like it's happening in the generated html (see extra space when inspecting), even though it's not in the markdown, which leads me to suspect the markdown parser. It looks like this is happening in Goldmark, but not in the previous default of BlackFriday: And there might be something in here but I haven't found it yet: Anyway, adding clues that might help us track it down. |
We've faced this problem on other websites. It arises because of the extra spaces and the "wrong" kind of comments in the link render hook file: layouts/_default/_markup/render-link.html Here are examples of how it's been fixed elsewhere:
Note that this template's |
Fixes cncf#45 Signed-off-by: Kapunahele Wong <[email protected]>
Gladly. I left a comment on the PR. |
Fixes cncf#45 Signed-off-by: Kapunahele Wong <[email protected]>
Fixes cncf#45 Signed-off-by: Kapunahele Wong <[email protected]>
Fixes #45 Signed-off-by: Kapunahele Wong <[email protected]>
It looks like there is space being added around links, causing some punctuation to be incorrectly spaced. You can see this issue on the Dex IdP website, which is generated from this template.
If you run the site locally, you can see this on the pod-overview page where the following code:
generates this output:
The text was updated successfully, but these errors were encountered: