Skip to content

Shortcode 'card': trimming of whitespace - #2278

Merged
chalin merged 1 commit into
docsy:mainfrom
deining:fix-card-shortcode
Jun 5, 2025
Merged

chalin merged 1 commit into
docsy:mainfrom
deining:fix-card-shortcode

Conversation

@deining

@deining deining commented Jun 5, 2025 •

Copy link
Copy Markdown
Contributor

This code

{{< card code=true header="My Header" lang="go-html-template" highlight="linenos=inline,lineNoStart=1" >}}
First line
{{< /card >}}

is currently rendered to:

My Header
1 
2 First line

This PR fixes that issue.


Preview: https://deploy-preview-2278--docsydocs.netlify.app/docs/adding-content/shortcodes/#shortcode-card-programming-code

@deining
deining requested a review from chalin June 5, 2025 14:28
@deining
deining force-pushed the fix-card-shortcode branch from 087fccd to f901bb8 Compare June 5, 2025 17:55

@chalin chalin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise, once checks pass.

Comment thread assets/scss/shortcodes/cards-pane.scss Resolved
@deining
deining force-pushed the fix-card-shortcode branch from f901bb8 to ccda856 Compare June 5, 2025 18:36
@deining
deining requested a review from chalin June 5, 2025 18:38
@chalin
chalin merged commit a824b2a into docsy:main Jun 5, 2025
@deining
deining deleted the fix-card-shortcode branch June 5, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants