Skip to content

Dockerfile snippet not highlighted #3499

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

Closed
4 tasks done
OrbisK opened this issue Jan 25, 2024 · 2 comments
Closed
4 tasks done

Dockerfile snippet not highlighted #3499

OrbisK opened this issue Jan 25, 2024 · 2 comments
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@OrbisK
Copy link
Contributor

OrbisK commented Jan 25, 2024

Describe the bug

Including a Dockerfile snippet into md does not apply highlighting

Reproduction

https://stackblitz.com/edit/vite-jrvx6i?file=docs%2FDockerfile,docs%2Fexample.md

Expected behavior

snippet dockerfile should render propperly

System Info

System:
    OS: Linux 5.10 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 29.01 GB / 31.25 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 17.4.0 - ~/.nvm/versions/node/v17.4.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v17.4.0/bin/yarn
    npm: 8.3.1 - ~/.nvm/versions/node/v17.4.0/bin/npm
    pnpm: 8.7.6 - ~/.local/share/pnpm/pnpm
    bun: 1.0.2 - ~/.local/share/pnpm/bun
  npmPackages:
    vitepress: 1.0.0-rc.40 => 1.0.0-rc.40

Additional context

No response

Validations

@OrbisK OrbisK added the bug: pending triage Maybe a bug, waiting for confirmation label Jan 25, 2024
@brc-dd
Copy link
Member

brc-dd commented Jan 25, 2024

You need to manually specify language there as it's not inferable by file extension:

<<< ./Dockerfile {dockerfile}

@brc-dd brc-dd closed this as completed Jan 25, 2024
@brc-dd
Copy link
Member

brc-dd commented Jan 25, 2024

I'm not sure though why it's adding extra lines though. I'll fix that.

@brc-dd brc-dd reopened this Jan 25, 2024
@brc-dd brc-dd closed this as completed in 5811b62 Jan 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants