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

Line highlighting style in custom block isn't working as expected #959

Closed
3 tasks done
jd-solanki opened this issue Jul 10, 2022 · 1 comment · Fixed by #969
Closed
3 tasks done

Line highlighting style in custom block isn't working as expected #959

jd-solanki opened this issue Jul 10, 2022 · 1 comment · Fixed by #969
Labels
bug Something isn't working theme Related to the theme

Comments

@jd-solanki
Copy link
Contributor

Describe the bug

Assume we have below code:

:::tip

```html{1}
<div class="grid-row grid-cols-2 justify-items-stretch">
    <div></div>
    <div></div>
</div>

:::

With above code we get code block rendered like below:

image

Reproduction

Above code (code block with highlighted lines in custom block)

Expected behavior

It should highlight full line

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
    Memory: 9.52 GB / 15.57 GB
    Container: Yes
    Shell: 0.12.1 - /home/jd/.xonsh/.venv/bin/xonsh
  Binaries:
    Node: 16.14.2 - ~/.nvm/versions/node/v16.14.2/bin/node
    Yarn: 1.22.18 - ~/.nvm/versions/node/v16.14.2/bin/yarn
    npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
  Browsers:
    Chrome: 101.0.4951.64
  npmPackages:
    vitepress: 1.0.0-alpha.4 => 1.0.0-alpha.4

Additional context

None

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@jd-solanki jd-solanki added the bug: pending triage Maybe a bug, waiting for confirmation label Jul 10, 2022
@brc-dd brc-dd added bug Something isn't working theme Related to the theme and removed bug: pending triage Maybe a bug, waiting for confirmation labels Jul 10, 2022
@brc-dd
Copy link
Member

brc-dd commented Jul 10, 2022

Probably need to change this:

background-color: var(--vp-code-block-bg);

 background-color: transparent;

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working theme Related to the theme
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants