Skip to content

enable shiki theme for a new blank theme #3737

Closed Answered by brc-dd
gureckis asked this question in Q&A
Discussion options

You must be logged in to vote

Button is there (that box near language) and it should work in blank theme too. You just need to style it. Markdown plugins are loaded regardless of the theme.

div[class*='language-'] {
  position: relative;
}

div[class*='language-'] > button {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E")
    no-repeat;
  height: 1.5em;
  width: 1.5em;
  position: absolute;
  right: 0.5em;
  

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@gureckis
Comment options

@gureckis
Comment options

@gureckis
Comment options

@brc-dd
Comment options

Answer selected by gureckis
@gureckis
Comment options

Comment options

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