Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugo: show background color on all inline code blocks #486

Closed
wants to merge 1 commit into from

Conversation

anne-usmedia
Copy link
Collaborator

  • Removed the code that only adds a background to inline code when inside p or list
  • Give code element a transparent background when inside of pre element.

Test:

  • Add inline code to some steps and see if they have a background color:
    /examples/shortcodes/step/
  • Check all other uses for code, not only inline, e.g.:
    • /examples/basic/code-block/
    • /examples/shortcodes/code-tabs/

Fixes
cue-lang/cue#3003
and
cue-lang/cue#3498

Copy link

netlify bot commented Dec 18, 2024

Deploy Preview for cue ready!

Name Link
🔨 Latest commit 79abee8
🔍 Latest deploy log https://app.netlify.com/sites/cue/deploys/6762c2ee58fcc50008995cbe
😎 Deploy Preview https://deploy-preview-486--cue.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

* Removed the code that only adds a background
to inline code when inside p or list
* Give code element a transparent background
when inside of pre element.

Test:
* Add inline code to some steps and see if they
have a background color:
/examples/shortcodes/step/
* Check all other uses for code,
not only inline, e.g.:
    * /examples/basic/code-block/
    * /examples/shortcodes/code-tabs/

Fixes
cue-lang/cue#3003
and
cue-lang/cue#3498

Signed-off-by: Anne van Gorkom <[email protected]>
@anne-usmedia anne-usmedia marked this pull request as ready for review January 3, 2025 08:58
@anne-usmedia anne-usmedia requested a review from cueckoo as a code owner January 3, 2025 08:58
Copy link
Collaborator

@jpluscplusm jpluscplusm left a comment

Choose a reason for hiding this comment

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

LGTM! Imported as https://cuelang.org/cl/1206742.

@cueckoo cueckoo closed this in 9c655dc Jan 6, 2025
@anne-usmedia anne-usmedia deleted the usmedia/3003 branch January 6, 2025 16:01
@jpluscplusm
Copy link
Collaborator

After merging, I noticed a regression caused by this change. This is tracked as cue-lang/cue#3656.

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