Skip to content

v7.6.0

Compare
Choose a tag to compare
@metonym metonym released this 06 Feb 06:07
· 47 commits to master since this release

Features

  • add --langtag-top, --langtag-right style props

The Highlight components support style props to customize the langtag, if displayed.

The default value for --langtag-top and --langtag-right is 0.

<HighlightAuto
  {code}
  langtag
  --langtag-top="0.5rem"
  --langtag-right="0.5rem"
  --langtag-background="linear-gradient(135deg, #2996cf, 80%, white)"
  --langtag-color="#fff"
  --langtag-border-radius="6px"
  --langtag-padding="0.5rem"
/>