Skip to content

How to prevent code blocks from displaying syntax tags ? #1150

Answered by Mister-Hope
nibazshab asked this question in Q&A
Discussion options

You must be logged in to vote

Add this in your index.scss

div[class*='language-']::before {
  display: none;
}

If you only want to hide some extension, (e.g.: hide sh)

div[class*='language-' data-ext='sh']::before {
  display: none;
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Mister-Hope
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants