Skip to content

Commit

Permalink
v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Sep 16, 2021
1 parent ead430a commit 962e07e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.0.0](https://github.com/metonym/svelte-highlight/releases/tag/v4.0.0) - 2021-09-16

**Breaking Changes**

- move `.hljs` class from `pre` element to `code` to align with the intended usage of `highlight.js`
- change padding of `pre.langtag::after` to `1em` to prevent overpadding

## [3.4.0](https://github.com/metonym/svelte-highlight/releases/tag/v3.4.0) - 2021-09-12

**Features**
Expand Down
2 changes: 1 addition & 1 deletion demo/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
<HighlightAuto {code} langtag="{true}" \/>`}"
class="atomOneDark"
langtag="{true}"
langtag="{true}"
/>
<HighlightAuto
code="{`pre[data-language="css"] {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-highlight",
"version": "3.4.0",
"version": "4.0.0",
"license": "MIT",
"description": "Syntax Highlighting for Svelte using highlight.js",
"author": "Eric Liu (https://github.com/metonym)",
Expand Down

0 comments on commit 962e07e

Please sign in to comment.