Skip to content

Commit a35a18c

Browse files
committed
Load custom sheets after theme sheets
1 parent 15a503f commit a35a18c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
0.15.1 (2021-05-23)
5+
-------------------
6+
7+
* Load custom stylesheets after theme sheets.
8+
9+
410
0.15.0 (2021-05-23)
511
-------------------
612

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function normalizeOptions(options?: Partial<Options>): Options {
239239
const newOptions:Options = Object.assign(defaults, options) as Options;
240240

241241
if (newOptions.theme !== null) {
242-
newOptions.stylesheets.push(
242+
newOptions.stylesheets.unshift(
243243
`themes/${newOptions.theme}/main.css`,
244244
`themes/${newOptions.theme}/highlight.css`
245245
);

0 commit comments

Comments
 (0)